[OE-core] GCC fails when SDK is not extracted to /usr/local

Tom Rini tom.rini at gmail.com
Thu Dec 8 14:56:50 UTC 2011


On Wed, Dec 7, 2011 at 12:16 AM, Tasslehoff Kjappfot
<tasskjapp at gmail.com> wrote:
> gcc fails when I extract my SDK to another place than /usr/local.
>
> Output when it fails:
>
> $ ./arm-angstrom-linux-gnueabi-gcc
> bash: ./arm-angstrom-linux-gnueabi-gcc: No such file or directory
>
> Readelf output:
>
> $ readelf -d arm-angstrom-linux-gnueabi-gcc
>
> Dynamic section at offset 0x34394 contains 21 entries:
>  Tag        Type                         Name/Value
>  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
>  0x0000000f (RPATH)                      Library rpath:
> [/usr/local/angstrom-eglibc-i686-armv7a/sysroots/i686-angstromsdk-linux/usr/lib/armv7a-angstrom-linux-gnueabi:/usr/local/angstrom-eglibc-i686-armv7a/sysroots/i686-angstromsdk-linux/lib]
>
> Is it the RPATH here that's making trouble for me?

Not exactly.  And RPATH is needed to find some of the shared libraries
that are needed.  I thought we had been running chrpath over these to
make them relocatable, however.

-- 
Tom




More information about the Openembedded-core mailing list