From: Daniel Ann <ktdann@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Error compiling/linking
Date: Tue, 29 Mar 2005 20:31:06 +0900 [thread overview]
Message-ID: <9b7ca657050329033133e2f746@mail.gmail.com> (raw)
In-Reply-To: <20050329075928.A9A71C108D@atlas.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 <wd@denx.de> 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
next prev parent reply other threads:[~2005-03-29 11:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-29 1:58 [U-Boot-Users] Error compiling/linking Speed
2005-03-29 7:59 ` Wolfgang Denk
2005-03-29 11:31 ` Daniel Ann [this message]
2005-03-29 13:36 ` Wolfgang Denk
2005-03-31 1:21 ` Debian User
2005-03-31 5:06 ` Daniel Ann
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=9b7ca657050329033133e2f746@mail.gmail.com \
--to=ktdann@gmail.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