[MacPorts] #66118: TeXShop @5.03 fails to build on macOS 13 (Ventura)

MacPorts noreply at macports.org
Tue Nov 1 01:29:27 UTC 2022


#66118: TeXShop @5.03 fails to build on macOS 13 (Ventura)
----------------------+-------------------------
  Reporter:  mcmara   |      Owner:  Schamschula
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.8.0
Resolution:           |   Keywords:  ventura
      Port:  TeXShop  |
----------------------+-------------------------

Comment (by mcmara):

 Good hint. However, macOS 13 SDK is installed. I have macOS 13.0 (22A372).
 In fact, if I build TexShop manually, it succeeds:
 {{{
 $ cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03"

 $ sudo -u macports
 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
 -UseNewBuildSystem=NO -project TeXShop.xcodeproj -target TeXShop
 -configuration Release build INSTALL_PATH=/Applications/MacPorts
 OBJROOT=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/
 SYMROOT=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/
 MACOSX_DEPLOYMENT_TARGET=13.0 ARCHS=x86_64
 SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY=libstdc++
 FRAMEWORK_SEARCH_PATHS=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03
 CONFIGURATION_BUILD_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build
 CODE_SIGN_IDENTITY=
 Command line invocation:
     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
 -UseNewBuildSystem=NO -project TeXShop.xcodeproj -target TeXShop
 -configuration Release build INSTALL_PATH=/Applications/MacPorts
 OBJROOT=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/
 SYMROOT=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/
 MACOSX_DEPLOYMENT_TARGET=13.0 ARCHS=x86_64
 SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY=libstdc++
 FRAMEWORK_SEARCH_PATHS=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03
 CONFIGURATION_BUILD_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build
 CODE_SIGN_IDENTITY=

 User defaults from command line:
     IDEPackageSupportUseBuiltinSCM = YES
     UseNewBuildSystem = NO

 Build settings from command line:
     ARCHS = x86_64
     CLANG_CXX_LIBRARY = libstdc++
     CODE_SIGN_IDENTITY =
     CONFIGURATION_BUILD_DIR =
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build
     FRAMEWORK_SEARCH_PATHS =
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03
     GCC_VERSION = com.apple.compilers.llvm.clang.1_0
     INSTALL_PATH = /Applications/MacPorts
     MACOSX_DEPLOYMENT_TARGET = 13.0
     OBJROOT =
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/
     SDKROOT =
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
     SYMROOT =
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/

 note: Using codesigning identity override:
 Computing target dependency graph and provisioning inputs

 Create build description
 Build description signature: 8524520a36f9cc23f57aca91149d2233
 Build description path:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.03/build/XCBuildData/8524520a36f9cc23f57aca91149d2233-desc.xcbuild

 warning: Building targets in manual order is deprecated - check
 "Parallelize build for command-line builds" in the project editor, or set
 DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the
 current build to suppress this warning
 warning: CLANG_CXX_LIBRARY is set to 'libstdc++': The 'libstdc++' C++
 Standard Library is no longer available, and this setting can be removed.
 warning: CLANG_CXX_LIBRARY is set to 'libstdc++': The 'libstdc++' C++
 Standard Library is no longer available, and this setting can be removed.
 (in target 'TeXShop' from project 'TeXShop')
 warning: Couldn't load spec with identifier 'com.apple.compilers.gcc.4_2'
 in domain 'macosx' (in target 'TeXShop' from project 'TeXShop')
 warning: TeXShop isn't code signed but requires entitlements. It is not
 possible to add entitlements to a binary without signing it. (in target
 'TeXShop' from project 'TeXShop')
 ** BUILD SUCCEEDED **
 }}}

 But if I build it using macports (sudo port install texshop) I get weird
 errors in the log file:
 {{{
 :info:build 2022-10-31 21:21:56.450 xcodebuild[3218:50395] [MT]
 IDELogStore: Failed to open Build log store: Error
 Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store
 directory at
 '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-
 alabyoqoygcuerfcddjvyedxupgi/Logs/Build': (513) You don’t have permission
 to save the file “Build” in the folder “Logs”."
 UserInfo={NSLocalizedDescription=Unable to create log store directory at
 '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-
 alabyoqoygcuerfcddjvyedxupgi/Logs/Build': (513) You don’t have permission
 to save the file “Build” in the folder “Logs”.}. User info: {
 :info:build     NSLocalizedDescription = "Unable to create log store
 directory at
 '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-
 alabyoqoygcuerfcddjvyedxupgi/Logs/Build': (513) You don\U2019t have
 permission to save the file \U201cBuild\U201d in the folder
 \U201cLogs\U201d.";
 :info:build }.
 }}}

 Basically xcode cannot write anything insode
 /opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/. Note
 that to get the manual build to succeed I usde sudo -u macports.
 Tried also to delete the whole /opt/local/var/macports/home/Library/ and
 have it re-created by xcode with no luck.

 Is you macmini on Ventura as well?

-- 
Ticket URL: <https://trac.macports.org/ticket/66118#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list