From: Wolfgang Denk <wd@denx.de>
To: dony <dony.he@huawei.com.cn>
Cc: Wolfgang Denk <wd@denx.de>,
Brendan.Simon@ctam.com.au, Grant Carter <gcarter@eng.uct.ac.za>,
linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Cross-compile dynamic apps for mpc860 on ix86
Date: Mon, 24 Jan 2000 09:02:13 +0100 [thread overview]
Message-ID: <200001240802.JAA26827@denx.local.net> (raw)
In-Reply-To: Your message of "Mon, 24 Jan 2000 14:16:03 +0800." <388BEE23.A42DFCB5@huawei.com.cn>
Dony,
you did not get my point:
In message <388BEE23.A42DFCB5@huawei.com.cn> you write:
>
> > > Yes. I have successfully built glibc-2.1.1 and glibc-2.1.2 with egcs-1.1.2 and binutils-2.9.1.0.19a.
> > > I have copied all the shared libraries to my nfs root filesystem under /lib. I still get segmentation faults when I try to
> > > run the dynamic application. Arghh !!! This is so annoying.
> >
> > Make sure you use ONLY files compiled in your new environment, not
> > ANY files that might exist from older versions in your NFS tree.
> >
> > Make sure the shell you are running is statically linked!
>
> Not needed. Both my shell (sash) and my test app can run dynamically.
Then what do you complain about segmentation faults when running
dynamically linked applications???
> > The easiest way to test this is to copy all relevant files to a new
> > place (say, /test/bin and /test/lib) and then test with "chroot /test".
>
> In a cross-compile environment, It is impossible to do so. i.e., You can not run any apps for Powerpc on X86 box.
I did not say you should try. Sorry, I thought at least *this* was
obvious.
Ok, once more in detail:
1. Get your PPC target running with the root filesystem mounted over
NFS with a known set of working tools (shell, libraries, ...). For
instance, you can start with the files from the `mbxroot.full.tgz'
tarball.
2. Put all your new binaries and libraries in a separate directory
tree.
3. Run a statically linked shell on your PPC target. You may also
want to have some more statically linked tools available.
4. Do a "chroot" to your separate directory tree with the binaries
and libraries you want to test. Try to execute some dynamically
linked binaries.
5. Fix the problems.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
I have the simplest tastes. I am always satisfied with the best.
-- Oscar Wilde
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next parent reply other threads:[~2000-01-24 8:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <388BEE23.A42DFCB5@huawei.com.cn>
2000-01-24 8:02 ` Wolfgang Denk [this message]
2000-01-25 0:02 ` Cross-compile dynamic apps for mpc860 on ix86 Brendan John Simon
1999-12-31 2:29 Please help me dony
1999-12-30 4:23 ` Brendan J Simon
[not found] ` <38704D0B.94438516@huawei.com.cn>
1999-12-30 6:46 ` Brendan J Simon
2000-01-03 11:48 ` Cannot booting the kernel dony
2000-01-04 0:46 ` Brendan J Simon
[not found] ` <38715DAE.B6CBC772@huawei.com.cn>
[not found] ` <3871572F.FA4E7842@ctam.com.au>
[not found] ` <38717C52.ECF1AFFD@huawei.com.cn>
[not found] ` <3871953B.345DDA23@ctam.com.au>
[not found] ` <38754F28.B6B4CE70@huawei.com.cn>
[not found] ` <38754419.20D95C5A@ctam.com.au>
[not found] ` <3876A6E5.3488738B@huawei.com.cn>
[not found] ` <3876C6FD.794BD1BF@ctam.com.au>
[not found] ` <387A87DF.4ED23CA6@huawei.com.cn>
[not found] ` <387A81F3.702B29A2@ctam.com.au>
[not found] ` <387C4D8D.9C058F1C@huawei.com.cn>
[not found] ` <387D3212.A4E9904F@ctam.com.au>
[not found] ` <387DAFAF.DB0096C7@huawei.com.cn>
[not found] ` <387E460F.B007CE56@ctam.com.au>
[not found] ` <387E7F82.99AF83CE@huawei.com.cn>
[not found] ` <387E7AF5.A92A6122@ctam.com.au>
[not found] ` <387E9927.48689C08@huawei.com.cn>
[not found] ` <387EBEB9.B69B1680@ctam.com.au>
2000-01-14 8:31 ` Cross-compile Applications for 860 on x86 dony
2000-01-16 2:01 ` Brendan J Simon
[not found] ` <388ABF55.5BD3A031@eng.uct.ac.za>
[not found] ` <388B9C86.8970590A@ctam.com.au>
[not found] ` <388BA902.B41A2E11@huawei.com.cn>
2000-01-24 3:00 ` Cross-compile dynamic apps for mpc860 on ix86 Brendan J Simon
2000-01-24 5:03 ` Wolfgang Denk
2000-01-24 6:46 ` dony
2000-01-24 8:02 ` 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=200001240802.JAA26827@denx.local.net \
--to=wd@denx.de \
--cc=Brendan.Simon@ctam.com.au \
--cc=dony.he@huawei.com.cn \
--cc=gcarter@eng.uct.ac.za \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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;
as well as URLs for NNTP newsgroup(s).