Hi ,<br>I have problems compiling gcc-4.5.1. I decompressed <br><pre>gcc-4.5.1.tar.gz, gcc-core-4.5.1.tar.gz,<br>gcc-g++-4.5.1.tar.gz, gcc-objc-4.5.1.tar.gz<br><br><br></pre>files, patched with gcc-core-4.5.1-rtems4.11-20100818.diff <br>
Then executed <br><pre>../gcc-4.3.2/configure --target=bfin-rtems4.11 \<br> --with-gnu-as --with-gnu-ld --with-newlib --verbose \<br> --enable-threads --enable-languages="c,c++" \<br> --prefix=/opt/rtems-4.11<br>
</pre>command.<br><br>make all failed like this:<br><br>checking for bfin-rtems4.10-gcc... /home/leednee/rtems/tools/b-gcc/./gcc/xgcc -B/home/leednee/rtems/tools/b-gcc/./gcc/ -nostdinc -B/home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/newlib/ -isystem /home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/newlib/targ-include -isystem /home/leednee/rtems/tools/gcc-4.5.1/newlib/libc/include -B/opt/rtems-4.10/bfin-rtems4.10/bin/ -B/opt/rtems-4.10/bfin-rtems4.10/lib/ -isystem /opt/rtems-4.10/bfin-rtems4.10/include -isystem /opt/rtems-4.10/bfin-rtems4.10/sys-include <br>
checking for suffix of object files... configure: error: in `/home/leednee/rtems/tools/b-gcc/bfin-rtems4.10/libgcc':<br>configure: error: cannot compute suffix of object files: cannot compile<br>See `config.log' for more details.<br>
make[1]: *** [configure-target-libgcc] Error 1<br>make[1]: Leaving directory `/home/leednee/rtems/tools/b-gcc'<br>make: *** [all] Error 2<br><br>at config.log there were several errors :<br>conftest.c:16: error: 'choke' undeclared (first use in this function)<br>
conftest.c:16: error: (Each undeclared identifier is reported only once<br>conftest.c:16: error: for each function it appears in.)<br>conftest.c:16: error: expected ';' before 'me'<br>conftest.c:10:28: error: ac_nonexistent.h: No such file or directory<br>
conftest.c:55:27: error: libelf/libelf.h: No such file or directory<br>conftest.c:55:25: error: libelf/gelf.h: No such file or directory<br><br>Before running make I installed libelf (apt-file search libelf then install what is searched). I couldn't find anything on ac_nonexistent<br>
After some googling I found the problem mey be the absence of MPFR, GMP and MPC libraries, however I installed them before running make.<br><br>So what should I do?<br>