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


Title: RE: help about cross-compiler

Sorry, I had a bit of a sleepy head yesterday. :)
And this mail is getting quite lengty...

I am not really sure what your exact problem is at this moment, but i will try to help.
Have you tried to do the following?:
- make a new directory (f.e. "fullgcc")
- from that directory do a
"../gcc-3.0/configure --target=m68k-hp-bsd4.3 --prefix=/home/yliu/local --enable-languages=c,c++ --with-local-prefix=/home/yliu/local/m68k-hp-bsd4.3 --with-gnu-as --with-gnu-ld"

If this doesn't work, i am kind of lost too.
Maybe someone else here at the cross-gcc list would be so kind to offer some assistance.

You might try to make a symbolic link in your /home/yliu/local/m68k-hp-bsd4.3 directory, named include. And which points to the include directory of newlib.

(ln -s <path to newlib-<version>>/newlib/libc/include include)
And then try to build the gcc with the above commandline again.

fingers crossed,
Jan

-----Original Message-----
From: Liu Yong [mailto:yliu@newavetech.com]
Sent: donderdag 12 juli 2001 7:13
To: Vermeulen Jan; 'CrossGCC'
Subject: RE: help about cross-compiler



Hi.
I think I haven't made things clear.
I have succeeded in building core-gcc as you described
in your mail.
And succeeded building newlib.
But failed to build cross-gcc,the last step.
That's what I typed in building cross-gcc:

[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/gcc-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?
I am so near the success.

DANK SE

Best Regards.
Yong Liu




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