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]

Re: Building 971008 cross m68k-coff on sparc-sun-solaris2.5.1 -- help!



On Wed, 15 Oct 1997, Paul Koning wrote:

>  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.
> ..

I applied Paul's patch and it solves the problem whereby LANGUAGES is not
honoured, at least in this configuration. So if I type make LANGUAGES="c c++"
the build completes sucessfully (by skipping f77 and objc) and the resulting
c compiler seems to work (at least on a quick test, not a proper testsuite).
So I think this patch should be accepted (and thanks, Paul).

However, if you don't skip f77, the build still fails in the same spot. 
It looks as if gcc/f/runtime/configure still believes the compiler does not
work (or invokes it incorrectly) and gives up. Is the f77 runtime actually
supported in m68k-coff configuration? (I don't actually need it).

There is a minor installation bug: it seems --program-prefix is not honoured,
and the compiler is installed as m68k-coff-g++ and so on (I asked for m68k-g++).
Further, gcc is not installed at all.

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]