From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karim Yaghmour Date: Mon, 31 May 2004 00:23:01 -0400 Subject: [U-Boot-Users] Problems with binutils 2.15 Message-ID: <40BAB325.1050603@opersys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I've been playing around trying to get U-Boot 1.1.1 (and previous versions) to build with the following toolchain: - binutils 2.15 - gcc 3.3.2 - glibc 2.3.2 This toolchain was built for a PPC target with no particular CPU flags or CPU patches. Here's what I'm doing: $ cd u-boot-1.1.1 $ make TQM860L_config $ make CROSS_COMPILE=powerpc-linux- Now, this starts to build and goes far enough, but somehow LD actually seg faults somewhere down the line. I've copied the command line that fails in Make directly to the command line and I get this (the output is somewhat edited for the form, but it's all there): ---------------------------------------------------------------------- $ UNDEF_SYM=`powerpc-linux-objdump -x lib_generic/libgeneric.a board/tqm8xx/libtqm8xx.a cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.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`;\ > powerpc-linux-ld -Bstatic -T /home/.../u-boot-1.1.1/board/tqm8xx/u-boot.lds -Ttext 0x40000000 -n $UNDEF_SYM cpu/mpc8xx/start.o \ > --start-group lib_generic/libgeneric.a board/tqm8xx/libtqm8xx.a cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.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 /home/.../tools/lib/gcc-lib/powerpc-linux/3.3.2/nof -lgcc --end-group \ > -Map u-boot.map -o u-boot Segmentation fault ---------------------------------------------------------------------- If run from the makefile, this would come right after: ---------------------------------------------------------------------- ... a - usb_kbd.o a - usb_storage.o a - virtex2.o a - xilinx.o a - circbuf.o make[1]: Leaving directory `/home/.../u-boot-1.1.1/common' ---------------------------------------------------------------------- I've tried 0.4.0 and 1.0.0 and get very similar behavior. Anyone see this before? Karim -- Author, Speaker, Developer, Consultant Pushing Embedded and Real-Time Linux Systems Beyond the Limits http://www.opersys.com || karim at opersys.com || 1-866-677-4546