This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1 -- help!
- To: Robin dot Kirkham at mlb dot dmt dot csiro dot au
- Subject: Re: Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1 -- help!
- From: Paul Koning <pkoning at xedia dot com>
- Date: Wed, 15 Oct 1997 09:22:57 -0400
- Cc: egcs at cygnus dot com
- References: <19971015054737.24914.qmail@ragnarok.mlb.dmt.csiro.au>
>>>>> "Robin" == Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au> writes:
Robin> Would someone knowledgeable about the egcs cross-build
Robin> procedure please have a quick look at this---I can't even work
Robin> out which bit of the makefile is going wrong.
Robin> The build fails while trying to make the subtarget
Robin> "stmp-f2c.h" in the Fortran run-time. It seems to have decided
Robin> that the xgcc it made does not work, yet it seemed to build
Robin> the libgcc libraries OK. I had the same error in building
Robin> egcs-970929.
Robin> Is this a reasonable configuration? Am I doing something else
Robin> wrong? I also tried specifying LANGUAGES="c c++" to make
Robin> (with a fresh distribution) to avoid building f77, but it
Robin> seemed to make no difference.
>...
I ran into this some time ago and proposed a patch (that was for the
0922 snapshot, but the relevant file is the same in the current
snapshot). Give it a try... This is to gcc/f/Make-lang.in.
paul
--- Make-lang.in.orig Thu Sep 18 18:06:05 1997
+++ Make-lang.in Mon Sep 29 12:23:05 1997
@@ -278,22 +278,26 @@
$(GCC_PARTS)
# The make "stage?" in compiler spec. is fully qualified as above
rm -f stmp-f2c.h
- top=`pwd`; \
+ case "$(LANGUAGES)" in \
+ *f77*) top=`pwd`; \
src=`cd $(srcdir); pwd`; \
cd f/runtime; \
CC="`case '$(GCC_FOR_TARGET)' in \
'./xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
*) echo '$(GCC_FOR_TARGET)';; esac`" \
$(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
- $${src}/f/runtime/configure --srcdir=$${src}/f/runtime
- top=`pwd`; \
+ $${src}/f/runtime/configure --srcdir=$${src}/f/runtime ;; \
+ esac
+ case "$(LANGUAGES)" in \
+ *f77*) top=`pwd`; \
src=`cd $(srcdir); pwd`; \
cd f/runtime/libU77; \
CC="`case '$(GCC_FOR_TARGET)' in \
'./xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
*) echo '$(GCC_FOR_TARGET)';; esac`" \
$(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
- $${src}/f/runtime/libU77/configure --srcdir=$${src}/f/runtime/libU77
+ $${src}/f/runtime/libU77/configure --srcdir=$${src}/f/runtime/libU77 ;; \
+ esac
touch stmp-f2c.h
# Support parallel build.