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]

Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1


The build fails while trying to make the subtarget "stmp-f2c.h" in the Fortran
run-time. I had the same problem in building 970929.

Is this a reasonable configuration?  Am I doing something else wrong?  I also
tried specifying LANGUAGES="c c++" to make to avoid building f77, but it
didn't help.

My procedure and results were as follows:

% 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


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