From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 97FB21388BF for ; Fri, 15 Jan 2016 20:03:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBC5621C00E; Fri, 15 Jan 2016 20:02:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B68921C00B for ; Fri, 15 Jan 2016 20:02:58 +0000 (UTC) Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 76B483409C8 for ; Fri, 15 Jan 2016 20:02:57 +0000 (UTC) Date: Fri, 15 Jan 2016 15:02:57 -0500 From: Mike Frysinger To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] crossdev and binutils libs libbfd and libiberity Message-ID: <20160115200257.GC9577@vapier.lan> Mail-Followup-To: gentoo-embedded@lists.gentoo.org References: <1441371057.3260.23.camel@transmode.se> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+xNpyl7Qekk2NvDX" Content-Disposition: inline In-Reply-To: <1441371057.3260.23.camel@transmode.se> X-Archives-Salt: 839bb2b7-3075-4bd8-a87c-c37fa7f768ef X-Archives-Hash: 28597297ddda3350e0195cdd307fa6c3 --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04 Sep 2015 12:50, Joakim Tjernlund wrote: > Cross building perf needs binutils libs libbfd and libiberity but cross l= d cannot find them: > # powerpc-g2.19-linux-gnu-ld -lbfd > powerpc-g2.19-linux-gnu-ld: cannot find -lbfd >=20 > This is because libbfd and libiberity are installed in non standard locat= ions: > # 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 --+xNpyl7Qekk2NvDX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWmVBxAAoJEEFjO5/oN/WBDGsP/1xEZjM6ZsEaX813N2pinqyS sbplcfsPAFU6Qw8FuvipTpnUiz1X2wxicstOQVjJqRPSyjKADAYF9odaXOyeqDH1 22eYfIuvFfLXAS3j0GBdWXFa0s/YZjdkyxyOJpKtckn6PPvcgGbshzOC0u1ZW6de tLMXTUvMWQdOTz3y2hXGjo31MUZOcgUxgKtHzv0rk127qBRCWJYj8zBy4taoHsUs 6SeOqzgu3wvLapeSvmW6BGJaMoxRuw4ALZpnxro07sgGySrBExk12tNJaQVl+uIP 2SRLtdq0E3LqfldM7I9+8d0iKJfZrCHpcxHI6ASIF7/JoTCjCyOCDwAJ2LsSwFyf G2V7snpVcD8+hN3QRwZY89rjUcfvk28fV9tNSd5urhX6Fx0Oz0b9BAALtHyRBzYk Zd7avF4q5INvwmCRv3E6PMOIXw3eTk8C4GHmcFMUtYTkWZviHgNpFdj2knDCR51w eaL0Du4jBqo9ZXOJIF7vruH2UMM4rS/Rh6bkesWJKIyd0ucDCHgqGLnvGhhfjU87 4ljprVANUQtsWtHiFl5qupiWZDsNA/zlF28h+PWSFZ3aZL346TT4iTGsCMMZrzxJ I0yKPd4e8f7vPtamKdkKAYjhUq3EuHCUTEGwWlIoYZSUJnQYgAndfwSTR2dXDFLu cf/761/kwn00vfIMM8W+ =6Npv -----END PGP SIGNATURE----- --+xNpyl7Qekk2NvDX--