You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to build zig from source on arch linux #14211
❯ make install --debug
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'install' does not exist.
File 'preinstall' does not exist.
File 'all' does not exist.
File 'cmake_check_build_system' does not exist.
Must remake target 'cmake_check_build_system'.
Successfully remade target file 'cmake_check_build_system'.
Must remake target 'all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'all' does not exist.
File 'CMakeFiles/zigcpp.dir/all' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zigcpp.dir/depend' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/depend'.
Successfully remade target file 'CMakeFiles/zigcpp.dir/depend'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zigcpp.dir/build' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/build'.
Successfully remade target file 'CMakeFiles/zigcpp.dir/build'.
[ 40%] Built target zigcpp
Successfully remade target file 'CMakeFiles/zigcpp.dir/all'.
File 'CMakeFiles/zig-wasm2c.dir/all' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig-wasm2c.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/depend'.
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/depend'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig-wasm2c.dir/build' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/build'.
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/build'.
[ 50%] Built target zig-wasm2c
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/all'.
File 'CMakeFiles/zig1.dir/all' does not exist.
Must remake target 'CMakeFiles/zig1.dir/all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig1.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig1.dir/depend'.
Successfully remade target file 'CMakeFiles/zig1.dir/depend'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig1.dir/build' does not exist.
Must remake target 'CMakeFiles/zig1.dir/build'.
Successfully remade target file 'CMakeFiles/zig1.dir/build'.
[ 70%] Built target zig1
Successfully remade target file 'CMakeFiles/zig1.dir/all'.
File 'CMakeFiles/zig2.dir/all' does not exist.
Must remake target 'CMakeFiles/zig2.dir/all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig2.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig2.dir/depend'.
Successfully remade target file 'CMakeFiles/zig2.dir/depend'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig2.dir/build' does not exist.
Must remake target 'CMakeFiles/zig2.dir/build'.
Successfully remade target file 'CMakeFiles/zig2.dir/build'.
[ 95%] Built target zig2
Successfully remade target file 'CMakeFiles/zig2.dir/all'.
File 'CMakeFiles/stage3.dir/all' does not exist.
Must remake target 'CMakeFiles/stage3.dir/all'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/stage3.dir/depend' does not exist.
Must remake target 'CMakeFiles/stage3.dir/depend'.
Successfully remade target file 'CMakeFiles/stage3.dir/depend'.
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/stage3.dir/build' does not exist.
File 'stage3' does not exist.
File 'CMakeFiles/stage3' does not exist.
Must remake target 'CMakeFiles/stage3'.
[100%] Building stage3
^Cmake[2]: *** [CMakeFiles/stage3.dir/build.make:71: CMakeFiles/stage3] Interrupt
make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/stage3.dir/all] Interrupt
make: *** [Makefile:136: all] Interrupt
❯ make install --debug --trace
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'install' does not exist.
File 'preinstall' does not exist.
File 'all' does not exist.
File 'cmake_check_build_system' does not exist.
Must remake target 'cmake_check_build_system'.
Makefile:581: target 'cmake_check_build_system' does not exist
/usr/bin/cmake -S/home/niedzwiedz/wasmerio/zig -B/home/niedzwiedz/wasmerio/zig/build --check-build-system CMakeFiles/Makefile.cmake 0
Successfully remade target file 'cmake_check_build_system'.
Must remake target 'all'.
Makefile:135: update target 'all' due to: cmake_check_build_system
/usr/bin/cmake -E cmake_progress_start /home/niedzwiedz/wasmerio/zig/build/CMakeFiles /home/niedzwiedz/wasmerio/zig/build//CMakeFiles/progress.marks
make -s -f CMakeFiles/Makefile2 all
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'all' does not exist.
File 'CMakeFiles/zigcpp.dir/all' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/all'.
CMakeFiles/Makefile2:90: target 'CMakeFiles/zigcpp.dir/all' does not exist
make -s -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/depend
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zigcpp.dir/depend' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/depend'.
CMakeFiles/zigcpp.dir/build.make:205: target 'CMakeFiles/zigcpp.dir/depend' does not exist
cd /home/niedzwiedz/wasmerio/zig/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build/CMakeFiles/zigcpp.dir/DependInfo.cmake --color=
Successfully remade target file 'CMakeFiles/zigcpp.dir/depend'.
make -s -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/build
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zigcpp.dir/build' does not exist.
Must remake target 'CMakeFiles/zigcpp.dir/build'.
Successfully remade target file 'CMakeFiles/zigcpp.dir/build'.
/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/niedzwiedz/wasmerio/zig/build/CMakeFiles --progress-num=13,14,15,16,17,18,19,20 "Built target zigcpp"
[ 40%] Built target zigcpp
Successfully remade target file 'CMakeFiles/zigcpp.dir/all'.
File 'CMakeFiles/zig-wasm2c.dir/all' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/all'.
CMakeFiles/Makefile2:116: target 'CMakeFiles/zig-wasm2c.dir/all' does not exist
make -s -f CMakeFiles/zig-wasm2c.dir/build.make CMakeFiles/zig-wasm2c.dir/depend
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig-wasm2c.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/depend'.
CMakeFiles/zig-wasm2c.dir/build.make:108: target 'CMakeFiles/zig-wasm2c.dir/depend' does not exist
cd /home/niedzwiedz/wasmerio/zig/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build/CMakeFiles/zig-wasm2c.dir/DependInfo.cmake --color=
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/depend'.
make -s -f CMakeFiles/zig-wasm2c.dir/build.make CMakeFiles/zig-wasm2c.dir/build
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig-wasm2c.dir/build' does not exist.
Must remake target 'CMakeFiles/zig-wasm2c.dir/build'.
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/build'.
/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/niedzwiedz/wasmerio/zig/build/CMakeFiles --progress-num=2,3 "Built target zig-wasm2c"
[ 50%] Built target zig-wasm2c
Successfully remade target file 'CMakeFiles/zig-wasm2c.dir/all'.
File 'CMakeFiles/zig1.dir/all' does not exist.
Must remake target 'CMakeFiles/zig1.dir/all'.
CMakeFiles/Makefile2:142: update target 'CMakeFiles/zig1.dir/all' due to: CMakeFiles/zig-wasm2c.dir/all
make -s -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/depend
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig1.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig1.dir/depend'.
CMakeFiles/zig1.dir/build.make:129: update target 'CMakeFiles/zig1.dir/depend' due to: zig1.c
cd /home/niedzwiedz/wasmerio/zig/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build/CMakeFiles/zig1.dir/DependInfo.cmake --color=
Successfully remade target file 'CMakeFiles/zig1.dir/depend'.
make -s -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/build
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig1.dir/build' does not exist.
Must remake target 'CMakeFiles/zig1.dir/build'.
Successfully remade target file 'CMakeFiles/zig1.dir/build'.
/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/niedzwiedz/wasmerio/zig/build/CMakeFiles --progress-num=4,5,6,7 "Built target zig1"
[ 70%] Built target zig1
Successfully remade target file 'CMakeFiles/zig1.dir/all'.
File 'CMakeFiles/zig2.dir/all' does not exist.
Must remake target 'CMakeFiles/zig2.dir/all'.
CMakeFiles/Makefile2:169: update target 'CMakeFiles/zig2.dir/all' due to: CMakeFiles/zig1.dir/all CMakeFiles/zigcpp.dir/all
make -s -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/depend
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig2.dir/depend' does not exist.
Must remake target 'CMakeFiles/zig2.dir/depend'.
CMakeFiles/zig2.dir/build.make:1176: update target 'CMakeFiles/zig2.dir/depend' due to: zig2.c compiler_rt.c
cd /home/niedzwiedz/wasmerio/zig/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build/CMakeFiles/zig2.dir/DependInfo.cmake --color=
Successfully remade target file 'CMakeFiles/zig2.dir/depend'.
make -s -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/build
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/zig2.dir/build' does not exist.
Must remake target 'CMakeFiles/zig2.dir/build'.
Successfully remade target file 'CMakeFiles/zig2.dir/build'.
/usr/bin/cmake -E cmake_echo_color --switch= --progress-dir=/home/niedzwiedz/wasmerio/zig/build/CMakeFiles --progress-num=8,9,10,11,12 "Built target zig2"
[ 95%] Built target zig2
Successfully remade target file 'CMakeFiles/zig2.dir/all'.
File 'CMakeFiles/stage3.dir/all' does not exist.
Must remake target 'CMakeFiles/stage3.dir/all'.
CMakeFiles/Makefile2:195: update target 'CMakeFiles/stage3.dir/all' due to: CMakeFiles/zig2.dir/all
make -s -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/depend
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/stage3.dir/depend' does not exist.
Must remake target 'CMakeFiles/stage3.dir/depend'.
CMakeFiles/stage3.dir/build.make:86: target 'CMakeFiles/stage3.dir/depend' does not exist
cd /home/niedzwiedz/wasmerio/zig/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build /home/niedzwiedz/wasmerio/zig/build/CMakeFiles/stage3.dir/DependInfo.cmake --color=
Successfully remade target file 'CMakeFiles/stage3.dir/depend'.
make -s -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/build
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'CMakeFiles/stage3.dir/build' does not exist.
File 'stage3' does not exist.
File 'CMakeFiles/stage3' does not exist.
Must remake target 'CMakeFiles/stage3'.
CMakeFiles/stage3.dir/build.make:70: update target 'CMakeFiles/stage3' due to: zig2
/usr/bin/cmake -E cmake_echo_color --switch= --blue --bold --progress-dir=/home/niedzwiedz/wasmerio/zig/build/CMakeFiles --progress-num=1 "Building stage3"
[100%] Building stage3
cd /home/niedzwiedz/wasmerio/zig && /home/niedzwiedz/wasmerio/zig/build/zig2 build compile --zig-lib-dir /home/niedzwiedz/wasmerio/zig/lib -Dconfig_h=/home/niedzwiedz/wasmerio/zig/build/config.h -Denable-llvm -Dtarget=native -Dcpu=native -Dversion-string=0.11.0
Semantic Analysis [12037] getOrPutAssumeCapacityContext...Semantic Analysis [13650] populateLazyBindOffsetsInStubHelSemantic Analysis [14046] insertAllEntriesIntoNewHeader...Semantic Analysis [14584] getOrPutAssumeCapacityAdapted...Semantic Analysis [15603] getOrPutAssumeCapacityAdapted...Semantic Analysis [16429] getOrPutAssumeCapacityAdapted...Semantic Analysis [18908] insertAllEntriesIntoNewHeaderGenSemantic Analysis [19648] fetchSwapRemoveContextAdapted...Semantic Analysierror: SymLinkLoop
error: zig...
error: The following command exited with error code 1:
/home/niedzwiedz/wasmerio/zig/build/zig2 build-exe --stack 33554432 /home/niedzwiedz/wasmerio/zig/src/main.zig -lc /home/niedzwiedz/wasmerio/zig/build/zigcpp/libzigcpp.a /home/niedzwiedz/local/llvm15-release/lib/libclangFrontendTool.a /home/niedzwiedz/local/llvm15-release/lib/libclangCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libclangFrontend.a /home/niedzwiedz/local/llvm15-release/lib/libclangDriver.a /home/niedzwiedz/local/llvm15-release/lib/libclangSerialization.a /home/niedzwiedz/local/llvm15-release/lib/libclangSema.a /home/niedzwiedz/local/llvm15-release/lib/libclangStaticAnalyzerFrontend.a /home/niedzwiedz/local/llvm15-release/lib/libclangStaticAnalyzerCheckers.a /home/niedzwiedz/local/llvm15-release/lib/libclangStaticAnalyzerCore.a /home/niedzwiedz/local/llvm15-release/lib/libclangAnalysis.a /home/niedzwiedz/local/llvm15-release/lib/libclangASTMatchers.a /home/niedzwiedz/local/llvm15-release/lib/libclangAST.a /home/niedzwiedz/local/llvm15-release/lib/libclangParse.a /home/niedzwiedz/local/llvm15-release/lib/libclangSema.a /home/niedzwiedz/local/llvm15-release/lib/libclangBasic.a /home/niedzwiedz/local/llvm15-release/lib/libclangEdit.a /home/niedzwiedz/local/llvm15-release/lib/libclangLex.a /home/niedzwiedz/local/llvm15-release/lib/libclangARCMigrate.a /home/niedzwiedz/local/llvm15-release/lib/libclangRewriteFrontend.a /home/niedzwiedz/local/llvm15-release/lib/libclangRewrite.a /home/niedzwiedz/local/llvm15-release/lib/libclangCrossTU.a /home/niedzwiedz/local/llvm15-release/lib/libclangIndex.a /home/niedzwiedz/local/llvm15-release/lib/libclangToolingCore.a /home/niedzwiedz/local/llvm15-release/lib/libclangExtractAPI.a /home/niedzwiedz/local/llvm15-release/lib/libclangSupport.a /home/niedzwiedz/local/llvm15-release/lib/liblldMinGW.a /home/niedzwiedz/local/llvm15-release/lib/liblldELF.a /home/niedzwiedz/local/llvm15-release/lib/liblldCOFF.a /home/niedzwiedz/local/llvm15-release/lib/liblldWasm.a /home/niedzwiedz/local/llvm15-release/lib/liblldMachO.a /home/niedzwiedz/local/llvm15-release/lib/liblldCommon.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWindowsManifest.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWindowsDriver.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMXRay.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLibDriver.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDlltoolDriver.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMCoverage.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLineEditor.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMXCoreDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMXCoreCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMXCoreDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMXCoreInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86TargetMCA.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86Disassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86AsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86CodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86Desc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMX86Info.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyUtils.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMWebAssemblyInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVEDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVEAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVECodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVEDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVEInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSystemZDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSystemZAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSystemZCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSystemZDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSystemZInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSparcDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSparcAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSparcCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSparcDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSparcInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRISCVDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRISCVAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRISCVCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRISCVDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRISCVInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPowerPCDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPowerPCAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPowerPCCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPowerPCDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPowerPCInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMNVPTXCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMNVPTXDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMNVPTXInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMSP430Disassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMSP430AsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMSP430CodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMSP430Desc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMSP430Info.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMipsDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMipsAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMipsCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMipsDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMipsInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLanaiDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLanaiCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLanaiAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLanaiDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLanaiInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMHexagonDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMHexagonCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMHexagonAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMHexagonDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMHexagonInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBPFDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBPFAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBPFCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBPFDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBPFInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAVRDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAVRAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAVRCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAVRDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAVRInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMUtils.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMARMInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUTargetMCA.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUDesc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUUtils.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAMDGPUInfo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64Disassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64AsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64CodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64Desc.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64Utils.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAArch64Info.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMOrcJIT.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMCJIT.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMJITLink.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMInterpreter.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMExecutionEngine.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRuntimeDyld.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMOrcTargetProcess.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMOrcShared.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDWP.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDebugInfoGSYM.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMOption.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMObjectYAML.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMObjCopy.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMCA.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMCDisassembler.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLTO.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMPasses.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMCFGuard.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMCoroutines.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMObjCARCOpts.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMipo.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMVectorize.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMLinker.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMInstrumentation.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMFrontendOpenMP.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMFrontendOpenACC.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMExtensions.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDWARFLinker.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMGlobalISel.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMIRParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAsmPrinter.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSelectionDAG.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMCodeGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMIRReader.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAsmParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMInterfaceStub.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMFileCheck.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMFuzzMutate.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMTarget.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMScalarOpts.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMInstCombine.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAggressiveInstCombine.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMTransformUtils.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBitWriter.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMAnalysis.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMProfileData.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSymbolize.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDebugInfoPDB.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDebugInfoMSF.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDebugInfoDWARF.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMObject.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMTextAPI.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMCParser.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMMC.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDebugInfoCodeView.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBitReader.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMFuzzerCLI.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMCore.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMRemarks.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBitstreamReader.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMBinaryFormat.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMTableGen.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMSupport.a /home/niedzwiedz/local/llvm15-release/lib/libLLVMDemangle.a -lz -lzstd /usr/lib/libstdc++.a -lunwind --cache-dir /home/niedzwiedz/wasmerio/zig/zig-cache --global-cache-dir /home/niedzwiedz/.cache/zig --name zig --pkg-begin build_options /home/niedzwiedz/wasmerio/zig/zig-cache/options/U-Ww3m_m7ROCNhZ3P5gzfWO-caDjdxdoXJ14nLlcwSG3F13vLAMazBiDaddJbfen --pkg-end -I /home/niedzwiedz/local/llvm15-release/include -I /home/niedzwiedz/local/llvm15-release/include -L /home/niedzwiedz/local/llvm15-release/lib -L /home/niedzwiedz/local/llvm15-release/lib -I /home/niedzwiedz/local/llvm15-release/include -L /home/niedzwiedz/wasmerio/llvm-project-15/build-release/lib -I /home/niedzwiedz/wasmerio/llvm-project-15/build-release/include -fno-build-id --zig-lib-dir /home/niedzwiedz/wasmerio/zig/lib --enable-cache
error: the following build command failed with exit code 1:
/home/niedzwiedz/wasmerio/zig/zig-cache/o/586641f007660b4127782d0eed495978/build /home/niedzwiedz/wasmerio/zig/build/zig2 /home/niedzwiedz/wasmerio/zig /home/niedzwiedz/wasmerio/zig/zig-cache /home/niedzwiedz/.cache/zig compile --zig-lib-dir /home/niedzwiedz/wasmerio/zig/lib -Dconfig_h=/home/niedzwiedz/wasmerio/zig/build/config.h -Denable-llvm -Dtarget=native -Dcpu=native -Dversion-string=0.11.0
make[2]: *** [CMakeFiles/stage3.dir/build.make:71: CMakeFiles/stage3] Error 1
make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/stage3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It's worth pointing out that if you're looking into compiler dev or something, you don't need to follow this full process. Instead of using cmake, you can use a Zig binary from the normal downloads, and follow "Option B" on the page you linked.
One issue I did run into when doing this myself is some weirdness with ABI incompatibilities - this might be recent, or there might have been something weird about my setup, but I had to build LLVM and friends with zig cc (or Clang 15 directly, but that was just a convenient way to get it) for everything to link correctly in the stage3 build. It doesn't seem from the logs like that's the issue you're running into, since the compiler's not even emitting an actual error, but there's always a chance.
I was experiencing the same issues a few months ago with llvm15. I tried it today with llvm16 on zig master and it worked perfectly. I am also on arch linux, so yeah... I think it was solved somehow by llvm16
Activity
Niedzwiedzw commentedon Jan 5, 2023
Ok, I was running the wrong command, it should have been:
cmake .. -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="$HOME/local/llvm15-release/"now it goes up to
stage3and then crashesNiedzwiedzw commentedon Jan 5, 2023
posting output with --debug
Niedzwiedzw commentedon Jan 5, 2023
output with
--trace --debugNiedzwiedzw commentedon Jan 5, 2023
running
./build x86_64-linux-gnu baselinefromzig-bootstraprepository also results in the same errorkuon commentedon Jan 5, 2023
It works with the following
PKGBUILD.First,
llvm15with this one:Then
zigwith thisPKGBUILDEdit: just built
0.11.0-dev.1199+1878bdfbb1Niedzwiedzw commentedon Jan 5, 2023
hmmm are you on arch?
kuon commentedon Jan 5, 2023
Yes, those are
PKGBUILDfor arch. I'm running kernerl 6.1.2 at present.xir-kuku commentedon Jan 12, 2023
build llvm15. :)
mlugg commentedon Jan 12, 2023
Read the issue more closely - they have and are using it.
mlugg commentedon Jan 12, 2023
It's worth pointing out that if you're looking into compiler dev or something, you don't need to follow this full process. Instead of using cmake, you can use a Zig binary from the normal downloads, and follow "Option B" on the page you linked.
One issue I did run into when doing this myself is some weirdness with ABI incompatibilities - this might be recent, or there might have been something weird about my setup, but I had to build LLVM and friends with
zig cc(or Clang 15 directly, but that was just a convenient way to get it) for everything to link correctly in the stage3 build. It doesn't seem from the logs like that's the issue you're running into, since the compiler's not even emitting an actual error, but there's always a chance.twoXes commentedon Jan 12, 2023
what about just downloading a prebuilt linux binary and then it works - no waiting on the pacMan? which is what i did.
Arnau478 commentedon May 2, 2023
I was experiencing the same issues a few months ago with llvm15. I tried it today with llvm16 on zig master and it worked perfectly. I am also on arch linux, so yeah... I think it was solved somehow by llvm16
SeriousBusiness100 commentedon Aug 8, 2023
I second @Arnau478, works for me with llvm16 on zig master branch