This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1 -- help!
- To: egcs at cygnus dot com
- Subject: Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1 -- help!
- From: Robin Kirkham <Robin dot Kirkham at mlb dot dmt dot csiro dot au>
- Date: Wed, 15 Oct 1997 15:47:36 +1000
Would someone knowledgeable about the egcs cross-build procedure please have a
quick look at this---I can't even work out which bit of the makefile is going
wrong.
The build fails while trying to make the subtarget "stmp-f2c.h" in the Fortran
run-time. It seems to have decided that the xgcc it made does not work, yet it
seemed to build the libgcc libraries OK. I had the same error in building
egcs-970929.
Is this a reasonable configuration? Am I doing something else wrong? I also
tried specifying LANGUAGES="c c++" to make (with a fresh distribution) to avoid
building f77, but it seemed to make no difference.
My procedure and results were as follows (the "case 'c proto gcov c++ f77 objc'
in" line looks a bit strange to me):
% gtar xfz egcs-971008.tar.gz
% cd egcs-971008
% ./configure --target=m68k-coff --with-gnu-as --with-gnu-ld --prefix=/opt/embedded --program-prefix=m68k- -verbose
Configuring for a sparc-sun-solaris2.5.1 host.
... much deleted
% make
... much deleted (builds libgcc ok, apparently)
...
gcc -c -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -DHAVE_CONFIG_H -I. -I. -I./config ./cp/g++spec.c
gcc -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -DHAVE_CONFIG_H -o g++ g++.o g++spec.o version.o \
choose-temp.o pexecute.o obstack.o ` case "gcc" in "cc") echo "alloca.o" ;; esac `
rm -f g++-cross
cp g++ g++-cross
rm -f cxxmain.c
ln -s ./cplus-dem.c cxxmain.c
gcc -c -DMAIN -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -DHAVE_CONFIG_H -I. -I. -I./config \
-DVERSION=\"egcs-2.90.12\" cxxmain.c
rm -f cxxmain.c
gcc -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -DHAVE_CONFIG_H obstack.o ` case "gcc" in "cc") echo "alloca.o" ;; esac ` -o c++filt \
cxxmain.o underscore.o getopt.o getopt1.o
case 'c proto gcov c++ f77 objc' in \
*f77*) \
gcc -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 -DHAVE_CONFIG_H -I. -I. -I./config \
-DGCC_NAME=\"`t='-e s,^,m68k-coff-,'; echo gcc | sed $t`\" \
-o g77-cross ./f/g77.c ./f/version.c obstack.o ` case "gcc" in "cc") echo "alloca.o" ;; esac ` ;; \
esac
rm -f stmp-f2c.h
top=`pwd`; \
src=`cd .; pwd`; \
cd f/runtime; \
CC="`case '/opt/embedded/src/egcs-971008/gcc/xgcc -B/opt/embedded/src/egcs-971008/gcc/' in \
'./xgcc -B./') echo ${top}/xgcc -B${top}/;; \
*) echo '/opt/embedded/src/egcs-971008/gcc/xgcc -B/opt/embedded/src/egcs-971008/gcc/';; esac`" \
G_SITE=/dev/null /bin/sh \
${src}/f/runtime/configure --srcdir=${src}/f/runtime
loading site script /dev/null
creating cache ./config.cache
checking for gcc... /opt/embedded/src/egcs-971008/gcc/xgcc -B/opt/embedded/src/egcs-971008/gcc/
checking whether the C compiler (/opt/embedded/src/egcs-971008/gcc/xgcc -B/opt/embedded/src/egcs-971008/gcc/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
gmake[1]: *** [stmp-f2c.h] Error 1
gmake[1]: Leaving directory `/opt/embedded/src/egcs-971008/gcc'
gmake: *** [all-gcc] Error 2
Thanks,
Robin Kirkham CSIRO Manufacturing Science and Technology
Project Engineer Locked Bag 9, Preston 3072, Australia
robin.kirkham@mlb.dmt.csiro.au Phone: +61 3 9662-7756 Fax: +61 3 9662-7851