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

See the CrossGCC FAQ for lots more information.


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

RE: help about cross-compiler


Hello,

> ./configure --target=m68k-hp-bsd4.3 --host=sparc-sun-solaris2.6 
> --without-headers --with-newlib --prefix=/home/yliu/local

You forgot to add "--with-gnu-as --with-gnu-ld" as i described in my mail.
This will force GCC to use the GNU assembler from the binutils you just
made.
(be sure those are in your path too)

To test this, make a small assembly file like
test.s :

move.l #12345678,%d0
move.l #12345678,%d1

and then do 'm68k-coff-as test.s' on the commandline.
If it says that it can't find the program, you should add your
'install-binutils' directory.

If this don't work, i'm kinda lost too :)
Jan


-----Original Message-----
From: Liu Yong [mailto:yliu@newavetech.com]
Sent: dinsdag 10 juli 2001 11:27
To: Vermeulen Jan
Subject: RE: help about cross-compiler



Thanks again.

I have read http://crossgcc.billgatliff.com/. 
Yes, it is good.
I have tried again as described there.
install binutils:
./configure --target=m68k-hp-bsd4.3 --prefix=/home/yliu/local
./make
./make install
after do it, I tried to build bootstrap compiler .
./configure --target=m68k-hp-bsd4.3 --host=sparc-sun-solaris2.6 
--without-headers --with-newlib --prefix=/home/yliu/local

But get the same result , make failed.
It looks that it still cann't find the opcodes such as movl , rts ...etc.

maybe I should get some header files and libraries from target machine , 
but I have no target computer . Where can I get them?
So what to do for me?



-----Original Message-----
From: Vermeulen Jan <Jan.Vermeulen@siemens.atea.be>
To: 'Liu Yong' <yliu@newavetech.com>, 'CrossGCC' 
<crossgcc@sources.redhat.com>
Date: Tue, 10 Jul 2001 08:31:45 +0200
Subject: RE: help about cross-compiler

> Hi once again,
> 
> 
> Ah... You said you are running a sun-solaris computer, so why don't you
> try
> to do the following:
> 
> (do not change 'configure' with vi, simply add all the options on the
> command line)
  yes, you are right . it is better than change configure files . :-)
> tar-gunzip the sources into their directories and 'make' them from
> another.
> 
> For your gcc-problems... It might be that your system is trying to use
> it's
> own assembler and not the one from binutils. So it is best that you add
> "--with-gnu-as --with-gnu-ld" to make sure it will use the GNU
> toolchain.
  ok, I will try again.
> 
> It is best that you build a core-gcc first, so you can build those *.a
> files. (libraries)
  en? what do you mean ? can you tell me more specificly?
> 
> (please have a look at http://crossgcc.billgatliff.com/ He didn't make
> it
> just for fun, but it is actually usefull too :)
  yes.
> 
> [prompt$] TARGET_LIBGCC2_CFLAGS=-Dinhibit_libc
> [prompt$] ../gcc-3.0/configure --target=m68k-coff --prefix=<your
> directory>
> --enable-languages=c --with-local-prefix=<your directory>/m68k-coff
> --without-headers --with-newlib --disable-shared --with-gnu-as
> --with-gnu-ld
> [prompt$] make all-gcc install-gcc
> 
> After that, you build newlib.
> Finally, after that, you build your full gcc with the generated
> libraries...
> 
> At http://crossgcc.billgatliff.com/ you can find a script that does all
> those things for you...
> I really suggest you try it, as it will help you a lot.
> 
> Good luck,
> I hope you get it working now :)
  Thanks . :-)
> Jan

   Best Regards.
   Yong Liu
> 
> 
> >Then gcc:
> >cd /my-gcc
> >/my-gcc/vi configure(change the target(m68k-hp-bsd4.3 and prefix
> director 
> >(I am not administor) )
> >/my-gcc/ ./configure
> >/my-gcc/make
> 
> -----Original Message-----
> From: Vermeulen Jan <Jan.Vermeulen@siemens.atea.be>
> To: 'Liu Yong' <yliu@newavetech.com>, 'CrossGCC' 
> <crossgcc@sources.redhat.com>
> Date: Fri, 6 Jul 2001 14:00:43 +0200
> Subject: RE: help about cross-compiler
> 
> > Hello ,
> > 
> > Can you give me your commandlines please?
> > & What versions you use (binutils, gcc, linux-dist, ..)
> > 
> > e.g. for binutils:
> > [/home/jan/source/binbuild/ $] ../binutils-2.10.1/configure
> > --target=m68k-hp-bsd4.3 --host=sun-solaris-2.6
> > 
> > and commands used pre- & post-building your targets.
> > (like creating symlinks, renaming folders somewhere in the
> source-tree,
> > etc)
> > 
> > Best regards,
> > Jan
> > 
> > 
> > -----Original Message-----
> > From: Liu Yong [mailto:yliu@newavetech.com]
> > Sent: vrijdag 6 juli 2001 8:34
> > To: Vermeulen Jan
> > Subject: RE: help about cross-compiler
> > 
> > 
> > 
> > Thanks for your help.
> > But I have changed my .cshrc and added it before I build gcc.
> > I don't know what's wrong .
> > Maybe I should install glibc? I haven't installed it.
> > 
> > Any suggestion is welcomed.
> > 
> > Best Regards.
> > Liu Yong
> > 
> > -----Original Message-----
> > From: Vermeulen Jan <Jan.Vermeulen@siemens.atea.be>
> > To: 'Liu Yong' <yliu@newavetech.com>, crossgcc@sources.redhat.com
> > Date: Fri, 6 Jul 2001 07:58:11 +0200
> > Subject: RE: help about cross-compiler
> > 
> > > >I want to build the cross-compiler (host : sun-solaris-2.6  
> target
> > :
> > > m68k-hp-bsd4.3).
> > > >I have installed the binutils ,but failed building Gcc ,
> > > >I tried sereral times .
> > > >Please help me to find the reason or tell me how to do .
> > > >Thank you very much!
> > > 
> > > <lots of errors>
> > > 
> > > >/var/tmp/ccLd3ZbM.s:75: Error: Unknown opcode: `moveml'
> > > 
> > > I am not certain this will help, but make sure that your
> > > m68k-hp-bsd4.3-*
> > > files are in the path.
> > > Set your path to 
> > > PATH=$PATH:/<where you installed the binutils>
> > > 
> > > Then try again.
> > > 
> > > Greets,
> > > Jan
> > > 
> > > ------
> > > Want more information?  See the CrossGCC FAQ,
> > > http://www.objsw.com/CrossGCC/
> > > Want to unsubscribe? Send a note to
> > > crossgcc-unsubscribe@sourceware.cygnus.com
> > > 
> > 
> 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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