[MacPorts] #67686: clang-16 @16.0.6_0: links to compiler runtime libraries using wrong path
MacPorts
noreply at macports.org
Mon Jun 26 14:24:31 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):
Small update. Issue is only with clang-16. clang-15 works fine
{{{
Oberon ~/cernbox/MacPorts/c++17 > clang++-mp-15 --std=c++17
-fsanitize=address ./test.cpp
Oberon ~/cernbox/MacPorts/c++17 > ./a.out
a.out(15346,0x10fa0a600) malloc: nano zone abandoned due to inability to
preallocate reserved vm space.
variant<int> = 42
test_variant: bad_variant_access
optional i = 321
i: 1
d: 3.14
b: 1
PKc: FooBar
▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─
▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─
▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄
▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀
▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─▀▄─
▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─▄▀─
all types in pack are T
not all types in pack are T
1 2.3
-2 2.3
-2147483648 0
2147483647 -1
Oberon ~/cernbox/MacPorts/c++17 > otool -L ./a.out
./a.out:
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
version 1300.36.0)
@rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version
0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1319.0.0)
}}}
So clang-15 use @rpath , whilst clang-16 a hardocded fixed path.
Both ports files for llvm 15 and 16 do exactly the same thing w.r.t.
rpath.
--
Ticket URL: <https://trac.macports.org/ticket/67686#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list