Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: Mike Frysinger <vapier@g.o>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] /lib/libgcc_s.so.1 does not belong to any package?
Date: Sun, 18 Mar 2012 21:08:32
Message-Id: OFCD9A9C38.E896FDDD-ONC12579C5.006637A0-C12579C5.0067CBEA@transmode.se
In Reply to: Re: [gentoo-embedded] /lib/libgcc_s.so.1 does not belong to any package? by Mike Frysinger
1 Mike Frysinger <vapier@g.o> wrote on 2012/03/14 20:30:24:
2 >
3 > On Wednesday 14 March 2012 05:32:35 Joakim Tjernlund wrote:
4 > > Mike Frysinger <vapier@g.o> wrote on 2012/03/13 23:47:27:
5 > > > On Tuesday 13 March 2012 08:43:16 Joakim Tjernlund wrote:
6 > > > > Ed W <lists@××××××××××.com> wrote on 2012/03/13 13:07:37:
7 > > > > > On 10/03/2012 20:58, Mike Frysinger wrote:
8 > > > > > > On Friday 09 March 2012 10:58:10 Joakim Tjernlund wrote:
9 > > > > > >> A "qfile /lib/libgcc_s.so.1" does not list any package,
10 > > > > > >> should it not belong to sys-devel/gcc ?
11 > > > > > >
12 > > > > > > gcc-config installs it from /usr/lib/gcc/..... to /lib
13 > > > > >
14 > > > > > So perhaps there is a case that gcc-config/eselect/webapp-config/etc
15 > > > > > should record what they do..?
16 > > > >
17 > > > > Would help some, I just noted that gcc-config does not install
18 > > > > libgcc_s.so.1 for cross gccs, a bug?
19 > > >
20 > > > not sure what you mean. afaik, it works fine.
21 > >
22 > > gentoo-qclli gcc # gcc-config powerpc-softfloat_4.5.3-linux-gnu-4.5.3
23 > > * Switching cross-compiler to powerpc-softfloat_4.5.3-linux-gnu-4.5.3 ...
24 > > [ ok ]
25 > > gentoo-qclli gcc # find /usr/powerpc-softfloat_4.5.3-linux-gnu/ -name
26 > > "libgcc_s.*"
27 > > gentoo-qclli gcc #
28 > >
29 > > Should it not be a libgcc_s under there?
30 >
31 > no. again, context matters. what you did above was pick a cross-compiler
32 > (CHOST=x86_64-pc-linux-gnu/whatever CTARGET=powerpc-xxx). you did not pick a
33 > native compiler and that is the only time libgcc_s and friends get copied.
34 >
35 > had you installed a native compiler into /usr/$CTARGET and then done something
36 > like `ROOT=/usr/$CTARGET gcc-config $CTARGET-ver`, you'd probably get a
37 > libgcc_s in /usr/$CTARGET/lib/.
38 > -mike
39
40 Sorry for the late reply, got sidetracked.
41
42 What bugs me is that one can generally use /usr/$CTARGET as your root fs on
43 your favourite embedded target. Doing so will loose libgcc_s.so as there isn't one
44 installed. Having to install gcc into /usr/$CTARGET just to get libgcc_s is
45 a bit much.
46
47 Also, would it not be better if glibc showed up in
48 export ROOT=/usr/${CTARGET} PKGDIR=${PORTDIR}/pkgs/${CTARGET}/pkgs quickpkg `qlist -IC`
49 instead of
50 export ROOT=/ PKGDIR=${PORTDIR}/pkgs/${CTARGET}/cross-tools quickpkg `qlist -IC cross-${CTARGET}`
51 ?
52
53 Jocke

Replies