Open LinuxUserGD opened 2 years ago
[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
System is unknown to cmake, create:
Platform/j to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/j to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig
System is unknown to cmake, create:
Platform/j to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
-- Check for working C compiler: /home/user/zig-bootstrap/out/host/bin/zig - broken
CMake Error at /usr/share/cmake-3.22/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--j-1/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_62757/fast && /usr/bin/gmake -f CMakeFiles/cmTC_62757.dir/build.make CMakeFiles/cmTC_62757.dir/build
gmake[1]: Entering directory '/home/dk/zig-bootstrap/out/build-zlib--j-1/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_62757.dir/testCCompiler.c.obj
/home/dk/zig-bootstrap/out/host/bin/zig cc -fno-sanitize=all -s -target -j -mcpu=1 -o CMakeFiles/cmTC_62757.dir/testCCompiler.c.obj -c /home/dk/zig-bootstrap/out/build-zlib--j-1/CMakeFiles/CMakeTmp/testCCompiler.c
error: UnknownArchitecture
gmake[1]: *** [CMakeFiles/cmTC_62757.dir/build.make:78: CMakeFiles/cmTC_62757.dir/testCCompiler.c.obj] Error 1
gmake[1]: Leaving directory '/home/dk/zig-bootstrap/out/build-zlib--j-1/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_62757/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--j-1/CMakeFiles/CMakeOutput.log".
See also "/home/user/zig-bootstrap/out/build-zlib--j-1/CMakeFiles/CMakeError.log".
Similar issue for me. Trying to build on x86 64 bit with 16 GB ram. I've compiled zig itself fine before on this machine, so it's a bit weird that it complains about the host failing and not the target.
./build arm-linux-musleabi baseline
is what I used to build. The system zig is 0.11.0-dev.1366+c70a3d902, but according to the error it's trying to use the newly compiled zig anyway. Are there any log files that would be helpful?
Hits the same issue described in https://github.com/ziglang/zig-bootstrap/issues/101#issuecomment-2303151451.
Host system: x86_64-gentoo-linux-musl
Might be a regression or host specific because README mentions target should be OK