Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64-linux-gnux32 is broken #20

Open
vrischmann opened this issue Apr 8, 2020 · 2 comments
Open

x86_64-linux-gnux32 is broken #20

vrischmann opened this issue Apr 8, 2020 · 2 comments

Comments

@vrischmann
Copy link
Contributor

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.

@andrewrk
Copy link
Member

andrewrk commented Apr 8, 2020

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

@vrischmann
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants