From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Ann Date: Tue, 29 Mar 2005 20:31:06 +0900 Subject: [U-Boot-Users] Error compiling/linking In-Reply-To: <20050329075928.A9A71C108D@atlas.denx.de> References: <9b7ca65705032817584e803f61@mail.gmail.com> <20050329075928.A9A71C108D@atlas.denx.de> Message-ID: <9b7ca657050329033133e2f746@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Gotcha. I've done exactly what you said, and finally got it compiled. But the way I've done it, is not really comforting if you know what I mean. After trying the compilation from the command line, I've found out the powerpc-linux-objdump was okay. But had segmentation fault during powerpc-linux-ld. So, doing rather simple trial and error method, I've got it compiled after removing line which reads "-Map u-boot.map". So, here is my concern, what exactly have I removed ? I've got a feeling I'm running around blind folded, so any tips and hints on this would be much appreciated. Also, if that line is causing the compilation error, where do you think I should start looking ? Thanks heaps. On Tue, 29 Mar 2005 09:59:23 +0200, Wolfgang Denk wrote: > Dear Daniel, > > in message <9b7ca65705032817584e803f61@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_ > -- Daniel