ziglang / zig-bootstrap

take off every zig
368 stars 86 forks source link

does not compile on ubuntu 20.04.05 LTS #143

Closed matu3ba closed 1 year ago

matu3ba commented 1 year ago

Building cmake from source:

cd ~/dev/git/cpp
git clone https://github.com/Kitware/CMake
# either
# ./bootstrap && make && sudo make install
mkdir -p build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE="RelWithDebInfo" ..
ninja
# usage: PATH="${HOME}/dev/git/cpp/CMake/bin:${PATH}"

Instructions

#!/usr/bin/env sh

PATH="${HOME}/dev/git/cpp/CMake/build/bin:${PATH}"
CMAKE_GENERATOR=Ninja ./build x86_64-linux-musl native

# file b.sh executed with ./b.sh &> error.txt

Output

``` -- bolt project is disabled -- clang project is enabled -- clang-tools-extra project is disabled -- compiler-rt project is disabled -- cross-project-tests project is disabled -- libc project is disabled -- libclc project is disabled -- libcxx project is disabled -- libcxxabi project is disabled -- libunwind project is disabled -- lld project is enabled -- lldb project is disabled -- mlir project is disabled -- openmp project is disabled -- polly project is disabled -- pstl project is disabled -- flang project is disabled -- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) -- Native target architecture is X86 -- Threads enabled. -- Doxygen disabled. -- Go bindings disabled. -- Ninja version: 1.10.0 -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) -- OCaml bindings disabled. -- LLVM host triple: x86_64-unknown-linux-gnu -- LLVM default target triple: x86_64-unknown-linux-gnu -- Building with -fPIC -- Targeting AArch64 -- Targeting AMDGPU -- Targeting ARM -- Targeting AVR -- Targeting BPF -- Targeting Hexagon -- Targeting Lanai -- Targeting Mips -- Targeting MSP430 -- Targeting NVPTX -- Targeting PowerPC -- Targeting RISCV -- Targeting Sparc -- Targeting SystemZ -- Targeting VE -- Targeting WebAssembly -- Targeting X86 -- Targeting XCore -- Clang version: 15.0.6 -- Not building amdgpu-arch: hsa-runtime64 not found -- LLD version: 15.0.6 -- Configuring done -- Generating done -- Build files have been written to: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-llvm-host [1/3] Building CXX object tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o [2/3] Linking CXX executable bin/llvm-config [2/3] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/include/llvm -- Up-to-date: ... -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/libLLVMLibDriver.a -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/libLLVMXRay.a -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/libLLVMWindowsDriver.a -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/libLLVMWindowsManifest.a -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-ar CMake Warning (dev) at /home/user/dev/git/cpp/CMake/Modules/GNUInstallDirs.cmake:243 (message): Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. Please enable at least one language before including GNUInstallDirs. Call Stack (most recent call first): /home/user/dev/git/bootstrap/zig-bootstrap/musl/llvm/cmake/modules/LLVMInstallSymlink.cmake:5 (include) tools/llvm-ar/cmake_install.cmake:56 (include) tools/cmake_install.cmake:48 (include) cmake_install.cmake:78 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Creating llvm-ranlib -- Creating llvm-lib -- Creating llvm-dlltool -- Installing: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-config -- Up-to-date: .. -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/libclangSupport.a -- Creating clang++ -- Creating clang-cl -- Creating clang-cpp -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/share/clang/clang-format-bbedit.applescript -- Up-to-date: .. -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/lld -- Creating lld-link -- Creating ld.lld -- Creating ld64.lld -- Creating wasm-ld -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/liblldCOFF.a -- Up-to-date: .. -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-objcopy -- Creating llvm-install-name-tool -- Creating llvm-bitcode-strip -- Creating llvm-strip -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-objdump -- Creating llvm-otool -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-opt-report -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-pdbutil -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-profgen -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-rc -- Creating llvm-windres -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-readobj -- Creating llvm-readelf -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-reduce -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-remark-size-diff -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-rtdyld -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-sim -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-size -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-split -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-stress -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-strings -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-symbolizer -- Creating llvm-addr2line -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/bin/llvm-tapi-diff -- Up-to-date: .. -- Up-to-date: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/lib/cmake/llvm/./HandleLLVMOptions.cmake -- Configuring zig version 0.11.0-dev.670+f7fea080b -- Configuring done -- Generating done -- Build files have been written to: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host [1/5] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o FAILED: CMakeFiles/zig2.dir/compiler_rt.c.o /usr/bin/cc -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/include -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/src -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib -O3 -DNDEBUG -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFiles/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c In file included from /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c:1: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:351:12: warning: implicit declaration of function ‘zig_addw_u32’; did you mean ‘zig_addo_u32’? [-Wimplicit-function-declaration] 351 | *res = zig_addw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_addo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:389:12: warning: implicit declaration of function ‘zig_addw_u64’; did you mean ‘zig_addo_u64’? [-Wimplicit-function-declaration] 389 | *res = zig_addw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_addo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:427:25: warning: passing argument 1 of ‘zig_addo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 427 | return zig_addo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:344:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 344 | static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:444:25: warning: passing argument 1 of ‘zig_addo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 444 | return zig_addo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:363:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 363 | static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:461:25: warning: passing argument 1 of ‘zig_addo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 461 | return zig_addo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:344:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 344 | static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:478:25: warning: passing argument 1 of ‘zig_addo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 478 | return zig_addo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:363:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 363 | static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:495:12: warning: implicit declaration of function ‘zig_subw_u32’; did you mean ‘zig_subo_u32’? [-Wimplicit-function-declaration] 495 | *res = zig_subw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_subo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:533:12: warning: implicit declaration of function ‘zig_subw_u64’; did you mean ‘zig_subo_u64’? [-Wimplicit-function-declaration] 533 | *res = zig_subw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_subo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:571:25: warning: passing argument 1 of ‘zig_subo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 571 | return zig_subo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:488:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 488 | static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:588:25: warning: passing argument 1 of ‘zig_subo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 588 | return zig_subo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:507:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 507 | static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:606:25: warning: passing argument 1 of ‘zig_subo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 606 | return zig_subo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:488:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 488 | static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:624:25: warning: passing argument 1 of ‘zig_subo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 624 | return zig_subo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:507:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 507 | static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:641:12: warning: implicit declaration of function ‘zig_mulw_u32’; did you mean ‘zig_mulo_u32’? [-Wimplicit-function-declaration] 641 | *res = zig_mulw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_mulo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:679:12: warning: implicit declaration of function ‘zig_mulw_u64’; did you mean ‘zig_mulo_u64’? [-Wimplicit-function-declaration] 679 | *res = zig_mulw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_mulo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:717:25: warning: passing argument 1 of ‘zig_mulo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 717 | return zig_mulo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:634:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 634 | static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:734:25: warning: passing argument 1 of ‘zig_mulo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 734 | return zig_mulo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:653:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 653 | static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:751:25: warning: passing argument 1 of ‘zig_mulo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 751 | return zig_mulo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:634:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 634 | static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:768:25: warning: passing argument 1 of ‘zig_mulo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 768 | return zig_mulo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:653:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 653 | static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: At top level: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:787:28: error: conflicting types for ‘zig_addw_u32’ 787 | static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:351:12: note: previous implicit declaration of ‘zig_addw_u32’ was here 351 | *res = zig_addw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:795:28: error: conflicting types for ‘zig_subw_u32’ 795 | static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:495:12: note: previous implicit declaration of ‘zig_subw_u32’ was here 495 | *res = zig_subw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:803:28: error: conflicting types for ‘zig_mulw_u32’ 803 | static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:641:12: note: previous implicit declaration of ‘zig_mulw_u32’ was here 641 | *res = zig_mulw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:787:28: error: conflicting types for ‘zig_addw_u64’ 787 | static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:389:12: note: previous implicit declaration of ‘zig_addw_u64’ was here 389 | *res = zig_addw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:795:28: error: conflicting types for ‘zig_subw_u64’ 795 | static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:533:12: note: previous implicit declaration of ‘zig_subw_u64’ was here 533 | *res = zig_subw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:803:28: error: conflicting types for ‘zig_mulw_u64’ 803 | static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:679:12: note: previous implicit declaration of ‘zig_mulw_u64’ was here 679 | *res = zig_mulw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:958:25: error: too few arguments to function ‘zig_byte_swap_u8’ 958 | full_res = (zig_u16)zig_byte_swap_u8((zig_u8)(val >> 0)) << 8 | | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:945:22: note: declared here 945 | static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:959:25: error: too few arguments to function ‘zig_byte_swap_u8’ 959 | (zig_u16)zig_byte_swap_u8((zig_u8)(val >> 8)) >> 0; | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:945:22: note: declared here 945 | static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:973:25: error: too few arguments to function ‘zig_byte_swap_u16’ 973 | full_res = (zig_u32)zig_byte_swap_u16((zig_u16)(val >> 0)) << 16 | | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:953:23: note: declared here 953 | static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:974:25: error: too few arguments to function ‘zig_byte_swap_u16’ 974 | (zig_u32)zig_byte_swap_u16((zig_u16)(val >> 16)) >> 0; | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:953:23: note: declared here 953 | static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:988:25: error: too few arguments to function ‘zig_byte_swap_u32’ 988 | full_res = (zig_u64)zig_byte_swap_u32((zig_u32)(val >> 0)) << 32 | | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:968:23: note: declared here 968 | static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:989:25: error: too few arguments to function ‘zig_byte_swap_u32’ 989 | (zig_u64)zig_byte_swap_u32((zig_u32)(val >> 32)) >> 0; | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:968:23: note: declared here 968 | static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1424:47: error: ‘overflow’ undeclared (first use in this function); did you mean ‘overflow_int’? 1424 | zig_i128 full_res = __muloti4(lhs, rhs, &overflow); | ^~~~~~~~ | overflow_int /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1424:47: note: each undeclared identifier is reported only once for each function it appears in /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_clz_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1492:39: warning: implicit declaration of function ‘zig_clz_u64’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 1492 | if (zig_hi_u128(val) != 0) return zig_clz_u64(zig_hi_u128(val), bits - zig_as_u8(64)); | ^~~~~~~~~~~ | zig_clz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_ctz_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1501:39: warning: implicit declaration of function ‘zig_ctz_u64’; did you mean ‘zig_ctz_u128’? [-Wimplicit-function-declaration] 1501 | if (zig_lo_u128(val) != 0) return zig_ctz_u64(zig_lo_u128(val), zig_as_u8(64)); | ^~~~~~~~~~~ | zig_ctz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_popcount_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1510:12: warning: implicit declaration of function ‘zig_popcount_u64’; did you mean ‘zig_popcount_u128’? [-Wimplicit-function-declaration] 1510 | return zig_popcount_u64(zig_hi_u128(val), bits - zig_as_u8(64)) + | ^~~~~~~~~~~~~~~~ | zig_popcount_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c: In function ‘__addhf3’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c:992:10: warning: implicit declaration of function ‘zig_clz_u16’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 992 | t35 = zig_clz_u16(t13, zig_as_u8(16)); | ^~~~~~~~~~~ | zig_clz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c: In function ‘__addsf3’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c:1419:10: warning: implicit declaration of function ‘zig_clz_u32’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 1419 | t35 = zig_clz_u32(t17, zig_as_u8(32)); | ^~~~~~~~~~~ | zig_clz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c: In function ‘math_ldexp_ldexp__anon_3289’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c:27801:9: warning: implicit declaration of function ‘zig_ctz_u32’; did you mean ‘zig_ctz_u128’? [-Wimplicit-function-declaration] 27801 | t7 = zig_ctz_u32(t0, zig_as_u8(32)); | ^~~~~~~~~~~ | zig_ctz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c: In function ‘compiler_rt_common_panic’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/compiler_rt.c:33719:1: warning: ‘noreturn’ function does return 33719 | } | ^ [2/5] Building C object CMakeFiles/zig2.dir/zig2.c.o FAILED: CMakeFiles/zig2.dir/zig2.c.o /usr/bin/cc -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/out/host/include -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/src -I/home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib -O3 -DNDEBUG -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c In file included from /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:1: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:351:12: warning: implicit declaration of function ‘zig_addw_u32’; did you mean ‘zig_addo_u32’? [-Wimplicit-function-declaration] 351 | *res = zig_addw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_addo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:389:12: warning: implicit declaration of function ‘zig_addw_u64’; did you mean ‘zig_addo_u64’? [-Wimplicit-function-declaration] 389 | *res = zig_addw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_addo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:427:25: warning: passing argument 1 of ‘zig_addo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 427 | return zig_addo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:344:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 344 | static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:444:25: warning: passing argument 1 of ‘zig_addo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 444 | return zig_addo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:363:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 363 | static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:461:25: warning: passing argument 1 of ‘zig_addo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 461 | return zig_addo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:344:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 344 | static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_addo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:478:25: warning: passing argument 1 of ‘zig_addo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 478 | return zig_addo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:363:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 363 | static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:495:12: warning: implicit declaration of function ‘zig_subw_u32’; did you mean ‘zig_subo_u32’? [-Wimplicit-function-declaration] 495 | *res = zig_subw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_subo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:533:12: warning: implicit declaration of function ‘zig_subw_u64’; did you mean ‘zig_subo_u64’? [-Wimplicit-function-declaration] 533 | *res = zig_subw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_subo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:571:25: warning: passing argument 1 of ‘zig_subo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 571 | return zig_subo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:488:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 488 | static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:588:25: warning: passing argument 1 of ‘zig_subo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 588 | return zig_subo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:507:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 507 | static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:606:25: warning: passing argument 1 of ‘zig_subo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 606 | return zig_subo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:488:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 488 | static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_subo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:624:25: warning: passing argument 1 of ‘zig_subo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 624 | return zig_subo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:507:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 507 | static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:641:12: warning: implicit declaration of function ‘zig_mulw_u32’; did you mean ‘zig_mulo_u32’? [-Wimplicit-function-declaration] 641 | *res = zig_mulw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_mulo_u32 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:679:12: warning: implicit declaration of function ‘zig_mulw_u64’; did you mean ‘zig_mulo_u64’? [-Wimplicit-function-declaration] 679 | *res = zig_mulw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ | zig_mulo_u64 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:717:25: warning: passing argument 1 of ‘zig_mulo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 717 | return zig_mulo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u8 * {aka unsigned char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:634:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u8 *’ {aka ‘unsigned char *’} 634 | static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i8’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:734:25: warning: passing argument 1 of ‘zig_mulo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 734 | return zig_mulo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i8 * {aka signed char *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:653:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i8 *’ {aka ‘signed char *’} 653 | static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:751:25: warning: passing argument 1 of ‘zig_mulo_u32’ from incompatible pointer type [-Wincompatible-pointer-types] 751 | return zig_mulo_u32(res, lhs, rhs, bits); | ^~~ | | | zig_u16 * {aka short unsigned int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:634:42: note: expected ‘zig_u32 *’ {aka ‘unsigned int *’} but argument is of type ‘zig_u16 *’ {aka ‘short unsigned int *’} 634 | static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:768:25: warning: passing argument 1 of ‘zig_mulo_i32’ from incompatible pointer type [-Wincompatible-pointer-types] 768 | return zig_mulo_i32(res, lhs, rhs, bits); | ^~~ | | | zig_i16 * {aka short int *} /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:653:42: note: expected ‘zig_i32 *’ {aka ‘int *’} but argument is of type ‘zig_i16 *’ {aka ‘short int *’} 653 | static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | ~~~~~~~~~^~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: At top level: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:787:28: error: conflicting types for ‘zig_addw_u32’ 787 | static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:351:12: note: previous implicit declaration of ‘zig_addw_u32’ was here 351 | *res = zig_addw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:795:28: error: conflicting types for ‘zig_subw_u32’ 795 | static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:495:12: note: previous implicit declaration of ‘zig_subw_u32’ was here 495 | *res = zig_subw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:803:28: error: conflicting types for ‘zig_mulw_u32’ 803 | static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:868:1: note: in expansion of macro ‘zig_int_builtins’ 868 | zig_int_builtins(32) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:641:12: note: previous implicit declaration of ‘zig_mulw_u32’ was here 641 | *res = zig_mulw_u32(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:787:28: error: conflicting types for ‘zig_addw_u64’ 787 | static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:389:12: note: previous implicit declaration of ‘zig_addw_u64’ was here 389 | *res = zig_addw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:795:28: error: conflicting types for ‘zig_subw_u64’ 795 | static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:533:12: note: previous implicit declaration of ‘zig_subw_u64’ was here 533 | *res = zig_subw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:803:28: error: conflicting types for ‘zig_mulw_u64’ 803 | static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | ^~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:869:1: note: in expansion of macro ‘zig_int_builtins’ 869 | zig_int_builtins(64) | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:679:12: note: previous implicit declaration of ‘zig_mulw_u64’ was here 679 | *res = zig_mulw_u64(lhs, rhs, bits); | ^~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u16’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:958:25: error: too few arguments to function ‘zig_byte_swap_u8’ 958 | full_res = (zig_u16)zig_byte_swap_u8((zig_u8)(val >> 0)) << 8 | | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:945:22: note: declared here 945 | static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:959:25: error: too few arguments to function ‘zig_byte_swap_u8’ 959 | (zig_u16)zig_byte_swap_u8((zig_u8)(val >> 8)) >> 0; | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:945:22: note: declared here 945 | static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u32’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:973:25: error: too few arguments to function ‘zig_byte_swap_u16’ 973 | full_res = (zig_u32)zig_byte_swap_u16((zig_u16)(val >> 0)) << 16 | | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:953:23: note: declared here 953 | static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:974:25: error: too few arguments to function ‘zig_byte_swap_u16’ 974 | (zig_u32)zig_byte_swap_u16((zig_u16)(val >> 16)) >> 0; | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:953:23: note: declared here 953 | static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_byte_swap_u64’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:988:25: error: too few arguments to function ‘zig_byte_swap_u32’ 988 | full_res = (zig_u64)zig_byte_swap_u32((zig_u32)(val >> 0)) << 32 | | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:968:23: note: declared here 968 | static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:989:25: error: too few arguments to function ‘zig_byte_swap_u32’ 989 | (zig_u64)zig_byte_swap_u32((zig_u32)(val >> 32)) >> 0; | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:968:23: note: declared here 968 | static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | ^~~~~~~~~~~~~~~~~ /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_mulo_i128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1424:47: error: ‘overflow’ undeclared (first use in this function); did you mean ‘overflow_int’? 1424 | zig_i128 full_res = __muloti4(lhs, rhs, &overflow); | ^~~~~~~~ | overflow_int /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1424:47: note: each undeclared identifier is reported only once for each function it appears in /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_clz_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1492:39: warning: implicit declaration of function ‘zig_clz_u64’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 1492 | if (zig_hi_u128(val) != 0) return zig_clz_u64(zig_hi_u128(val), bits - zig_as_u8(64)); | ^~~~~~~~~~~ | zig_clz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_ctz_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1501:39: warning: implicit declaration of function ‘zig_ctz_u64’; did you mean ‘zig_ctz_u128’? [-Wimplicit-function-declaration] 1501 | if (zig_lo_u128(val) != 0) return zig_ctz_u64(zig_lo_u128(val), zig_as_u8(64)); | ^~~~~~~~~~~ | zig_ctz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h: In function ‘zig_popcount_u128’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/zig/lib/zig.h:1510:12: warning: implicit declaration of function ‘zig_popcount_u64’; did you mean ‘zig_popcount_u128’? [-Wimplicit-function-declaration] 1510 | return zig_popcount_u64(zig_hi_u128(val), bits - zig_as_u8(64)) + | ^~~~~~~~~~~~~~~~ | zig_popcount_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘math_log2_int__anon_4857’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:193918:7: warning: implicit declaration of function ‘zig_clz_u32’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 193918 | t1 = zig_clz_u32(a0, zig_as_u8(29)); | ^~~~~~~~~~~ | zig_clz_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘fmt_ArgState_hasUnusedArgs’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:341911:7: warning: implicit declaration of function ‘zig_popcount_u32’; did you mean ‘zig_popcount_u128’? [-Wimplicit-function-declaration] 341911 | t2 = zig_popcount_u32(t1, zig_as_u8(32)); | ^~~~~~~~~~~~~~~~ | zig_popcount_u128 /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘link_Wasm_emitSegmentInfo’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:813761: warning: implicit declaration of function ‘zig_ctz_u32’; did you mean ‘zig_ctz_u128’? [-Wimplicit-function-declaration] 813761 | t31 = zig_ctz_u32(t19, zig_as_u8(32)); | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘math_ceilPowerOfTwoPromote__anon_101712’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:1102672: warning: implicit declaration of function ‘zig_clz_u16’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 1102672 | t2 = zig_clz_u16(t1, zig_as_u8(16)); | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘mem_alignBackwardGeneric__anon_160424’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:2087116: warning: implicit declaration of function ‘zig_popcount_i64’; did you mean ‘zig_popcount_i128’? [-Wimplicit-function-declaration] 2087116 | t0 = zig_popcount_i64(a1, zig_as_u8(64)); | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘bit_set_IntegerBitSet_2810_29_count’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:2343810: warning: implicit declaration of function ‘zig_popcount_u16’; did you mean ‘zig_popcount_u128’? [-Wimplicit-function-declaration] 2343810 | t1 = zig_popcount_u16(t0, zig_as_u8(10)); | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘math_log2_int__anon_190470’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:2499983: warning: implicit declaration of function ‘zig_clz_u8’; did you mean ‘zig_clz_u128’? [-Wimplicit-function-declaration] 2499983 | t1 = zig_clz_u8(a0, zig_as_u8(3)); | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90657’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:722738: warning: ‘noreturn’ function does return 722738 | } | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90764’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:724568: warning: ‘noreturn’ function does return 724568 | } | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90777’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:724864: warning: ‘noreturn’ function does return 724864 | } | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90779’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:724869: warning: ‘noreturn’ function does return 724869 | } | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90788’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:724928: warning: ‘noreturn’ function does return 724928 | } | /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c: In function ‘Autodoc_panicWithContext__anon_90828’: /home/user/dev/git/bootstrap/zig-bootstrap/musl/out/build-zig-host/zig2.c:725335: warning: ‘noreturn’ function does return 725335 | } | ninja: build stopped: subcommand failed. ```
matu3ba commented 1 year ago

Works again with the following build script:

#!/usr/bin/env sh

PATH="$HOME/dev/git/cpp/CMake/build/bin:$PATH"
CMAKE_GENERATOR=Ninja ./build x86_64-linux-musl native