* [gentoo-embedded] cannot find /lib/libc.so.6
@ 2006-09-21 13:26 Vladimir Pouzanov
2006-09-21 14:51 ` Mike Frysinger
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir Pouzanov @ 2006-09-21 13:26 UTC (permalink / raw
To: gentoo-embedded
Hi all,
I haven't been using full toolchain for a while (only gcc to compile
kernel). Now all my cross-emerges fail with:
/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld: skipping incompatible
/lib/libc.so.6 when searching for /lib/libc.so.6
/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld: cannot find /lib/libc.so.6
That seems to be portage bug (I have 2.1.2_pre1),
"arm-softfloat-linux-gnueabi test.c -o test" works fine. Any ideas how
to fix that (or track down to a bug report)?
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.com
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-21 13:26 [gentoo-embedded] cannot find /lib/libc.so.6 Vladimir Pouzanov
@ 2006-09-21 14:51 ` Mike Frysinger
2006-09-21 15:47 ` Vladimir Pouzanov
0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2006-09-21 14:51 UTC (permalink / raw
To: gentoo-embedded; +Cc: Vladimir Pouzanov
[-- Attachment #1: Type: text/plain, Size: 834 bytes --]
On Thursday 21 September 2006 09:26, Vladimir Pouzanov wrote:
> I haven't been using full toolchain for a while (only gcc to compile
> kernel). Now all my cross-emerges fail with:
> /usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld: skipping incompatible
> /lib/libc.so.6 when searching for /lib/libc.so.6
> /usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld: cannot find /lib/libc.so.6
>
> That seems to be portage bug (I have 2.1.2_pre1),
> "arm-softfloat-linux-gnueabi test.c -o test" works fine. Any ideas how
> to fix that (or track down to a bug report)?
couldnt give you any useful guesses without seeing the compile line and the
output of like `arm-softfloat-linux-gnueabi -v` ...
not to discourage, but ive never tested softfloat+glibc or glibc+eabi ... i
would like both technologies to work though :)
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-21 14:51 ` Mike Frysinger
@ 2006-09-21 15:47 ` Vladimir Pouzanov
2006-09-21 16:13 ` Mike Frysinger
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir Pouzanov @ 2006-09-21 15:47 UTC (permalink / raw
To: gentoo-embedded
On 9/21/06, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 21 September 2006 09:26, Vladimir Pouzanov wrote:
> couldnt give you any useful guesses without seeing the compile line and the
> output of like `arm-softfloat-linux-gnueabi -v` ...
# arm-softfloat-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-softfloat-linux-gnueabi
Configured with:
/var/tmp/cross/arm-softfloat-linux-gnueabi/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/arm-softfloat-linux-gnueabi/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.1.1/include
--datadir=/usr/share/gcc-data/arm-softfloat-linux-gnueabi/4.1.1
--mandir=/usr/share/gcc-data/arm-softfloat-linux-gnueabi/4.1.1/man
--infodir=/usr/share/gcc-data/arm-softfloat-linux-gnueabi/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.1.1/include/g++-v4
--host=i686-pc-linux-gnu --target=arm-softfloat-linux-gnueabi
--build=i686-pc-linux-gnu --disable-altivec --with-float=soft
--enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --disable-libunwind-exceptions
--disable-multilib --disable-libmudflap --disable-libssp
--disable-libgcj --enable-languages=c,c++
--with-sysroot=/usr/arm-softfloat-linux-gnueabi --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)
> not to discourage, but ive never tested softfloat+glibc or glibc+eabi ... i
> would like both technologies to work though :)
> -mike
It worked before, that's the problem. And it still works outside of emerge.
PS: my x-emerge script:
# cat /usr/local/bin/xemerge
#!/bin/bash
CBUILD=$(portageq envvar CHOST)
SYSROOT="/home/farcaller/develop/linux4palm/gentoo_root/"
PORTAGE_CONFIGROOT="$SYSROOT"
ARCH="arm"
if [[ "$1" == "--root" ]] ; then
ROOT="$2"
shift 2
else
ROOT="$SYSROOT"
fi
export CBUILD PORTAGE_CONFIGROOT ROOT ARCH
emerge $*
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.com
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-21 15:47 ` Vladimir Pouzanov
@ 2006-09-21 16:13 ` Mike Frysinger
2006-09-21 16:23 ` Vladimir Pouzanov
0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2006-09-21 16:13 UTC (permalink / raw
To: gentoo-embedded; +Cc: Vladimir Pouzanov
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
On Thursday 21 September 2006 11:47, Vladimir Pouzanov wrote:
> On 9/21/06, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Thursday 21 September 2006 09:26, Vladimir Pouzanov wrote:
> >
> > couldnt give you any useful guesses without seeing the compile line and
> > the output of like `arm-softfloat-linux-gnueabi -v` ...
>
> # arm-softfloat-linux-gnueabi-gcc -v
sorry, i meant `arm-softfloat-linux-gnueabi-gcc -v obj1.o obj2.o ... -o foo`
of a failing and a working run
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-21 16:13 ` Mike Frysinger
@ 2006-09-21 16:23 ` Vladimir Pouzanov
2006-09-23 3:54 ` Mike Frysinger
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir Pouzanov @ 2006-09-21 16:23 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 637 bytes --]
On 9/21/06, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 21 September 2006 11:47, Vladimir Pouzanov wrote:
> > On 9/21/06, Mike Frysinger <vapier@gentoo.org> wrote:
> > > On Thursday 21 September 2006 09:26, Vladimir Pouzanov wrote:
> > >
> > > couldnt give you any useful guesses without seeing the compile line and
> > > the output of like `arm-softfloat-linux-gnueabi -v` ...
> >
> > # arm-softfloat-linux-gnueabi-gcc -v
>
> sorry, i meant `arm-softfloat-linux-gnueabi-gcc -v obj1.o obj2.o ... -o foo`
> of a failing and a working run
Attaching output
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.com
[-- Attachment #2: compile-fail.txt.bz2 --]
[-- Type: application/x-bzip2, Size: 2415 bytes --]
[-- Attachment #3: compile-ok.txt.bz2 --]
[-- Type: application/x-bzip2, Size: 1008 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-21 16:23 ` Vladimir Pouzanov
@ 2006-09-23 3:54 ` Mike Frysinger
2006-09-26 14:45 ` Vladimir Pouzanov
0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2006-09-23 3:54 UTC (permalink / raw
To: Vladimir Pouzanov; +Cc: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 162 bytes --]
On Thursday 21 September 2006 12:23, Vladimir Pouzanov wrote:
> Attaching output
looks like you're using wrong LDFLAGS ... what do you have yours set to ?
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-23 3:54 ` Mike Frysinger
@ 2006-09-26 14:45 ` Vladimir Pouzanov
2006-09-26 16:04 ` Mike Frysinger
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir Pouzanov @ 2006-09-26 14:45 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
On 9/23/06, Mike Frysinger <vapier@gentoo.org> wrote:
> looks like you're using wrong LDFLAGS ... what do you have yours set to ?
> -mike
Here goes an extract from my ${ROOT}/etc/make.conf:
ROOT="/home/farcaller/develop/linux4palm/gentoo_root/"
CFLAGS="-Os -pipe -mtune=xscale -I${ROOT}/usr/include"
LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/lib"
CXXFLAGS="${CFLAGS}"
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.com
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-26 14:45 ` Vladimir Pouzanov
@ 2006-09-26 16:04 ` Mike Frysinger
2006-09-26 16:24 ` Daniel Glaser
2006-09-26 17:18 ` Vladimir Pouzanov
0 siblings, 2 replies; 11+ messages in thread
From: Mike Frysinger @ 2006-09-26 16:04 UTC (permalink / raw
To: Vladimir Pouzanov; +Cc: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
On Tuesday 26 September 2006 10:45, Vladimir Pouzanov wrote:
> On 9/23/06, Mike Frysinger <vapier@gentoo.org> wrote:
> > looks like you're using wrong LDFLAGS ... what do you have yours set to ?
>
> Here goes an extract from my ${ROOT}/etc/make.conf:
> ROOT="/home/farcaller/develop/linux4palm/gentoo_root/"
> CFLAGS="-Os -pipe -mtune=xscale -I${ROOT}/usr/include"
> LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/lib"
> CXXFLAGS="${CFLAGS}"
this is the exact reason i've been telling/forcing people to switch over to
sysroot cross-compilers
when you set LDFLAGS/CFLAGS like that, it screws up building some packages ...
and i am 99% sure it is not a bug in the packages
use /usr/CTARGET as your development root and your $ROOT as the target runtime
root ... that means if you need to build an application to install into ROOT,
then the libraries to link against need to be emerged into /usr/CTARGET while
the libraries to run against need to be emerged/copied into $ROOT
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-26 16:04 ` Mike Frysinger
@ 2006-09-26 16:24 ` Daniel Glaser
2006-09-26 16:56 ` Mike Frysinger
2006-09-26 17:18 ` Vladimir Pouzanov
1 sibling, 1 reply; 11+ messages in thread
From: Daniel Glaser @ 2006-09-26 16:24 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
>
> use /usr/CTARGET as your development root and your $ROOT as the target
runtime
> root ... that means if you need to build an application to install into
ROOT,
> then the libraries to link against need to be emerged into /usr/CTARGET
while
> the libraries to run against need to be emerged/copied into $ROOT
> -mike
OK, to better understand this...
Does this mean, if you make your Target-ROOT /usr/CTARGET, the two
locations ($ROOT and /usr/CTARGET) mentioned above goes into the same
place, so that gcc, ld,... can find it?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFGVRSLA0LfkMzpGMRAvkaAJ94wmiZmFSqp/f53MNXcNfCtmBNxwCeLwVa
BGvo69X3gezMBEGTf6CVaO0=
=gw/C
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-26 16:24 ` Daniel Glaser
@ 2006-09-26 16:56 ` Mike Frysinger
0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2006-09-26 16:56 UTC (permalink / raw
To: gentoo-embedded; +Cc: Daniel Glaser
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
On Tuesday 26 September 2006 12:24, Daniel Glaser wrote:
> OK, to better understand this...
> Does this mean, if you make your Target-ROOT /usr/CTARGET, the two
> locations ($ROOT and /usr/CTARGET) mentioned above goes into the same
> place, so that gcc, ld,... can find it?
your cross-compiler uses /usr/CTARGET as the sysroot ... in other words, it's
as if /usr/CTARGET were the $ROOT for just the compiler
binutils and gcc treat /usr/CTARGET/lib and /usr/CTARGET/usr/lib
and /usr/CTARGET/usr/include the same exact way your native compiler
treats /lib and /usr/lib and /usr/include
so lets look at nano ... it needs ncurses
ROOT=/usr/CTARGET emerge -b ncurses
ROOT=/home/myboard emerge -K ncurses
ROOT=/home/myboard emerge nano
the only thing you need to set is CHOST ... no screwing with CFLAGS or LDFLAGS
as the toolchain already knows where to look
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-embedded] cannot find /lib/libc.so.6
2006-09-26 16:04 ` Mike Frysinger
2006-09-26 16:24 ` Daniel Glaser
@ 2006-09-26 17:18 ` Vladimir Pouzanov
1 sibling, 0 replies; 11+ messages in thread
From: Vladimir Pouzanov @ 2006-09-26 17:18 UTC (permalink / raw
To: gentoo-embedded
On 9/26/06, Mike Frysinger <vapier@gentoo.org> wrote:
> use /usr/CTARGET as your development root and your $ROOT as the target runtime
> root ...
Thanks a lot for this info
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://www.hackndev.com
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-09-26 17:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-21 13:26 [gentoo-embedded] cannot find /lib/libc.so.6 Vladimir Pouzanov
2006-09-21 14:51 ` Mike Frysinger
2006-09-21 15:47 ` Vladimir Pouzanov
2006-09-21 16:13 ` Mike Frysinger
2006-09-21 16:23 ` Vladimir Pouzanov
2006-09-23 3:54 ` Mike Frysinger
2006-09-26 14:45 ` Vladimir Pouzanov
2006-09-26 16:04 ` Mike Frysinger
2006-09-26 16:24 ` Daniel Glaser
2006-09-26 16:56 ` Mike Frysinger
2006-09-26 17:18 ` Vladimir Pouzanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox