Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] chroot
Date: Mon, 08 Jun 2009 16:31:43
Message-Id: 1244478698.1962.3.camel@hangover
In Reply to: Re: [gentoo-embedded] chroot by Tim Erwin
1 On Mon, 2009-06-08 at 23:09 +1000, Tim Erwin wrote:
2 >
3 > Especially the step
4 >
5 > ROOT=<path to stage3 dir> gcc-config -l
6 > ROOT=<path to stage3 dir> gcc-config <the gcc you want!>
7 >
8 > Nope not that.
9 >
10 > It seems that libgcc_s.so.1 is missing from /lib directory (it exists
11 > in /usr/lib/gcc/armv4tl-softfloat-linux-gnueabi/4.3.2/)
12 >
13 > Copied it over and presto! Anyone else with this problem?
14 > Cross-compile bug?
15
16
17 When you enter the chroot. You most likely forget to initialy run an
18 env-update. Which should update the /etc/ld.so.conf and then the
19 ld.so.cache
20
21 Or simply:
22
23 echo /usr/lib/gcc/armv4tl-softfloat-linux-gnueabi/4.3.2/ \
24 >> $ROOT/etc/ld.so.conf ; chroot $ROOT /sbin/ldconfig -a