[MacPorts] #67686: clang-16 @16.0.6_0: links to compiler runtime libraries using wrong path

MacPorts noreply at macports.org
Sun Jul 2 01:57:18 UTC 2023


#67686: clang-16 @16.0.6_0: links to compiler runtime libraries using wrong path
---------------------------+--------------------
  Reporter:  chrstphrchvz  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  clang-16      |
---------------------------+--------------------

Comment (by kencu):

 the commit I mentioned seems to be a bit later on than our clang 16.0.6
 sources.

 just reverting the first bit of it was needed.

 I know you said you wanted it discussed upstream, but I'm not prepared to
 take on that task, so I'll just generate a PR with the reversion I used
 and you can use that if you like, or take it upstream if you want to (that
 will be a messy discussion).

 {{{
 % port contents clang-16 | grep dylib | xargs otool -L
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.lsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.lsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.lsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.stats_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.stats_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0, weak)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.stats_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.stats_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0, weak)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.stats_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.stats_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0, weak)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.tsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current
 version 228.0.0)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.tsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current
 version 228.0.0)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.tsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current
 version 228.0.0)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_minimal_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.ubsan_minimal_osx_dynamic.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_minimal_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.ubsan_minimal_osx_dynamic.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_minimal_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.ubsan_minimal_osx_dynamic.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib
 (architecture x86_64):
         @rpath/libclang_rt.ubsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib
 (architecture x86_64h):
         @rpath/libclang_rt.ubsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib
 (architecture arm64):
         @rpath/libclang_rt.ubsan_osx_dynamic.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/libClangdXPCLib.dylib:
         @rpath/libClangdXPCLib.dylib (compatibility version 0.0.0, current
 version 0.0.0)
         @rpath/libLLVM.dylib (compatibility version 1.0.0, current version
 16.0.6)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/libc++.1.0.dylib:
         @rpath/libc++.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
 /opt/local/libexec/llvm-16/lib/libc++.1.dylib:
         @rpath/libc++.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
 /opt/local/libexec/llvm-16/lib/libc++.dylib:
         @rpath/libc++.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
 /opt/local/libexec/llvm-16/lib/libc++abi.1.0.dylib:
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/libc++abi.1.dylib:
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/libc++abi.dylib:
         @rpath/libc++abi.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /opt/local/libexec/llvm-16/lib/libclang-cpp.dylib:
         @rpath/libclang-cpp.dylib (compatibility version 0.0.0, current
 version 0.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 1228.0.0)
         @rpath/libLLVM.dylib (compatibility version 1.0.0, current version
 16.0.6)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 1971.0.0)
 /opt/local/libexec/llvm-16/lib/libclang.dylib:
         @rpath/libclang.dylib (compatibility version 1.0.0, current
 version 16.0.6)
         @rpath/libLLVM.dylib (compatibility version 1.0.0, current version
 16.0.6)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 1500.65.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1319.100.3)
 }}}

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


More information about the macports-tickets mailing list