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] |
Other format: | [Raw text] |
On Mon, 2004-05-31 at 17:57, Dan Kegel wrote: > Bastiaan Bakker wrote: > > I'm trying to build a cross compiler for mipsel on a i386 Fedora Core 2 > > machine. However the compile fails ... when xgcc > > tries invokes the native assembler with mipsel options: > > Did you put the binutils you built on your path? Forgetting > to modify PATH can cause this kind of trouble. > Yes, I did add /opt/crosstools/bin, containing mipsel-linux-as, etc. to PATH. But I do not completely understand why failure to add binutils to PATH would lead to xgcc invoking /usr/bin/as rather than complaining that it cannot find mipsel-linux-as. > > To see what happens I replaced /usr/bin/as with mipsel-linux-as. In that > > case it happily continues the build only to run into trouble later. > > What problem do you run into later? > The output is: /home/bastiaan/crosstool/mipsel-gcc-3.4/gcc/xgcc -B/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc/ -B/opt/crosstools-static/mipsel-linux/bin/ -B/opt/crosstools-static/mipsel-linux/lib/ -isystem /opt/crosstools-static/mipsel-linux/include -isystem /opt/crosstools-static/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include -DL_divdi3 -c ../../gcc-3.4.0/gcc/libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/./_divdi3.o /tmp/ccfSQXj2.s: Assembler messages: /tmp/ccfSQXj2.s:899: Error: operation combines symbols in different segments make[2]: *** [libgcc/./_divdi3.o] Error 1 make[2]: Leaving directory `/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc' make[1]: *** [libgcc.a] Error 2 make[1]: Leaving directory `/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc' make: *** [all-gcc] Error 2 > By the way, I just last night managed to build glibc-2.3.2 for > mipsel with gcc-3.4.0. I'll post the crosstool snapshot that > has the needed fixes later today. > - Dan Great. My actual goal is to have a uClibc based toolchain but knowing how to compile glibc for mipsel would help a lot already I hope. Thanks, Bastiaan Bakker ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |