This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Errors while building bootstrap GCC for "mipsisa32-elf" target
- From: "Monika Sapra" <monika dot sapra at gmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Cc: "'Mr. RM Nair'" <rm at acmet dot com>
- Date: Mon, 29 May 2006 11:36:52 +0530
- Subject: Errors while building bootstrap GCC for "mipsisa32-elf" target
- Reply-to: <monika dot sapra at gmail dot com>
Hi all,
I am new to this list and GCC compiler. I am trying to build GCC4.1.0 for
"mipsisa32-elf" target. I would appreciate if someone could help me out in
resolving the errors during build process.
The detail is as follows:
OS: Fedora core5
Default GCC compiler installed on system: gcc 4.1.0
The steps followed by me are as follows:
1. Configured binutils version 2.16.1 by using following command and build:
monika@localhost build]$ ../src/configure --target=mipsisa32-elf
--enable-languages=c --prefix=/home/monika/GCC/install
Note: I have installed binutils in GCC's install directory.
2. Configured GCC by using following command:
monika@localhost build]$ ../src/configure --target=mipsisa32-elf
--prefix=/home/monika/GCC/install
3. I got the following error during build process:
cc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o
libgcc/./gthr-gnat.o libgcc/./unwind-c.o
make[3]: mipsisa32-elf-ar: Command not found
make[3]: *** [libgcc.a] Error 127
make[3]: Leaving directory `/home/monika/GCC/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/monika/GCC/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/monika/GCC/build'
make: *** [all] Error 2
It was not able to find AR executable for mipsisa32 while it was build in
install directory. I temporarily solved this error by editing Makefile and
added path of 'AR' executable explicitly.
4. I again got the following error after step 3:
checking for additional debug build... no
checking for extra compiler flags for building...
checking for thread model used by GCC... single
configure: WARNING: No native atomic operations are provided for this
platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
configure: error: No support for this host/target combination.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/home/monika/GCC/build'
make: *** [all] Error 2
5. I also tried to build with option "--enable-languages=c" but I got the
following error:
[monika@localhost build]$ ../src/configure --target=mipsisa32-elf
--enable-languages=c --prefix=/home/monika/GCC/install
../../../src/libssp/ssp.c:161: error: too many arguments to function 'fail'
../../../src/libssp/ssp.c: In function '__chk_fail':
../../../src/libssp/ssp.c:168: warning: incompatible implicit declaration of
built-in function 'strlen'
../../../src/libssp/ssp.c:168: warning: passing argument 2 of 'fail' makes
pointer from integer without a cast
../../../src/libssp/ssp.c:168: error: too many arguments to function 'fail'
make[3]: *** [ssp.lo] Error 1
make[3]: Leaving directory `/home/monika/GCC/build/mipsisa32-elf/libssp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/monika/GCC/build/mipsisa32-elf/libssp'
make[1]: *** [all-target-libssp] Error 2
make[1]: Leaving directory `/home/monika/GCC/build'
make: *** [all] Error 2
6. I also tried with option "--with-newlib" however got following error:
../../../src/libiberty/regex.c: In function 'xregfree':
../../../src/libiberty/regex.c:8121: error: 'regex_t' has no member named
'fastmap_accurate'
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory `/home/monika/GCC/build/mipsisa32-elf/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/home/monika/GCC/build'
make: *** [all] Error 2
[monika@localhost build]$ ../src/configure --target=mipsisa32-elf
--with-newlib --prefix=/home/monika/GCC/install
Thanks in advance,
Monika