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

s390x-linux-gnu #116

Closed
LinuxUserGD opened this issue Aug 9, 2022 · 4 comments · Fixed by #197
Closed

s390x-linux-gnu #116

LinuxUserGD opened this issue Aug 9, 2022 · 4 comments · Fixed by #197

Comments

@LinuxUserGD
Copy link
Contributor

Host system: x86_64-gentoo-linux-musl

-- Found ccache /usr/bin/ccache
-- Configuring zig version 0.10.0-dev.2931+bdf3fa12f
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/zig-bootstrap/out/build-zig-host
[  1%] Built target opt_c_util
[  5%] Built target zigcpp
[ 86%] Built target embedded_softfloat
[ 98%] Built target zigstage1
[ 99%] Built target zig0
[100%] Built target zig
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user/zig-bootstrap/out/host/bin/zig
-- Set runtime path of "/home/user/zig-bootstrap/out/host/bin/zig" to ""
-- Installing: /home/user/zig-bootstrap/out/host/lib
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/home/user/zig-bootstrap/out/host/bin/zig"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_405c3/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_405c3.dir/build.make CMakeFiles/cmTC_405c3.dir/build
    gmake[1]: Entering directory '/home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_405c3.dir/testCCompiler.c.o
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target s390x-linux-gnu -mcpu=baseline    -o CMakeFiles/cmTC_405c3.dir/testCCompiler.c.o -c /home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeTmp/testCCompiler.c
    error: unknown target CPU 'generic'
    note: valid target CPU values are: arch8, z10, arch9, z196, arch10, zEC12, arch11, z13, arch12, z14, arch13, z15, arch14
    gmake[1]: *** [CMakeFiles/cmTC_405c3.dir/build.make:78: CMakeFiles/cmTC_405c3.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory '/home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_405c3/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
See also "/home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeOutput.log".
See also "/home/user/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeError.log".
@alexrp
Copy link
Member

alexrp commented Aug 22, 2024

-- Check for working C compiler: /home/alexrp/Source/zig-bootstrap/out/host/bin/zig
-- Check for working C compiler: /home/alexrp/Source/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /usr/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/home/alexrp/Source/zig-bootstrap/out/host/bin/zig"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/alexrp/Source/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeScratch/TryCompile-Ynjv1W'

    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_ddc98/fast
    /usr/bin/gmake  -f CMakeFiles/cmTC_ddc98.dir/build.make CMakeFiles/cmTC_ddc98.dir/build
    gmake[1]: Entering directory '/home/alexrp/Source/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeScratch/TryCompile-Ynjv1W'
    Building C object CMakeFiles/cmTC_ddc98.dir/testCCompiler.c.o
    /home/alexrp/Source/zig-bootstrap/out/host/bin/zig cc -fno-sanitize=all -s -target s390x-linux-gnu -mcpu=baseline    -MD -MT CMakeFiles/cmTC_ddc98.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_ddc98.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_ddc98.dir/testCCompiler.c.o -c /home/alexrp/Source/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeScratch/TryCompile-Ynjv1W/testCCompiler.c
    Linking C executable cmTC_ddc98
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ddc98.dir/link.txt --verbose=1
    /home/alexrp/Source/zig-bootstrap/out/host/bin/zig cc -fno-sanitize=all -s -target s390x-linux-gnu -mcpu=baseline CMakeFiles/cmTC_ddc98.dir/testCCompiler.c.o -o cmTC_ddc98
    /home/alexrp/.cache/zig/o/ec7a4a64dbd4d3a233cf9ed8a5bf52d7/m.s:4025:1: error: symbol 'lgammal' is already defined
    lgammal:
    ^
    gmake[1]: *** [CMakeFiles/cmTC_ddc98.dir/build.make:100: cmTC_ddc98] Error 1
    gmake[1]: Leaving directory '/home/alexrp/Source/zig-bootstrap/out/build-zlib-s390x-linux-gnu-baseline/CMakeFiles/CMakeScratch/TryCompile-Ynjv1W'
    gmake: *** [Makefile:127: cmTC_ddc98/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!

ziglang/zig#21076

@alexrp
Copy link
Member

alexrp commented Aug 24, 2024

We also need llvm/llvm-project#105918 to be able to assemble glibc's start code.

@alexrp
Copy link
Member

alexrp commented Sep 17, 2024

ziglang/zig#21313

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

Successfully merging a pull request may close this issue.

2 participants