Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] crossdev builds libiberty.a with host arch
Date: Wed, 09 Nov 2011 15:37:59
Message-Id: OF1732330C.CDDB72C2-ONC1257943.0054FEEB-C1257943.0055D034@transmode.se
Tried to build oprofile
./configure --host powerpc-softfloat-linux-gnu LDFLAGS="-L/usr/lib/binutils/powerpc-softfloat-linux-gnu -L/usr/local/src/FS/fsall/basicfs/usr/lib" CPPFLAGS=-I/usr/lib/binutils/powerpc-softfloat-linux-gnu/include

configure: error: liberty library not found

this appears to be caused by crossdevs libiberty.a beeing built with the hosts arch instead of powerpc:
 nm /usr/i686-pc-linux-gnu/powerpc-softfloat-linux-gnu/lib/libiberty.a | grep __i686
 00000000 T __i686.get_pc_thunk.bx
 00000000 T __i686.get_pc_thunk.bx
 ....

Bug in crossdev, oprofile or user error?

 Jocke

Replies

Subject Author
Re: [gentoo-embedded] crossdev builds libiberty.a with host arch Mike Frysinger <vapier@g.o>
Re: [gentoo-embedded] crossdev builds libiberty.a with host arch YouTube Support <support@×××××××.com>