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

riscv64-linux-gnu #115

Open
LinuxUserGD opened this issue Aug 9, 2022 · 2 comments
Open

riscv64-linux-gnu #115

LinuxUserGD opened this issue Aug 9, 2022 · 2 comments

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
[ 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-riscv64-linux-gnu-baseline/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_96722/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_96722.dir/build.make CMakeFiles/cmTC_96722.dir/build
    gmake[1]: Entering directory '/home/user/zig-bootstrap/out/build-zlib-riscv64-linux-gnu-baseline/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_96722.dir/testCCompiler.c.o
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target riscv64-linux-gnu -mcpu=baseline    -MD -MT CMakeFiles/cmTC_96722.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_96722.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_96722.dir/testCCompiler.c.o -c /home/user/zig-bootstrap/out/build-zlib-riscv64-linux-gnu-baseline/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_96722
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_96722.dir/link.txt --verbose=1
    /home/user/zig-bootstrap/out/host/bin/zig  cc -fno-sanitize=all -s -target riscv64-linux-gnu -mcpu=baseline -rdynamic CMakeFiles/cmTC_96722.dir/testCCompiler.c.o -o cmTC_96722
    /home/user/zig-bootstrap/out/host/lib/zig/libc/glibc/sysdeps/riscv/start-2.33.S:48:2: error: unknown directive
     .cfi_label .Ldummy
     ^
    gmake[1]: *** [CMakeFiles/cmTC_96722.dir/build.make:100: cmTC_96722] Error 1
    gmake[1]: Leaving directory '/home/user/zig-bootstrap/out/build-zlib-riscv64-linux-gnu-baseline/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_96722/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-riscv64-linux-gnu-baseline/CMakeFiles/CMakeOutput.log".
See also "/home/user/zig-bootstrap/out/build-zlib-riscv64-linux-gnu-baseline/CMakeFiles/CMakeError.log".
@kassane
Copy link

kassane commented Nov 16, 2022

@RossComputerGuy
Copy link
Sponsor

With the recent developments, I have been able to get farther than before. generic_rv64 will not work as a package requires something which uses atomic instructions which isn't in the generic set. Though, building for baseline_rv64 works. I'm up to clang at this point and everything is looking good.

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

3 participants