Hi, I have already finished CPU port named RICE. The previous version I did is on gcc 4.0.2. it can be compiled. Now I wanna move it to v4.3.0. I added the config script just as the CRX architechture. But when run the configure,
export TARGET=rice-elf export PREFIX=/usr/local/cross/$TARGET export PATH=$PATH:$PREFIX/bin rm -fr build-gcc mkdir build-gcc cd build-gcc ../rice-gcc-4.3.0/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c --without-headers --with-newlib --with-gnu-as --with-gnu-ld --disable-multilib --disable-libssp make all 2>&1 | tee build.log but the error occurred like the following: checking build system type... i686-pc-linux-gnu checking host system type... rice-mavrix-elf checking for rice-elf-ar... /usr/local/cross/rice-elf/rice-elf/bin/ar checking for rice-elf-lipo... rice-elf-lipo checking for rice-elf-nm... /home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/nm checking for rice-elf-ranlib... /usr/local/cross/rice-elf/rice-elf/bin/ranlib checking for rice-elf-strip... /usr/local/cross/rice-elf/rice-elf/bin/strip checking whether ln -s works... yes checking for rice-elf-gcc... /home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/xgcc -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/ -B/usr/local/cross/rice-elf/rice-elf/bin/ -B/usr/local/cross/rice-elf/rice-elf/lib/ -isystem /usr/local/cross/rice-elf/rice-elf/include -isystem /usr/local/cross/rice-elf/rice-elf/sys-include checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug' make: *** [all] Error 2 I add the script in those files just like the CRX architechture: I check the config.log, here is error: configure:2379: $? = 1 configure:2398: /home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/xgcc -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/ -B/usr/local/cross/rice-elf/rice-elf/bin/ -B/usr/local/cross/rice-elf/rice-elf/lib/ -isystem /usr/local/cross/rice-elf/rice-elf/include -isystem /usr/local/cross/rice-elf/rice-elf/sys-include -o conftest -O2 -g -gdwarf-2 -g3 conftest.c >&5 conftest.c: In function 'main': conftest.c:16: internal compiler error: in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:10984 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2401: $? = 1 configure:2567: checking for suffix of object files configure:2588: /home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/xgcc -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/ -B/usr/local/cross/rice-elf/rice-elf/bin/ -B/usr/local/cross/rice-elf/rice-elf/lib/ -isystem /usr/local/cross/rice-elf/rice-elf/include -isystem /usr/local/cross/rice-elf/rice-elf/sys-include -c -O2 -g -gdwarf-2 -g3 conftest.c >&5 conftest.c: In function 'main': conftest.c:16: internal compiler error: in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:10984 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2591: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2605: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. the config.log file is attached in the mail. Binutils is installed into the computer(Of course it has ported onto RICE). I search the gcc maillist, but I can't find some useful information. Can anybody give me some advice. Thank you very much!
config.log
Description: Binary data