public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Adjust paths when cross-compiling
@ 2010-09-16 11:03 Jan Kobler
  2010-09-20 17:39 ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kobler @ 2010-09-16 11:03 UTC (permalink / raw
  To: gentoo-embedded

Hi,

when cross-compiling I have encountered some problems with path names:

ROOT=/usr/armv4tl-softfloat-linux-gnueabi
SYSROOT=/usr/armv4tl-softfloat-linux-gnueabi

I get error messages like:
/usr/lib/libgmp.so: could not read symbols: File in wrong format

or

/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: cannot find
/lib/libcrack.so.2

I have changed the paths manually

in the file $ROOT/usr/lib/libgmp.la

from
libdir='/usr/lib'
to
libdir='/usr/armv4tl-softfloat-linux-gnueabi/usr/lib'

in the file $ROOT/usr/lib/libcrack.so
from
GROUP ( /lib/libcrack.so.2 )
to
GROUP ( /usr/armv4tl-softfloat-linux-gnueabi/lib/libcrack.so.2 )


Are there any tools which can do this automatically.
I know that there is cross-fix-root or lafilefixer, but I am reluctant
to test it logged in as root.
Are there any docs about these tools beside --help on the command line.

These problems occurred when cross-compiling as described in
http://gentoo.mindzoo.de/index.cgi/wiki/cross-compiling-chroot
(currently Version 2)

Best regards

Jan



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-23 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 11:03 [gentoo-embedded] Adjust paths when cross-compiling Jan Kobler
2010-09-20 17:39 ` Mike Frysinger
2010-09-20 20:12   ` Jan Kobler
2010-09-21 11:04     ` Enrico Weigelt
2010-09-21 20:07     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox