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



Hi.
----- Original Message -----
From: Vermeulen Jan <Jan.Vermeulen@siemens.atea.be>
To: 'Liu Yong' <yliu@newavetech.com>; 'CrossGCC'
<crossgcc@sources.redhat.com>
Sent: Tuesday, July 10, 2001 2:31 PM
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)
> 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.
  I think you are right.

>
> It is best that you build a core-gcc first, so you can build those *.a
> files. (libraries)
>
> (please have a look at http://crossgcc.billgatliff.com/ He didn't make it
> just for fun, but it is actually usefull too :)
>
> [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
>
   Yes, I succeed in build it.

> After that, you build newlib.
   Succeed again.

> Finally, after that, you build your full gcc with the generated
libraries...
   Error again.
   The following is the command that I type :
   [prompt$]
 ./configure --target=m68k-hp-bsd4.3 --prefix=/home/yliu/local --with-gnu-as
    --with-gnu-ld
   [prompt$]  make all install

  The error is :

checking whether the C compiler
(/home/yliu/program/forchen/gcc-3.0/gcc/xgcc -B/home/yliu/program/forchen/gc
c-3.0/gcc/ -B/home/yliu/local/m68k-hp-bsd4.3/bin/ -B/home/yliu/local/m68k-hp
-bsd4.3/lib/ -isystem /home/yliu/local/m68k-hp-bsd4.3/include -g -O2 )
works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make: *** [configure-target-libiberty] Error 1

I have looked at the directory /home/yliu/local/m68k-hp-bsd4.3/bin/  ,
/home/yliu/local/m68k-hp-bsd4.3/lib/ and
/home/yliu/local/m68k-hp-bsd4.3/include ,there are files in there:
bin: ar as c++ g++ gcc ld nm ranlib strip
lib: bcc.ld crt0.o idp.ld libgcc.a libdbug.a libidp.a libmvme135.a
libmvme162.a libnosys.a mvme135.ld mvme162.ld
      sbc5204.ld sbc5206.ld and a directory ldscripts that contains
hp300bsd.x hp300bsd.xbn hp300bsd.xn hp300bsd.xr
      hp300bsd.xu
include:  there is no include directory ,just a sys-include directory that
contains a file named COPIED (file length is 3 bytes, just has a word 'no')

So what 's wrong with it?

Best Regards.
Yong Liu

>
> 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 :)
> Jan
>
>
> >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]