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-musl source build segmentation faults #154

Open
apprehensions opened this issue Jun 4, 2023 · 0 comments
Open

x86_64-linux-musl source build segmentation faults #154

apprehensions opened this issue Jun 4, 2023 · 0 comments

Comments

@apprehensions
Copy link

~/.cache/kiss/sources/zig/zig-bootstrap-0.10.1 $ ./build x86_64-linux-musl native
...
[  1%] Built target opt_c_util
[  5%] Built target zigcpp
[ 86%] Built target embedded_softfloat
[ 97%] Built target zigstage1
[ 98%] Built target zig1
[100%] Built target zig2
[100%] Building stage3
[100%] Built target stage3
Install the project...
-- Install configuration: "Release"
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/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/host/bin/zig
-- Check for working C compiler: /home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/host/bin/zig - broken
CMake Error at /usr/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/host/bin/zig"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/build-zlib-x86_64-linux-musl-native/CMakeFiles/CMakeScratch/TryCompile-eFNfFE

    Run Build Command(s):/usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_d6a10/fast && /usr/bin/make  -f CMakeFiles/cmTC_d6a10.dir/build.make CMakeFiles/cmTC_d6a10.dir/build
    make[1]: Entering directory '/home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/build-zlib-x86_64-linux-musl-native/CMakeFiles/CMakeScratch/TryCompile-eFNfFE'
    Building C object CMakeFiles/cmTC_d6a10.dir/testCCompiler.c.o
    /home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/host/bin/zig cc -fno-sanitize=all -s -target x86_64-linux-musl -mcpu=native    -o CMakeFiles/cmTC_d6a10.dir/testCCompiler.c.o -c /home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/build-zlib-x86_64-linux-musl-native/CMakeFiles/CMakeScratch/TryCompile-eFNfFE/testCCompiler.c
    make[1]: *** [CMakeFiles/cmTC_d6a10.dir/build.make:78: CMakeFiles/cmTC_d6a10.dir/testCCompiler.c.o] Segmentation fault
    make[1]: Leaving directory '/home/meow/.cache/kiss/sources/zig/zig-bootstrap-0.10.1/out/build-zlib-x86_64-linux-musl-native/CMakeFiles/CMakeScratch/TryCompile-eFNfFE'
    make: *** [Makefile:127: cmTC_d6a10/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!
$ out/host/bin/zig
Segmentation Fault

Information about system:

  • no clang
  • llvm 15.0.7
  • busybox
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

1 participant