This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cross build of libgfortran
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: fortran at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 1 Dec 2004 09:00:06 -0800 (PST)
- Subject: Cross build of libgfortran
- Reply-to: sje at cup dot hp dot com
I just tried doing a GCC cross-build that included libgfortran and had
it fail. Some investigation leads me to believe it is due to the fact
that libgfortran/Makefile.am (unlike libffi, libstdc++-v3, etc) does not
define AM_MAKEFLAGS and that the default AM_MAKEFLAGS (if there is one)
does not include a value for CC_FOR_TARGET.
I guess the fix is to define AM_MAKEFLAGS in libgfortran/Makefile.am but
I was wondering how one knows what other values AM_MAKEFLAGS has to
have. Is it a just a question of adding things until it works or is
there a better way to come up with the needed setting for AM_MAKEFLAGS?
Steve Ellcey
sje@cup.hp.com
The tail of my build log has:
gmake[2]: Entering directory `/CLO/Products/OPENSOURCE/cvs/obj_ia_gcc/ia64-hp-hpux11.00/libgfortran'
/bin/sh ./libtool --mode=compile (CC_FOR_TARGET) -DHAVE_CONFIG_H -I. -I/CLO/Products/OPENSOURCE/cvs/gcc/libgfortran -I. -I/CLO/Products/OPENSOURCE/cvs/gcc/libgfortran/io -O2 -g -std=gnu99 (CFLAGS_FOR_TARGET) -c -o environ.lo `test -f 'runtime/environ.c' || echo '/CLO/Products/OPENSOURCE/cvs/gcc/libgfortran/'`runtime/environ.c
/bin/sh: Syntax error at line 1 : `(' is not expected.
gmake[2]: *** [environ.lo] Error 2
gmake[2]: Leaving directory `/CLO/Products/OPENSOURCE/cvs/obj_ia_gcc/ia64-hp-hpux11.00/libgfortran'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/CLO/Products/OPENSOURCE/cvs/obj_ia_gcc/ia64-hp-hpux11.00/libgfortran'