target/6075: crossgcc use wrong as when build
Wed Mar 27 19:04:00 GMT 2002

>Number:         6075
>Category:       target
>Synopsis:       cross gcc use wrong as when build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 27 17:26:00 PST 2002
>Originator:     Andrzej Dopiera³a
>Release:        3.0.4
Adam Mickiewicz University
System: Linux uc 2.4.17 #1 Tue Jan 22 12:26:51 UTC 2002 i686 pld
Architecture: i686

host: i686-pld-linux-gnu
build: i686-pld-linux-gnu
target: mipsel-pld-linux-gnu
configured with: ./configure --target=mipsel-pld-linux
I try to use crosscompiler for mips. I compiled binutils( with
target= mipsel-pld-linux-gnu. Next i try compile gcc. But it use as from
system binutils, not crosscompiled when compile crtbegin.o. Effect is:

-B/home/undefine/rpm/SOURCES/gcc-3.0.4/gcc/ -B/usr/local/mipsel-pld-linux/bin/
-B/usr/local/mipsel-pld-linux/lib/ -isystem /usr/local/mipsel-pld-linux/include
-DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -I. -I. -I. -I./. -I./config
-I./../include  -g0 \
  -finhibit-size-directive -fno-inline-functions \
  -fno-exceptions  -Dinhibit_libc \
  -c ./crtstuff.c -DCRT_BEGIN -o crtbegin.o
as: nieznana opcja `-EL'
make[1]: *** [crtbegin.o] B³±d 1
make[1]: Opuszczam katalog `/home/undefine/rpm/SOURCES/gcc-3.0.4/gcc'
make: *** [all-gcc] B³±d 2

(-EL is on mipsel, not on i686)

try compile binutils with 
--target=mipsel-pld-linux-gnu --prefix=/usr --disable-shared

and next compile gcc with

	none known :(


More information about the Gcc-bugs mailing list