public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chris Jones <cjones@sutus.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-boot for MIPS problems compiling...
Date: Mon, 20 Sep 2004 18:34:31 -0700	[thread overview]
Message-ID: <20040921013431.GE32080@qworks.ca> (raw)
In-Reply-To: <20040916232900.96AE9C1430@atlas.denx.de>

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

  reply	other threads:[~2004-09-21  1:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-15 20:30 [U-Boot-Users] U-boot for MIPS problems compiling Chris Jones
2004-09-16  9:37 ` Leif Lindholm
2004-09-16 18:07   ` Chris Jones
2004-09-16 23:28     ` Wolfgang Denk
2004-09-21  1:34       ` Chris Jones [this message]
2004-09-21  5:31         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040921013431.GE32080@qworks.ca \
    --to=cjones@sutus.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox