https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92646
Bug ID: 92646 Summary: Compilation fails on armv7l with sys/cdefs.h: No such file or directory Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: samyavrillon at netcourrier dot com Target Milestone: --- I am using the source version of gcc 9.2.0 I tried to compile gcc on my OrangePi PC with ./configure --with-mpc=/home/bernard/building/mpc-1.1.0 --with-gmp=/home/bernard/building/gmp-6.1.2 --with-mpfr=/home/bernard/building/mpfr-4.0.2 I didn't gave any more options as I have no idea of what i should add The error happens during the make process Here is the error: /home/bernard/building/gcc-9.2.0/host-armv7l-unknown-linux-gnueabihf/gcc/xgcc -B/home/bernard/building/gcc-9.2.0/host-armv7l-unknown-linux-gnueabihf/gcc/ -B/usr/local/armv7l-unknown-linux-gnueabihf/bin/ -B/usr/local/armv7l-unknown-linux-gnueabihf/lib/ -isystem /usr/local/armv7l-unknown-linux-gnueabihf/include -isystem /usr/local/armv7l-unknown-linux-gnueabihf/sys-include -fno-checking -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -fno-inline -I. -I. -I../../host-armv7l-unknown-linux-gnueabihf/gcc -I../.././libgcc -I../.././libgcc/. -I../.././libgcc/../gcc -I../.././libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../.././libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS In file included from /usr/include/stdio.h:27, from ../.././libgcc/../gcc/tsystem.h:87, from ../.././libgcc/libgcc2.c:27: /usr/include/features.h:364:12: fatal error: sys/cdefs.h: No such file or directory 364 | # include <sys/cdefs.h> | ^~~~~~~~~~~~~ compilation terminated. I have to install the latest gcc beccause i only have gcc6 installed on my computer and cannot compile recent g++ programs. Thanks in advance.