GCC Cross Compiler - fenv.h: No such file or directory
Posted: Fri Sep 06, 2013 8:19 am
Hi!
I am new in osdev and I was following the GCC_Cross-Compiler tutorial, with x86_64-linux-gnu as host and target, building gcc-4.7.2 and binutils-2.22.
uname -a
Linux roquefort 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I built the binutils-2.22 without problems.
But when I execute the following command:
> make all-target-libgcc
I got this error:
/home/helen/cross_os/build-gcc-4.7.2/./gcc/xgcc -B/home/helen/cross_os/build-gcc-4.7.2/./gcc/ -B/home/helen/opt/cross/x86_64-linux-gnu/bin/ -B/home/helen/opt/cross/x86_64-linux-gnu/lib/ -isystem /home/helen/opt/cross/x86_64-linux-gnu/include -isystem /home/helen/opt/cross/x86_64-linux-gnu/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fpic -I. -I. -I../../.././gcc -I../../../../gcc-4.7.2/libgcc -I../../../../gcc-4.7.2/libgcc/. -I../../../../gcc-4.7.2/libgcc/../gcc -I../../../../gcc-4.7.2/libgcc/../include -I../../../../gcc-4.7.2/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o bid_decimal_globals.o -MT bid_decimal_globals.o -MD -MP -MF bid_decimal_globals.dep -c ../../../../gcc-4.7.2/libgcc/config/libbid/bid_decimal_globals.c
../../../../gcc-4.7.2/libgcc/config/libbid/bid_decimal_globals.c:47:18: fatal error: fenv.h: No such file or directory
I searched in other sites and some of them says to use the --disable-decimal-float flag, but I am not sure if I should use this flag.
Thanks in advance
I am new in osdev and I was following the GCC_Cross-Compiler tutorial, with x86_64-linux-gnu as host and target, building gcc-4.7.2 and binutils-2.22.
uname -a
Linux roquefort 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I built the binutils-2.22 without problems.
But when I execute the following command:
> make all-target-libgcc
I got this error:
/home/helen/cross_os/build-gcc-4.7.2/./gcc/xgcc -B/home/helen/cross_os/build-gcc-4.7.2/./gcc/ -B/home/helen/opt/cross/x86_64-linux-gnu/bin/ -B/home/helen/opt/cross/x86_64-linux-gnu/lib/ -isystem /home/helen/opt/cross/x86_64-linux-gnu/include -isystem /home/helen/opt/cross/x86_64-linux-gnu/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fpic -I. -I. -I../../.././gcc -I../../../../gcc-4.7.2/libgcc -I../../../../gcc-4.7.2/libgcc/. -I../../../../gcc-4.7.2/libgcc/../gcc -I../../../../gcc-4.7.2/libgcc/../include -I../../../../gcc-4.7.2/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o bid_decimal_globals.o -MT bid_decimal_globals.o -MD -MP -MF bid_decimal_globals.dep -c ../../../../gcc-4.7.2/libgcc/config/libbid/bid_decimal_globals.c
../../../../gcc-4.7.2/libgcc/config/libbid/bid_decimal_globals.c:47:18: fatal error: fenv.h: No such file or directory
I searched in other sites and some of them says to use the --disable-decimal-float flag, but I am not sure if I should use this flag.
Thanks in advance