[U-Boot-Users] Error compiling/linking
Wolfgang Denk
wd at denx.de
Tue Mar 29 09:59:23 CEST 2005
Dear Daniel,
in message <9b7ca65705032817584e803f61 at mail.gmail.com> you wrote:
> I'm trying to compile latest U-boot I downloaded from CVS using the
> cross compiler I made using crosstool, but getting error without any
> print outs that I can work with.
General rule: if you don't get any error messages then try running
the commands by hand onthe command line.
> UNDEF_SYM=`powerpc-linux-objdump -x lib_generic/libgeneric.a
> board/a3000/liba3000.a cpu/mpc824x/libmpc824x.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 fs/ext2/libext2fs.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
> /tmp/u-boot-cvs/board/a3000/u-boot.lds -Ttext 0xFFF00000 -n
> $UNDEF_SYM cpu/mpc824x/start.o \
> --start-group lib_generic/libgeneric.a
> board/a3000/liba3000.a cpu/mpc824x/libmpc824x.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 fs/ext2/libext2fs.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 --end-group -L
> /opt/crosstool/powerpc-linux/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/powerpc-linux/3.2.3/nof
> -lgcc \
> -Map u-boot.map -o u-boot
> make: *** [u-boot] Error 139
> As you can see, no real helpful message here.
> If only there was.. I could have solved it :)
Most probably either the invocation of "powerpc-linux-objdump" or
that of "powerpc-linux-ld" fail with a segmentation violation. Try
running these commands step by step on the command line.
I bet there will be an error message from your shell.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He'd heard her use that sweet, innocent tone of voice before. It
meant that, pretty soon, there was going to be trouble.
- Terry Pratchett, _Truckers_
More information about the U-Boot
mailing list