ziglang / zig-bootstrap

take off every zig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mips64el-linux-musl

andrewrk opened this issue · comments

[  8%] Linking CXX shared module ../../LLVMHello.so
warning: unsupported linker arg: -O3
warning: unsupported linker arg: --gc-sections
warning: unsupported linker arg: --version-script
warning: unsupported linker arg: /home/andy/dev/bootstrap-zig/out/build-llvm-mips64el-linux-musl/lib/Transforms/Hello/LLVMHello.exports
warning: unsupported linker arg: -z
warning: unsupported linker arg: nodelete
lld: error: can't create dynamic relocation R_MIPS_64 against symbol: DW.ref.__gxx_personality_v0 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /home/andy/.cache/zig/stage1/o/uaPpjWXXLVoQKEib-ER81h5jQb-cdtJxGrifvrRbSFJoyWDeOxO78ob0GfF_F8Pv/libc++.a(/home/andy/.cache/zig/stage1/o/_-0XcBUeTnuXpdMG0KAoTyXYgRxrDkE-C_cNC6OTx3RxxbOBFeYN_V0UIQy3BdOq/new.o)
>>> referenced by new.cpp
>>>               /home/andy/.cache/zig/stage1/o/_-0XcBUeTnuXpdMG0KAoTyXYgRxrDkE-C_cNC6OTx3RxxbOBFeYN_V0UIQy3BdOq/new.o:(.eh_frame+0x3AA3) in archive /home/andy/.cache/zig/stage1/o/uaPpjWXXLVoQKEib-ER81h5jQb-cdtJxGrifvrRbSFJoyWDeOxO78ob0GfF_F8Pv/libc++.a

This looks like the 64-bit version of ziglang/zig#4925

CMake output is currently different with x86_64-gentoo-linux-musl as host:

-- 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
[ 82%] Built target embedded_softfloat
[ 86%] Built target zigcpp
[ 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 Clang 14.0.6
-- 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-mips64el-linux-musl-baseline/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2da91/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2da91.dir/build.make CMakeFiles/cmTC_2da91.dir/build
    gmake[1]: Entering directory '/home/user/zig-bootstrap/out/build-zlib-mips64el-linux-musl-baseline/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_2da91.dir/testCCompiler.c.o
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target mips64el-linux-musl -mcpu=baseline    -MD -MT CMakeFiles/cmTC_2da91.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_2da91.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_2da91.dir/testCCompiler.c.o -c /home/user/zig-bootstrap/out/build-zlib-mips64el-linux-musl-baseline/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_2da91
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2da91.dir/link.txt --verbose=1
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target mips64el-linux-musl -mcpu=baseline -rdynamic CMakeFiles/cmTC_2da91.dir/testCCompiler.c.o -o cmTC_2da91
    /home/user/zig-bootstrap/out/host/lib/zig/std/os/linux.zig:50:34: error: container 'arch_bits' has no member called 'syscall3'
    pub const syscall3 = syscall_bits.syscall3;
                                     ^
    gmake[1]: *** [CMakeFiles/cmTC_2da91.dir/build.make:100: cmTC_2da91] Error 1
    gmake[1]: Leaving directory '/home/user/zig-bootstrap/out/build-zlib-mips64el-linux-musl-baseline/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_2da91/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-mips64el-linux-musl-baseline/CMakeFiles/CMakeOutput.log".
See also "/home/user/zig-bootstrap/out/build-zlib-mips64el-linux-musl-baseline/CMakeFiles/CMakeError.log".