[U-Boot-Users] U-boot for MIPS problems compiling...

Chris Jones cjones at sutus.com
Tue Sep 21 03:34:31 CEST 2004


Wolfgang;

On Fri, Sep 17, 2004 at 01:28:55AM +0200, Wolfgang Denk wrote:
> The current version (3.0) of the ELDK does not support  little-endian
> MIPS  systems;  the  next  version  (3.1,  to  be released soon) will
> support it. It's based on GCC-3.3.3,  glibc  2.3.1-51a  and  binutils
> 2.14.  I  have no problems compiling MIPS code with it (compile-clean
> for all U-Boot boards, actyually  tested  for  MIPS  on  INCA-IP  and
> XXS1500).

That's great. Hoping I'll be able to use your patches against what I
have so I can keep just one cross-compiler for kernel/u-boot building.

Leif: I've had some much better success switching to this toolchain:

gcc-3.2.3-glibc-2.2.3-binutils-2.13

However, now I'm getting the following error when building. I know it looks 
long and NASTY, but it basically amounts to an undefined reference. 
I was hoping you might know the solution.
 
Also, Yes, I know ld segfaults which is very bad and probably indicates a 
broken toolchain...sigh...I hope I don't get spanked for that! The undefined 
reference does come before the segfault though.

make[1]: Leaving directory `/home/cjones/dev/boot/u-boot-1.1.1/common'
UNDEF_SYM=`mipsel-unknown-linux-gnu-objdump -x lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        mipsel-unknown-linux-gnu-ld -Bstatic -T /home/cjones/dev/boot/u-boot-1.1.1/board/dbau1x00/u-boot.lds -Ttext 0xbfc00000  $UNDEF_SYM cpu/mips/start.o \
                --start-group lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --no-warn-mismatch -L /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/lib/gcc-lib/mipsel-unknown-linux-gnu/3.2.3 -lgcc --end-group \
                -Map u-boot.map -o u-boot
cpu/mips/start.o: In function `reset':
cpu/mips/start.o(.text+0x460): undefined reference to `_GLOBAL_OFFSET_TABLE_'
/bin/sh: line 1:  4411 Segmentation fault      mipsel-unknown-linux-gnu-ld -Bstatic -T /home/cjones/dev/boot/u-boot-1.1.1/board/dbau1x00/u-boot.lds -Ttext 0xbfc00000 $UNDEF_SYM cpu/mips/start.o --start-group lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --no-warn-mismatch -L /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/lib/gcc-lib/mipsel-unknown-linux-gnu/3.2.3 -lgcc --end-group -Map u-boot.map -o u-boot
make: *** [u-boot] Error 139

Cheers,

-=cj

-- 
                  Chris Jones | Software Developer | Sutus, Inc.
                 t: +1.604.987.8866 x 2204 | e: cjones at sutus.com




More information about the U-Boot mailing list