-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When trying to build carg-os, I get an error that CMake cannot compile the test program because it cannot find crt0.o, libc.a, libgloss.a. By searching, I think I figured out that the error occurs when building “init”. Here is the make output:
$make
Cloning into 'init'...
remote: Enumerating objects: 236, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 236 (delta 73), reused 93 (delta 43), pack-reused 107 (from 1)
Receiving objects: 100% (236/236), 78.37 KiB | 627.00 KiB/s, done.
Resolving deltas: 100% (121/121), done.
Cloning into 'karg'...
remote: Enumerating objects: 1318, done.
remote: Counting objects: 100% (180/180), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 1318 (delta 96), reused 103 (delta 63), pack-reused 1138 (from 1)
Receiving objects: 100% (1318/1318), 1.74 MiB | 4.35 MiB/s, done.
Resolving deltas: 100% (827/827), done.
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/riscv64-unknown-elf-gcc
-- Check for working C compiler: /usr/bin/riscv64-unknown-elf-gcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/riscv64-unknown-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_d2a14/fast
make[1]: Entering directory '/home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B'
/usr/bin/make -f CMakeFiles/cmTC_d2a14.dir/build.make CMakeFiles/cmTC_d2a14.dir/build
make[2]: Entering directory '/home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B'
Building C object CMakeFiles/cmTC_d2a14.dir/testCCompiler.c.obj
/usr/bin/riscv64-unknown-elf-gcc -o CMakeFiles/cmTC_d2a14.dir/testCCompiler.c.obj -c /home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B/testCCompiler.c
Linking C executable cmTC_d2a14
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2a14.dir/link.txt --verbose=1
/usr/lib/gcc/riscv64-unknown-elf/14.2.0/../../../../riscv64-unknown-elf/bin/ld: cannot find crt0.o: No such file or directory
/usr/lib/gcc/riscv64-unknown-elf/14.2.0/../../../../riscv64-unknown-elf/bin/ld: cannot find -lc: No such file or directory
/usr/lib/gcc/riscv64-unknown-elf/14.2.0/../../../../riscv64-unknown-elf/bin/ld: cannot find -lgloss: No such file or directory
collect2: error: ld returned 1 exit status
/usr/bin/riscv64-unknown-elf-gcc CMakeFiles/cmTC_d2a14.dir/testCCompiler.c.obj -o cmTC_d2a14
make[2]: *** [CMakeFiles/cmTC_d2a14.dir/build.make:102: cmTC_d2a14] Error 1
make[2]: Leaving directory '/home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B'
make[1]: *** [Makefile:134: cmTC_d2a14/fast] Error 2
make[1]: Leaving directory '/home/ihgd/carg-os/build/CMakeFiles/CMakeScratch/TryCompile-gbUU8B'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
make: *** [Makefile:20: build] Error 1
Metadata
Metadata
Assignees
Labels
No labels