this is the relevant line from the build.log: /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0_build/zig2 build-exe -fallow-so-scripts --stack 48234496 /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0_build/zigcpp/libzigcpp.a /usr/lib/llvm/19/lib64/libclang-cpp.so /usr/lib/llvm/19/lib64/liblldMinGW.so /usr/lib/llvm/19/lib64/liblldELF.so /usr/lib/llvm/19/lib64/liblldCOFF.so /usr/lib/llvm/19/lib64/liblldWasm.so /usr/lib/llvm/19/lib64/liblldMachO.so /usr/lib/llvm/19/lib64/liblldCommon.so /usr/lib/llvm/19/lib64/libLLVM-19+libcxx.so /usr/lib64/libc++.so -lunwind -fno-sanitize-thread -OReleaseFast -target native-native -mcpu alderlake -I /usr/lib/llvm/19/include -I /usr/lib/llvm/19/include -L /usr/lib/llvm/19/lib64 --dep aro --dep aro_translate_c --dep build_options -Mroot=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/src/main.zig -Maro=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib/compiler/aro/aro.zig --dep aro -Maro_translate_c=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib/compiler/aro_translate_c.zig -Mbuild_options=/var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/local/c/cb4b9e3c9e9c40f15cfb35a7cb39a35c/options.zig -lc --libc /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig_libc.txt --cache-dir /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/local/ --global-cache-dir /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/global/ --name zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib// --listen=- [2minstall (0mq(B install zig (0mq(B zig build-exe zig ReleaseFast native-native[31m failure [0m[0m[31merror: [0merror: libc++abi.so: file listed in linker script not found [31merror: [0mthe following command exited with error code 1: Reproducible: Always
Created attachment 920549 [details] build.log
This is on LLVM profile right? Please check if this patch fixes it.
Created attachment 920611 [details, diff] test patch to revert changes
it doesn't look like that helped, the error is different now though: /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0_build/zig2 build-exe -fallow-so-scripts --stack 48234496 /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0_build/zigcpp/libzigcpp.a /usr/lib/llvm/19/lib64/libclang-cpp.so /usr/lib/llvm/19/lib64/liblldMinGW.so /usr/lib/llvm/19/lib64/liblldELF.so /usr/lib/llvm/19/lib64/liblldCOFF.so /usr/lib/llvm/19/lib64/liblldWasm.so /usr/lib/llvm/19/lib64/liblldMachO.so /usr/lib/llvm/19/lib64/liblldCommon.so /usr/lib/llvm/19/lib64/libLLVM-19+libcxx.so /usr/lib64/libc++.so -lunwind -fno-sanitize-thread -OReleaseFast -target native-native -mcpu alderlake -I /usr/lib/llvm/19/include -I /usr/lib/llvm/19/include -L /usr/lib/llvm/19/lib64 --dep aro --dep aro_translate_c --dep build_options -Mroot=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/src/main.zig -Maro=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib/compiler/aro/aro.zig --dep aro -Maro_translate_c=/var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib/compiler/aro_translate_c.zig -Mbuild_options=/var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/local/c/cb4b9e3c9e9c40f15cfb35a7cb39a35c/options.zig -lc --libc /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig_libc.txt --cache-dir /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/local/ --global-cache-dir /var/tmp/portage/dev-lang/zig-0.14.0/temp/zig-cache/global/ --name zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.14.0/work/zig-0.14.0/lib// --listen=- [2minstall (0mq(B install zig (0mq(B zig build-exe zig ReleaseFast native-native[31m failure [0m[0m[31merror: [0merror: unable to find dynamic system library 'c++abi' using strategy 'no_fallback'. searched paths: /usr/lib/llvm/19/lib64/libc++abi.so error: unable to find dynamic system library 'c++_shared' using strategy 'no_fallback'. searched paths: /usr/lib/llvm/19/lib64/libc++_shared.so
(In reply to Eric Joldasov from comment #2) > This is on LLVM profile right? yes
Created attachment 923136 [details, diff] another try fix What about this patch? I have tested on separate partition llvm/libcxx profile and it seems to fix things, although it was a little bit counter-intuitive at start...
(In reply to Eric Joldasov from comment #6) > Created attachment 923136 [details, diff] [details, diff] > another try fix > > What about this patch? this one worked, thanks :)