Hi,
I'm trying to compile gcc 4.1.1 for the AVR platorm.
I compiled binutils 2.17 for the AVR platorm already and when I try to
compile gcc, I get the following error:
...
checking for avr-gcc...
/linux_source/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/xgcc
-B/linux_source/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/
-B/opt/avr/avr/bin/ -B/opt/avr/avr/lib/ -isystem /opt/avr/avr/include
-isystem /opt/avr/avr/sys-include
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libssp] Error 1
make[1]: Leaving directory `/linux_source/gcc-4.1.1'
make: *** [all] Error 2
....
The config.log file shows the following:
...
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -g -O2 conftest.c 1>&5
configure:2278:17: gmp.h: No such file or directory
configure: In function `main':
configure:2282: error: `choke' undeclared (first use in this function)
configure:2282: error: (Each undeclared identifier is reported only once
configure:2282: error: for each function it appears in.)
configure:2282: error: parse error before "me"
configure: failed program was:
#line 2277 "configure"
#include "confdefs.h"
#include "gmp.h"
...
Where do I get gmp.h? Do I need it? What else can be wrong?
The following options were used to compile binutils 2.17:
./configure --prefix=/opt/avr --target=avr
My path is set to include /opt/avr then I tried to compile gcc 4.1.1
The following options were used to compile gcc 4.1.1:
./configure --prefix=/opt/avr --target=avr --enable-languages=c
--disable-nls
Thanks.
Aaron.