problem of building fortran for e500v2

Liu Yu-B13201 B13201 at freescale.com
Tue Oct 16 03:50:51 UTC 2007


Hi all,

When I build CS-released gcc-4.1-78 natively, with language fortran on,
it will ultimately fail. It seems like some definitions missing? Does
anyone know how to handle this?

My configure options is:
../gcc-4.1/configure  -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang \
 --prefix=/usr --enable-shared --with-system-zlib \
 --libexecdir=/usr/lib --without-included-gettext \
 --enable-threads=posix --enable-nls --program-suffix=-4.1 \
 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug \
 --enable-mpfr --disable-softfloat --enable-targets=powerpc-linux \
 --enable-checking=release \
 --disable-multilib --with-cpu=8548  --enable-e500_double \
  powerpc-linux-gnuspe

And the error message is listed below:
---
gcc -c   -g -mcpu=8548 -mspe=yes -mabi=spe -mfloat-gprs=double
-mno-strict-align -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute
-DHAVE_CONFIG_H -I. -Ifortran -I../../gcc-4.1/gcc
-I../../gcc-4.1/gcc/fortran -I../../gcc-4.1/gcc/../include
-I../../gcc-4.1/gcc/../libcpp/include
../../gcc-4.1/gcc/fortran/f95-lang.c -o fortran/f95-lang.o
../../gcc-4.1/gcc/fortran/f95-lang.c: In function
'gfc_init_builtin_functions':
../../gcc-4.1/gcc/fortran/f95-lang.c:913: error: 'builtin_types'
undeclared (first use in this function)
../../gcc-4.1/gcc/fortran/f95-lang.c:913: error: (Each undeclared
identifier isreported only once
../../gcc-4.1/gcc/fortran/f95-lang.c:913: error: for each function it
appears in.)
../../gcc-4.1/gcc/fortran/f95-lang.c:913: error: 'BT_FN_PTR_PTR'
undeclared (first use in this function)
../../gcc-4.1/gcc/fortran/f95-lang.c:916: error:
'BT_FN_VOID_PTR_WORD_WORD_PTR'
undeclared (first use in this function)
make[2]: *** [fortran/f95-lang.o] Error 1
make[2]: Leaving directory `/source/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/source/gcc-build'
make: *** [all] Error 2


Best Regards.
 
Yu



More information about the power-gnu-discuss mailing list