Linux MIPS Architecture development
 help / color / mirror / Atom feed
* CVS GCC Problem
@ 2000-10-14 11:58 Ian Chilton
  2000-10-14 12:45 ` Ralf Baechle
  2000-10-14 19:18 ` Guido Guenther
  0 siblings, 2 replies; 6+ messages in thread
From: Ian Chilton @ 2000-10-14 11:58 UTC (permalink / raw)
  To: linux-mips; +Cc: wesolows

Hello,

I guess it's not my weekend  :(

I am trying to satup a cross compile environment on my x86 linux box (gcc 2.95.2
, glibc 2.1.3, binutils 2.10, linux-2.2.17)

I am building current CVS binutils and GCC of today with patches that Keith Weso
lowski sent me.                                                                

I have tried this 2 or 3 times, and get the same problem every time,..

mkdir /crossdev
mkdir /crossdev-build
mkdir /crossdev-build/gcc-build
mkdir /crossdev-build/binutils-build

cd /crossdev-build

cp -ax ~/cvs/linux-mips/src binutils
cp -ax  ~/cvs/linux-mips/gcc .

cd binutils
patch -p1 < /export/mips/patches/binutils-1009.diff 

cd ../gcc
patch -p0 < /export/mips/patches/gcc-000922.diff

cd ../binutils-build
../binutils/configure --prefix=/crossdev --target=mips-linux && make && make install

export PATH=$PATH:/crossdev/bin

cd ../gcc-build
AR=mips-linux-ar RANLIB=mips-linux-ranlib ../gcc/configure --prefix=/crossdev --target=mips-linux --with-newlib && make -C libiberty LANGUAGES=c && make -C gcc LANGUAGES=c

