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

fatal error: ../../libgloss/libnosys/config.h: No such file or directory #16

Open
Ocean276 opened this issue May 26, 2024 · 0 comments
Open

Comments

@Ocean276
Copy link

I build the Newlib cross-compiler, and i met this problem, i do not know how to solve this.
I typed the command like following
./configure --prefix=/opt/riscv
make

and the problem is:
/home/ysyx/xuantie-gnu-toolchain/riscv-newlib/newlib/libc/machine/riscv/pthread.c:7:10: fatal error: ../../libgloss/libnosys/config.h: No such file or directory
7 | #include "../../libgloss/libnosys/config.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[7]: *** [Makefile:343: lib_a-pthread.o] Error 1
make[7]: Leaving directory '/home/ysyx/xuantie-gnu-toolchain/build-newlib/riscv64-unknown-elf/newlib/libc/machine/riscv'
Making all in .
make[7]: Entering directory '/home/ysyx/xuantie-gnu-toolchain/build-newlib/riscv64-unknown-elf/newlib/libc/machine'
rm -f lib.a
ln riscv/lib.a lib.a >/dev/null 2>/dev/null ||
cp riscv/lib.a lib.a
cp: cannot stat 'riscv/lib.a': No such file or directory
make[7]: *** [Makefile:574: lib.a] Error 1
make[7]: Leaving directory '/home/ysyx/xuantie-gnu-toolchain/build-newlib/riscv64-unknown-elf/newlib/libc/machine'
make[6]: *** [Makefile:319: all-recursive] Error 1
make[6]: Leaving directory '/home/ysyx/xuantie-gnu-toolchain/build-newlib/riscv64-unknown-elf/newlib/libc/machine'
Making all in syscalls

thank you for your suggestions!!!

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