Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev and binutils libs libbfd and libiberity
Date: Fri, 15 Jan 2016 20:03:01
Message-Id: 20160115200257.GC9577@vapier.lan
In Reply to: [gentoo-embedded] crossdev and binutils libs libbfd and libiberity by Joakim Tjernlund
1 On 04 Sep 2015 12:50, Joakim Tjernlund wrote:
2 > Cross building perf needs binutils libs libbfd and libiberity but cross ld cannot find them:
3 > # powerpc-g2.19-linux-gnu-ld -lbfd
4 > powerpc-g2.19-linux-gnu-ld: cannot find -lbfd
5 >
6 > This is because libbfd and libiberity are installed in non standard locations:
7 > # pwd
8 > /usr/powerpc-g2.19-linux-gnu
9 > # find -name libbfd.so
10 > ./usr/lib/binutils/powerpc-g2.19-linux-gnu/2.24/libbfd.so
11
12 this is the bfd for your cross-compiler. i.e. it's full of x86_64 code
13 that produces powerpc code. you do not use it for linking target libs.
14
15 > ./usr/powerpc-g2.19-linux-gnu/lib/libbfd.so
16
17 this should not exist. did you create it ?
18
19 > How to resolve this(other than manually creating sym links)?
20
21 cross-compile the new binutils-libs package.
22 $ powerpc-g2.19-linux-gnu-emerge binutils-libs
23 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature