From: Harald Schioeberg <schioebe@net.in.tum.de>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] emerge ppp with crosscompile problem
Date: Wed, 03 May 2006 11:48:47 +0200 [thread overview]
Message-ID: <44587C7F.6010504@net.in.tum.de> (raw)
In-Reply-To: <200605021639.26665.ladmanj@volny.cz>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Ladman wrote:
> Hi everyone.
> I have this problem
> By this script i am trying to emerge ppp ebuild:
>
> trotl ladmanj # cat memerge
> #!/bin/bash
>
> ARCH=sh4
> ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
> ROOT="/home/ladmanj/work_projects/sh4prj"
> CFLAGS="-Os -pipe"
> CXXFLAGS="${CFLAGS}"
> LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
> CBUILD=i686-pc-linux-gnu
> CHOST=sh4-pc-linux-uclibc
> CTARGET=sh4-pc-linux-uclibc
> CC=sh4-pc-linux-uclibc-gcc
> CXX=sh4-pc-linux-uclibc-g++
> PKGDIR=/usr/portage/packages/sh4
> USE="-* -X -kde -gnome -glibc uclibc make-symlinks static dhcp"
>
> export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET
> CC CXX PKGDIR USE
>
> emerge -b $*
> trotl ladmanj #
>
> this is the error i get
>
> gcc -o dhcpc.so -shared dhcpc.o clientpacket.o packet.o socket.o options.o
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
> dhcpc.o: Relocations in generic ELF (EM: 42)
> dhcpc.o: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[2]: *** [dhcpc.so] Error 1
things that come up in my mind, perhaps worth trying:
1) it uses the i686-pc-linux-gnu/bin/ld, don't you need the
sh4-pc-linux-uclibc-ld ?
export LD="sh4-pc-linux-uclibc-ld"
2) try adding -fpic or -fPIC to your CFLAGS, relocation error sounds a
bit like that.
3) it uses the gcc to compile a .so
3a) it should use the sh4-pc-linux-uclibc-gcc
3b) it shouldn't build a .so at all with USE="-* static"
correct my if i'm wrong, but that sounds that either the dhcp ebuild is
completely broken (unlikely) or your variables don't end up in your emerge.
4) try adding an export ROOT="/path/to/sh4/system" variable, maybe it
gets confused when merging your sh4 binaries to / , maybe it tries to
link something to libs from /
just some wild guesses.
Harald
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEWHx/Jgyxs71kcx4RArxcAJ0ccINX+JdV2/+GjWRc2sXb+mzw5ACeInoJ
SgniBpgL+CT2mP7eM41L5Dg=
=qETX
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
next prev parent reply other threads:[~2006-05-03 9:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 14:39 [gentoo-embedded] emerge ppp with crosscompile problem Jakub Ladman
2006-05-03 9:48 ` Harald Schioeberg [this message]
2006-05-03 9:59 ` Jakub Ladman
2006-05-03 10:42 ` Jakub Ladman
2006-05-03 11:57 ` Harald Schioeberg
2006-05-03 12:09 ` Jakub Ladman
2006-05-03 12:27 ` Harald Schioeberg
2006-05-03 12:41 ` Harald Schioeberg
2006-05-03 13:01 ` wireless
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=44587C7F.6010504@net.in.tum.de \
--to=schioebe@net.in.tum.de \
--cc=gentoo-embedded@lists.gentoo.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