ziglang/zig-bootstrap

x86_64-linux-gnux32 is broken

vrischmann opened this issue · 2 comments

Here's the error:

Install the project...
-- Install configuration: "Release"
-- Installing: /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig
-- Set runtime path of "/home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig" to ""
-- Installing: /home/vincent/dev/devtools/zig-bootstrap/out/host/lib
-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
-- The ASM compiler identification is unknown
-- Found assembler: /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/vincent/dev/devtools/zig-bootstrap/out/build-llvm-x86_64-linux-gnux32/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake cmTC_56a8e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_56a8e.dir/build.make CMakeFiles/cmTC_56a8e.dir/build
    gmake[1]: Entering directory '/home/vincent/dev/devtools/zig-bootstrap/out/build-llvm-x86_64-linux-gnux32/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_56a8e.dir/testCCompiler.c.o
    /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig  cc -target x86_64-linux-gnux32     -o CMakeFiles/cmTC_56a8e.dir/testCCompiler.c.o   -c /home/vincent/dev/devtools/zig-bootstrap/out/build-llvm-x86_64-linux-gnux32/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_56a8e
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_56a8e.dir/link.txt --verbose=1
    /home/vincent/dev/devtools/zig-bootstrap/out/host/bin/zig  cc -target x86_64-linux-gnux32       CMakeFiles/cmTC_56a8e.dir/testCCompiler.c.o  -o cmTC_56a8e
    Assertion failed at /home/vincent/dev/devtools/zig-bootstrap/zig/src/codegen.cpp:9059 in init. This is a bug in the Zig compiler.
    Unable to dump stack trace: debug info stripped
    Error running link command: Child aborted
    gmake[1]: *** [CMakeFiles/cmTC_56a8e.dir/build.make:104: cmTC_56a8e] Error 1
    gmake[1]: Leaving directory '/home/vincent/dev/devtools/zig-bootstrap/out/build-llvm-x86_64-linux-gnux32/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:138: cmTC_56a8e/fast] Error 2

Tested on Fedora 32 beta.

Just curious, what's your use case for the gnux32 ABI?

No use case, I just tested the build out of curiosity.