This repository was archived by the owner on Nov 25, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 111
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Impossible to compile after MacOS 26.0 upgrade dyld[44310]: duplicate LC_RPATH #243
Copy link
Copy link
Closed
Description
Hello,
Everything was working perfect until I upgraded to the new macOS. Now the compilation stops with an error:
-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/otto/src/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /Users/otto/src/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /opt/homebrew/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/Users/otto/src/zig-bootstrap/out/host/bin/zig"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/Users/otto/src/zig-bootstrap/out/build-zlib-aarch64-macos-none-native/CMakeFiles/CMakeScratch/TryCompile-hGZfGs'
Run Build Command(s): /opt/homebrew/bin/cmake -E env VERBOSE=1 /opt/homebrew/bin/gmake -f Makefile cmTC_a97ac/fast
/opt/homebrew/bin/gmake -f CMakeFiles/cmTC_a97ac.dir/build.make CMakeFiles/cmTC_a97ac.dir/build
gmake[1]: Entering directory '/Users/otto/src/zig-bootstrap/out/build-zlib-aarch64-macos-none-native/CMakeFiles/CMakeScratch/TryCompile-hGZfGs'
Building C object CMakeFiles/cmTC_a97ac.dir/testCCompiler.c.o
/Users/otto/src/zig-bootstrap/out/host/bin/zig cc -fno-sanitize=all -s -target aarch64-macos-none -mcpu=native -o CMakeFiles/cmTC_a97ac.dir/testCCompiler.c.o -c /Users/otto/src/zig-bootstrap/out/build-zlib-aarch64-macos-none-native/CMakeFiles/CMakeScratch/TryCompile-hGZfGs/testCCompiler.c
dyld[42377]: duplicate LC_RPATH '/Users/otto/src/zig-bootstrap/out/host/lib' in /Users/otto/src/zig-bootstrap/out/host/bin/zig
dyld[42377]: duplicate LC_RPATH '/Users/otto/src/zig-bootstrap/out/host/lib'
gmake[1]: *** [CMakeFiles/cmTC_a97ac.dir/build.make:81: CMakeFiles/cmTC_a97ac.dir/testCCompiler.c.o] Abort trap: 6
gmake[1]: Leaving directory '/Users/otto/src/zig-bootstrap/out/build-zlib-aarch64-macos-none-native/CMakeFiles/CMakeScratch/TryCompile-hGZfGs'
gmake: *** [Makefile:134: cmTC_a97ac/fast] Error 2
When I run the produced Zig binary, it aborts with: "duplicate LC_RPATH".
/Users/otto/src/zig-bootstrap/out/host/bin/zig
dyld[44310]: duplicate LC_RPATH '/Users/otto/src/zig-bootstrap/out/host/lib' in /Users/otto/src/zig-bootstrap/out/host/bin/zig
dyld[44310]: duplicate LC_RPATH '/Users/otto/src/zig-bootstrap/out/host/lib'
zsh: abort /Users/otto/src/zig-bootstrap/out/host/bin/zig
I tried to compile Zig myself with the LLVM installed in Users/otto/src/zig-bootstrap/out/host, and it aborts the same way.
I did not change anything. Before it was working well.
Metadata
Metadata
Assignees
Labels
No labels