..This is where it goes wrong  :(

./xgcc -B./ -B/crossdev/mips-linux/bin/ -isystem /crossdev/mips-linux/include -O2  -DCROSS_COMPILE -DIN_GCC    `echo -g -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long|sed -e s/-pedantic//g -e s/-Wtraditional//g` -isystem ./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.0 -Wl,--version-script=libgcc.map -o libgcc_s.so   libgcc/./_muldi3.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./__gcc_bcmp.o libgcc/./_varargs.o libgcc/./__dummy.o libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./_shtab.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_ctors.o libgcc/./_eh.o libgcc/./frame-dwarf2.o -lc
/crossdev/mips-linux/bin/ld: cannot open crti.o: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [libgcc_s.so] Error 1
make[1]: Leaving directory `/crossdev-build/gcc-build/gcc'
make: *** [libgcc.a] Error 2
make: Leaving directory `/crossdev-build/gcc-build/gcc'


Any ideas?


Thanks!


Bye for Now,

Ian


                     \|||/ 
                     (o o)
 /----------------ooO-(_)-Ooo----------------\
 |  Ian Chilton                              |
 |  E-Mail : ian@ichilton.co.uk              |
 \-------------------------------------------/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CVS GCC Problem
  2000-10-14 11:58 CVS GCC Problem Ian Chilton
@ 2000-10-14 12:45 ` Ralf Baechle
  2000-10-14 19:18 ` Guido Guenther
  1 sibling, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2000-10-14 12:45 UTC (permalink / raw)
  To: ian; +Cc: linux-mips, wesolows

On Sat, Oct 14, 2000 at 12:58:55PM +0100, Ian Chilton wrote:

> I guess it's not my weekend  :(

#include <std-answer.h>

http://oss.sgi.com/mips/mips-howto.html, see the x-compiler section.

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CVS GCC Problem
  2000-10-14 11:58 CVS GCC Problem Ian Chilton
  2000-10-14 12:45 ` Ralf Baechle
@ 2000-10-14 19:18 ` Guido Guenther
  2000-10-16  1:00   ` Ralf Baechle
  1 sibling, 1 reply; 6+ messages in thread
From: Guido Guenther @ 2000-10-14 19:18 UTC (permalink / raw)
  To: ian; +Cc: linux-mips

On Sat, Oct 14, 2000 at 12:58:55PM +0100, Ian Chilton wrote:
> /crossdev/mips-linux/bin/ld: cannot open crti.o: No such file or directory
I see the same thing here. gcc from cvs 000925 seems to be o.k. 
Regards,
 -- Guido

-- 
GPG-Public Key: finger agx@debian.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CVS GCC Problem
  2000-10-14 19:18 ` Guido Guenther
@ 2000-10-16  1:00   ` Ralf Baechle
  2000-10-19 11:28     ` Guido Guenther
  0 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2000-10-16  1:00 UTC (permalink / raw)
  To: Guido Guenther; +Cc: ian, linux-mips

On Sat, Oct 14, 2000 at 09:18:50PM +0200, Guido Guenther wrote:

> On Sat, Oct 14, 2000 at 12:58:55PM +0100, Ian Chilton wrote:
> > /crossdev/mips-linux/bin/ld: cannot open crti.o: No such file or directory
> I see the same thing here. gcc from cvs 000925 seems to be o.k. 

The file crti.o should be in /crossdev/mips-linux/lib/crti.o.  Is it actually
there?  Can you checkout where the x-compiler is actually searching
for those files?

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CVS GCC Problem
  2000-10-16  1:00   ` Ralf Baechle
@ 2000-10-19 11:28     ` Guido Guenther
  2000-10-19 11:39       ` Keith Owens
  0 siblings, 1 reply; 6+ messages in thread
From: Guido Guenther @ 2000-10-19 11:28 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Guido Guenther, ian, linux-mips

On Mon, Oct 16, 2000 at 03:00:53AM +0200, Ralf Baechle wrote:
> On Sat, Oct 14, 2000 at 09:18:50PM +0200, Guido Guenther wrote:
> 
> > On Sat, Oct 14, 2000 at 12:58:55PM +0100, Ian Chilton wrote:
> > > /crossdev/mips-linux/bin/ld: cannot open crti.o: No such file or directory
> > I see the same thing here. gcc from cvs 000925 seems to be o.k. 
> 
> The file crti.o should be in /crossdev/mips-linux/lib/crti.o.  Is it actually
> there?  Can you checkout where the x-compiler is actually searching
> for those files?
It's not there, it seems like binutils(cvs 001013 + rel32 patch) 
don't build/install it. xgcc searches in:

.../crossdev/src/gcc/egcs-001018/build/gcc/ 
.../crossdev/src/gcc/egcs-001018/build/mips-linux/newlib/ 
.../crossdev/src/gcc/egcs-001018/build/mips-linux/newlib/targ-include 
.../crossdev/src/gcc/egcs-001018/newlib/libc/include 
.../crossdev/mips-linux-2.2/mips-linux/bin/ 
.../crossdev/mips-linux-2.2/mips-linux/lib/ 
.../crossdev/mips-linux-2.2/mips-linux/include 

Regards,
 -- Guido

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CVS GCC Problem
  2000-10-19 11:28     ` Guido Guenther
@ 2000-10-19 11:39       ` Keith Owens
  0 siblings, 0 replies; 6+ messages in thread
From: Keith Owens @ 2000-10-19 11:39 UTC (permalink / raw)
  To: Guido Guenther; +Cc: Ralf Baechle, ian, linux-mips

On Thu, 19 Oct 2000 13:28:45 +0200, 
Guido Guenther <guido.guenther@gmx.net> wrote:
>On Mon, Oct 16, 2000 at 03:00:53AM +0200, Ralf Baechle wrote:
>> On Sat, Oct 14, 2000 at 09:18:50PM +0200, Guido Guenther wrote:
>> 
>> > On Sat, Oct 14, 2000 at 12:58:55PM +0100, Ian Chilton wrote:
>> > > /crossdev/mips-linux/bin/ld: cannot open crti.o: No such file or directory
>> > I see the same thing here. gcc from cvs 000925 seems to be o.k. 
>> 
>> The file crti.o should be in /crossdev/mips-linux/lib/crti.o.  Is it actually
>> there?  Can you checkout where the x-compiler is actually searching
>> for those files?
>It's not there, it seems like binutils(cvs 001013 + rel32 patch) 
>don't build/install it. xgcc searches in:

Data point.  Same problem (no crti.o) with bleeding edge gcc and
binutils, cross compile ix86 to ia64, using a home grown cross compile
script.  Configuring gcc with --disable-shared avoids the problem, at
the expense of not building a shared libgcc.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-10-19 11:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-14 11:58 CVS GCC Problem Ian Chilton
2000-10-14 12:45 ` Ralf Baechle
2000-10-14 19:18 ` Guido Guenther
2000-10-16  1:00   ` Ralf Baechle
2000-10-19 11:28     ` Guido Guenther
2000-10-19 11:39       ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox