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: signature.asc
Description: Digital signature

Reply via email to