This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: canadian cross error


Sorry, I have understood wrongly.
To compile doschk.c, need native sun compiler.
So it should have any problem then to find alloc.h

Dony wrote:
> 
> Kai,
> Yes, you're right. I didn't know which source files generated
> 'Makefile' for 'go32-to-m68k-coff', but what I did, just deleted
> all 'objective-c' in all created 'Makefile'.
> It worked !!! Thank's again.
> Now it comes to the last part ... convert the binaries to. exe's
> and cope with DOS's 8.3 file name restriction.
> I use package dosrel-1.0, downloaded from ftp.cygnus.com.
> Well, this scripts also have bugs !!
> The compiler which is used is not refer to sun-x-i386.
> Created 'Makefile' will have something like this :
> CC = i386-go32-gcc
> ......
> So I just refer the compiler to sun-x-i386, but as it compile
> 'doschk.c', 'alloc.h' is needed. I couldn't find this 'alloc.h'
> in anywhere, not in include from sun-x-i386 or GNU source code.
> Where does this file hide???
> 
> regards,
> --
> Dony
> Email : dony@willowglen.com.sg
> 
> Kai Ruottu wrote:
> >
> > > > > but on the way to build i386-go32 cross m68k-coff, I got such
> > > > > kind of error :
> > > > >
> > > > > make[1]: Entering directory
> > > > > '/home/hardware/dony/gnu/b-i386-go32-x-m68k-coff/gcc'
> > > > > make[1]: *** No rule to make target 'objective-c', needed by 'native'.
> > > > > Stop.
> > > >
> > > >  The GCC build needs to use 'cc1obj' to do something. The 'make-lang' or
> > > > something in the 'objc' subdir, from which the final Makefile is made,
> > > > has a line with './cc1obj <something>', which is wrong...
> >
> >  Ok, the solution was for a wrong problem... but a problem anyway when doing
> > Canadian Cross...
> >
> >  In embedding we don't need the 'objective-c' language at all and the Cygnus
> > patches have removed almost all references to it, but leaved this (a bug). So
> > simply remove the 'objective-c' from the prerequisities of 'native'. There is
> > a line starting with 'native:' in your Makefile and after it a list of things
> > to do earlier, before going to make 'native'. If the 'objective-c' target has
> > been removed, there are no rule how to do it...
> >
> >  I looked my gcc-2.8.1 sources and found that you the 'objective-c' is probably
> > included in the 'LANGUAGES' definition, so it isn't straightly in the 'native:'
> > line.
> >
> > > Do you mean 'Make-lang.in' in the source directory
> > > 'gcc-2.8.1/gcc/objc'??
> >
> >  Yes, just my lousy memory...
> >
> > > I found a line like :
> > > ./cc1obj -print-objc-runtime-info tmp-runtime >>$@
> > >
> > > I have replaced it according to what you said, but the code
> > > didn't generate proper Makefile for 'go32-to-m68k-coff'.
> >
> > > The generated Makefile didn't use 'cc1obj' at all, but 'cc1plus'
> > > and still got the same error.
> >
> >  Ok, the fix wasn't quite useful for this bug...
> >
> >  The 'cc1obj' is the Objective-C compiler, 'cc1plus' the C++ compiler
> > to be made.  The Objective-C isn't needed, and the crossgcc-patches
> > tried to remove all references to it but failed... There are one or
> > more extra 'objective-c' references left to remove...
> >
> >  Cheers,  Kai
> > =========================================================
> > To get command help for the crossgcc list, including help
> > on adding/removing yourself to/from the list, send e-mail
> > to majordomo@cygnus.com with the text 'help' (without the
> > quotes) in the body of the message.
> > =========================================================

-- 
Dony
Email : dony@willowglen.com.sg
=========================================================
To get command help for the crossgcc list, including help
on adding/removing yourself to/from the list, send e-mail
to majordomo@cygnus.com with the text 'help' (without the
quotes) in the body of the message.
=========================================================