Subject: Re: cross-compiler
To: Eduardo Horvath <eeh@turbolinux.com>
From: csnet <andrea.franceschini@cs.tin.it>
List: port-sparc64
Date: 08/30/2000 18:14:16
Eduardo Horvath wrote:
> 
> On Wed, 30 Aug 2000, csnet wrote:
> 
> > i tried to set up a cross-compiling environment on my FreeBSD Box,but i
> > got some problems.
> 
> You're probably the first to try this from FreeBSD.
> 
> > 1) gcc-2.95.2
> >
> > It was declared to not fully support sparc64 architecture.!!!
> 
> That's probably true.
> 
> > 2) ld (ctr0.o)
> >
> > After switching target of gcc from sparc64 to sparc i almost
> > successfully compile the compiler ,but  when it tries to build native
> > version of libiberty.a i got the following error:
> 
> You won't be able to execute anything native unless you have a SPARC V9
> machine.  Better configure it for cross compiling.

Sorry but i dont' understand.
Im already trying to compile a cross-compiler!
And i'm not trying to execute,i'm just trying to compile.

> 
> > /disk2/cross-compile//sparc-unknown-netbsd/bin/ld: cannot open crt0.o:
> > No such file or directory
> >
> > I suppose it was looking for a native version of crt0.o
> > But crt0.o is supposed to be compiled within gcc ... or not?
> > Finally , how can i get this file?
> 
> crt0.o is not part of gcc or the toolchain.  It usually needs to be
> provided by the OS or C library.  The NetBSD one is in src/lib/csu/ and
> has both architecture independent and architecture dependent bits.
> 
> Eduardo Horvath