Created
September 19, 2022 11:45
-
-
Save schmee/d5910d75758ce4113547a94a7d3aa807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/r/zig/build master *4 ?54 ↯ 0.9.1 cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix llvm) -DZIG_STATIC_LLVM=on -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-fuse-ld=lld" | |
-- The C compiler identification is Clang 15.0.0 | |
-- The CXX compiler identification is Clang 15.0.0 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - failed | |
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang | |
-- Check for working C compiler: /usr/local/opt/llvm/bin/clang - broken | |
CMake Error at /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message): | |
The C compiler | |
"/usr/local/opt/llvm/bin/clang" | |
is not able to compile a simple test program. | |
It fails with the following output: | |
Change Dir: /Users/<USER>/repos/zig/build/CMakeFiles/CMakeTmp | |
Run Build Command(s):/usr/bin/make -f Makefile cmTC_0dbfe/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_0dbfe.dir/build.make CMakeFiles/cmTC_0dbfe.dir/build | |
Building C object CMakeFiles/cmTC_0dbfe.dir/testCCompiler.c.o | |
/usr/local/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -MD -MT CMakeFiles/cmTC_0dbfe.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_0dbfe.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_0dbfe.dir/testCCompiler.c.o -c /Users/<USER>/repos/zig/build/CMakeFiles/CMakeTmp/testCCompiler.c | |
Linking C executable cmTC_0dbfe | |
/usr/local/Cellar/cmake/3.24.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0dbfe.dir/link.txt --verbose=1 | |
/usr/local/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_0dbfe.dir/testCCompiler.c.o -o cmTC_0dbfe | |
ld: library not found for -lSystem | |
clang-15: error: linker command failed with exit code 1 (use -v to see invocation) | |
make[1]: *** [cmTC_0dbfe] Error 1 | |
make: *** [cmTC_0dbfe/fast] Error 2 | |
CMake will not be able to correctly generate this project. | |
Call Stack (most recent call first): | |
CMakeLists.txt:24 (project) | |
-- Configuring incomplete, errors occurred! | |
See also "/Users/<USER>/repos/zig/build/CMakeFiles/CMakeOutput.log". | |
See also "/Users/<USER>/repos/zig/build/CMakeFiles/CMakeError.log". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment