Build failure for powerpc-eabi with default cpu on gcc-20010611 snapshot

claude.boulade@bull.net claude.boulade@bull.net
Tue Jun 12 07:46:00 GMT 2001


Hi,

I'm getting the following build failure when trying to build gcc under cygwin for
the target "powerpc-unknown-eabi" with the parameter "--with-cpu=603e":

================================================================================
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototy
pes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H
    -I. -I. -I/src/gcc-20010611/gcc -I/src/gcc-20010611/gcc/. -I/src/gcc-2001061
1/gcc/config -I/src/gcc-20010611/gcc/../include  \
  -DTARGET_NAME=\"powerpc-eabi\" \
  -c /src/gcc-20010611/gcc/toplev.c
/src/gcc-20010611/gcc/toplev.c: In function `compile_file':
/src/gcc-20010611/gcc/toplev.c:2293: floating constant exponent has no digits
/src/gcc-20010611/gcc/toplev.c:2293: incompatible type for argument 2 of `rs6000
_file_start'
/src/gcc-20010611/gcc/toplev.c: In function `main':
/src/gcc-20010611/gcc/toplev.c:4922: floating constant exponent has no digits
/src/gcc-20010611/gcc/toplev.c:4922: incompatible type for argument 1 of `rs6000
_override_options'
make[1]: *** [toplev.o] Error 1
make[1]: Leaving directory `/tmp/build/snapshot/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/snapshot/gcc'
================================================================================

The problem seems to come from the bad generation of the macro TARGET_CPU_DEFAULT.
    #define TARGET_CPU_DEFAULT (603e)
instead of
    #define TARGET_CPU_DEFAULT ("603e")
in config.h, tm.h and hconfig.h.

I made a work-around by modifying line 23 of the file gcc/mkconfig.sh
    echo "#define TARGET_CPU_DEFAULT ($TARGET_CPU_DEFAULT)"
to
    echo "#define TARGET_CPU_DEFAULT (\"$TARGET_CPU_DEFAULT\")"

It works for my build, but I don't know if some other target is not broken.

Claude




More information about the Gcc-bugs mailing list