public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] crossdev and binutils libs libbfd and libiberity
@ 2015-09-04 12:50 Joakim Tjernlund
  2016-01-15 20:02 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Joakim Tjernlund @ 2015-09-04 12:50 UTC (permalink / raw
  To: gentoo-embedded@lists.gentoo.org

Cross building perf needs binutils libs libbfd and libiberity but cross ld cannot find them:
# powerpc-g2.19-linux-gnu-ld -lbfd
powerpc-g2.19-linux-gnu-ld: cannot find -lbfd

This is because libbfd and libiberity are installed in non standard locations:
# pwd
/usr/powerpc-g2.19-linux-gnu
# find -name libbfd.so
./usr/lib/binutils/powerpc-g2.19-linux-gnu/2.24/libbfd.so
./usr/powerpc-g2.19-linux-gnu/lib/libbfd.so

How to resolve this(other than manually creating sym links)?

Jocke

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

* Re: [gentoo-embedded] crossdev and binutils libs libbfd and libiberity
  2015-09-04 12:50 [gentoo-embedded] crossdev and binutils libs libbfd and libiberity Joakim Tjernlund
@ 2016-01-15 20:02 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-01-15 20:02 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

On 04 Sep 2015 12:50, Joakim Tjernlund wrote:
> Cross building perf needs binutils libs libbfd and libiberity but cross ld cannot find them:
> # powerpc-g2.19-linux-gnu-ld -lbfd
> powerpc-g2.19-linux-gnu-ld: cannot find -lbfd
> 
> This is because libbfd and libiberity are installed in non standard locations:
> # pwd
> /usr/powerpc-g2.19-linux-gnu
> # find -name libbfd.so
> ./usr/lib/binutils/powerpc-g2.19-linux-gnu/2.24/libbfd.so

this is the bfd for your cross-compiler.  i.e. it's full of x86_64 code
that produces powerpc code.  you do not use it for linking target libs.

> ./usr/powerpc-g2.19-linux-gnu/lib/libbfd.so

this should not exist.  did you create it ?

> How to resolve this(other than manually creating sym links)?

cross-compile the new binutils-libs package.
$ powerpc-g2.19-linux-gnu-emerge binutils-libs
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-01-15 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04 12:50 [gentoo-embedded] crossdev and binutils libs libbfd and libiberity Joakim Tjernlund
2016-01-15 20:02 ` Mike Frysinger

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