Canadian-Cross patch not working :(

Mumit Khan khan@xraylith.wisc.edu
Thu Jul 29 19:52:00 GMT 1999


Brendan John Simon <brendan@dgs.monash.edu.au> writes:
> >
> > I fixed this for gcc-2.95 back in April. See:
> >
> >    Linkname: (libobjc) config patch for canadian cross
> >    URL: http://egcs.cygnus.com/ml/gcc-patches/1999-04/msg00925.html
> 
> I saved the above URL as text and tried to apply the patch with "patch -p1 <
> canadian.diff" but I could not get it to work.  I have stripped off the
> headers/trailiers and the contents of canadian.diff is listed below.  I notic
> e
> that the "RCS file" line mentions "libobjc".  This directory does not exist i
> n my
> egcs-1.1.2 source tree.  Is this patch only suitable for the egcs-1.2-dev2 so
> urce
> tree ?  How can I apply these changes to my egcs-1.1.2 source.

The patch was for egcs-1.2 branch, which was later renamed gcc-2.95. I
didn't realize you were working with egcs-1.1.x, sorry. The fix for
egcs-1.1.x is quite trivial actually. Look in gcc/objc/Make-lang.in
and go to: 

  # Platform generated information needed by ObjC runtime
  objc/runtime-info.h: cc1obj$(exeext)
	  echo "" > tmp-runtime
	  echo "/* This file is automatically generated */" >$@
	  ./cc1obj -print-objc-runtime-info tmp-runtime >>$@
	  rm -f tmp-runtime

Now you can add something like the following:

  CC1OBJ = `$(CC) -print-prog-name=cc1obj`
  # Platform generated information needed by ObjC runtime
  objc/runtime-info.h: cc1obj$(exeext)
	  echo "" > tmp-runtime
	  echo "/* This file is automatically generated */" >$@
	  $(CC1OBJ) -print-objc-runtime-info tmp-runtime >>$@
	  rm -f tmp-runtime

Details left as an exercise ;-)

Or, just copy over the runtime-info.h from cross-build directory
to the canadian cross after make aborts and restart.

Regards,
Mumit

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list