[MacPorts] #67686: clang-16 @16.0.6_0: links to compiler runtime libraries using wrong path
MacPorts
noreply at macports.org
Fri Jun 30 07:14:57 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 cjones051073):
Thanks Ken. If I compare the sanitiser libs specifically, between clang 15
and 16 I see
{{{
Oberon ~/Projects/MacPorts/ports > port contents clang-15 | grep dylib |
grep san_osx | xargs otool -L
/opt/local/libexec/llvm-15/lib/clang/15.0.7/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:
@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 1300.23.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.23.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1311.100.3)
/opt/local/libexec/llvm-15/lib/clang/15.0.7/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib:
@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 1300.23.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.23.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1311.100.3)
/opt/local/libexec/llvm-15/lib/clang/15.0.7/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib:
@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 1300.23.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.23.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1311.100.3)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current
version 228.0.0)
/opt/local/libexec/llvm-15/lib/clang/15.0.7/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib:
@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 1300.23.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.23.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1311.100.3)
Oberon ~/Projects/MacPorts/ports > port contents clang-16 | grep dylib |
grep san_osx | xargs otool -L
/opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:
/opt/local/libexec/llvm-16/lib/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 1300.36.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1319.0.0)
/opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib:
/opt/local/libexec/llvm-16/lib/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 1300.36.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1319.0.0)
/opt/local/libexec/llvm-16/lib/clang/16/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib:
/opt/local/libexec/llvm-16/lib/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 1300.36.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1319.0.0)
/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_osx_dynamic.dylib:
/opt/local/libexec/llvm-16/lib/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 1300.36.0)
/usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
version 1300.36.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1319.0.0)
}}}
so clang-15 uses path, clang 16 does not.
That LLVM commit is for sure fiddling in the right sort of area..
--
Ticket URL: <https://trac.macports.org/ticket/67686#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list