This is the mail archive of the
mailing list for the crossgcc project.
- To: firstname.lastname@example.org
- Subject: Re: Linux->Cygwin->PowerPC.
- From: "Kai Ruottu" <email@example.com>
- Date: Mon, 26 Jul 1999 22:03:39 +0000
- CC: firstname.lastname@example.org
- Organization: Freenet Finland
- Reply-To: email@example.com
Brendan Simon wrote:
> I'm still not sure why the XXX_FOR_BUILD, YYY_FOR_HOST and ZZZ_FOR_TARGET
> variables are necessary (are they NECESSARY ?). I'm sure that configure would
> would have sorted all that out.
They are necessary only if one's toolnames (like mine)don't follow the
default '<target>-tool' naming convention, like 'powerpc-eabi-gcc'. Unix users
prefer? shorter names like 'ppc-gcc' or 'gcc-ppc'... It's either using
those long names day after day, or renaming/symlinking them to shorter ones...
> It barfed some way down the track with the following error.
> echo "/* This file is automatically generated */" >objc/runtime-info.h
> ./cc1obj -print-objc-runtime-info tmp-runtime >>objc/runtime-info.h
> /bin/sh: ./cc1obj: No such file or directory
> It seems that cc1obj can not be found. On closer inspection, the file created
> is ./cc1obj.exe and the Makefile is trying to execute ./cc1obj. Is this a bug
> in the configure script or Makefile ?
Let's hope this bug has been corrected in gcc-2.95...
Anyway my fix would be that the input Objective-C part for Makefile would
have a definition for 'OBJC_FOR_TARGET' somewhere in the beginning:
OBJC_FOR_TARGET = `$(GCC_FOR_TARGET) -print-prog-name=cc1obj`
This runs the value of 'GCC_FOR_TARGET' with the given option and gets the
right pathname for the 'cc1obj' for the target. The file to edit is
'gcc/objc/Make_lang.in' or something...
Furthermore the offending line in 'gcc/Makefile.in' the './cc1obj' should
be edited to be '$(OBJC_FOR_TARGET)'...
This is how I have fixed the './cc1obj'-bug in my egcs-1.1.2 sources... but
haven't officially reported it as a bug to 'firstname.lastname@example.org'...
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
To remove yourself from the crossgcc list, send
mail to email@example.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.