This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Error building H8/300 cross compiler


Iīm trying to build a crosscompiler for H8/300 on Linux with:

../configure --prefix=/usr --target=h8300-hms
--with-newlib                                                                   
make cross

It always fails configuring libf2c with the following output:

Configuring in h8300-hms/libf2c
loading site script /dev/null
creating cache ./config.cache
checking for gcc... /usr/src/gnu/egcs-980302/h8300-hms/gcc/xgcc  
-B/usr/src/gnu/egcs-980302/h8300-hms/gcc/
checking whether the C compiler
(/usr/src/gnu/egcs-980302/h8300-hms/gcc/xgcc
-B/usr/src/gnu/egcs-980302/h8300-hms/gcc/ -g -O2 ) works... yes
checking whether the C compiler
(/usr/src/gnu/egcs-980302/h8300-hms/gcc/xgcc
-B/usr/src/gnu/egcs-980302/h8300-hms/gcc/ -g -O2 ) is a
cross-compiler... yes
checking whether we are using GNU C... yes
checking whether /usr/src/gnu/egcs-980302/h8300-hms/gcc/xgcc
-B/usr/src/gnu/egcs-980302/h8300-hms/gcc/ accepts -g... yes
checking how to run the C preprocessor...
/usr/src/gnu/egcs-980302/h8300-hms/gcc/xgcc
-B/usr/src/gnu/egcs-980302/h8300-hms/gcc/ -E
checking for stdio.h... yes
checking for ANSI C header files... yes
checking for posix... no
checking for GNU library... no
checking for cyg`win'32... no
checking for mingw32... no
checking for fcntl.h... yes
checking for working const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for fstat... yes
checking need for NON_UNIX_STDIO... no
checking for necessary members of struct FILE... no
checking for drem in -lm... yes
checking for ansi/posix sprintf result... (cached) no
checking NON_ANSI_RW_MODES... no
checking f2c integer type... long int
checking f2c long int type... 
configure: error: Can't determine type for f2c long int; config.log may
help.
make[2]: *** [configure-target-libf2c] Error 1
make[2]: Leaving directory `/usr/src/gnu/egcs-980302/h8300-hms'
make[1]: *** [cross] Error 2
make[1]: Leaving directory `/usr/src/gnu/egcs-980302/h8300-hms'
make: *** [egcs-h8] Error 2

This happens at least with egcs-980302 and egcs-980308. It worked with
an older
snapshot (I canīt remember which one).

Another question: Is it possible to compile the crosscompiler with
specific 
optimization flags? make BOOT_CFLAGS=... does not work.

Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]