public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] /lib/libgcc_s.so.1 does not belong to any package?
Date: Mon, 19 Mar 2012 15:32:18 -0400	[thread overview]
Message-ID: <201203191532.19884.vapier@gentoo.org> (raw)
In-Reply-To: <OFA86D70C0.6C9B251D-ONC12579C6.004B15B8-C12579C6.0063B3C7@transmode.se>

[-- Attachment #1: Type: Text/Plain, Size: 2899 bytes --]

On Monday 19 March 2012 14:09:00 Joakim Tjernlund wrote:
> Mike Frysinger <vapier@gentoo.org> wrote on 2012/03/19 01:51:53:
> > On Sunday 18 March 2012 14:53:44 Joakim Tjernlund wrote:
> > > What bugs me is that one can generally use /usr/$CTARGET as your root
> > > fs on your favourite embedded target. Doing so will loose libgcc_s.so
> > > as there isn't one installed. Having to install gcc into /usr/$CTARGET
> > > just to get libgcc_s is a bit much.
> > 
> > why does this actually matter ?  as noted, this hack is merely there to
> > support a split /usr setup.  if you're using /usr/$CTARGET as your
> > rootfs, then you aren't going to have a split /usr, and thus the lib
> > copy is unnecessary.
> 
> I don't quite understand. If I copy /usr/$CTARGET to my target board
> as rootfs there will be no libgcc on my target and NPTL needs it.

true, but the copying process to /lib is pretty orthogonal to that.  if 
anything, i plan on deprecating the gcc-config logic to only copying to /lib if 
it detects that /usr is split.

as for the libgcc_s.so missing completely, today you have to:
	ROOT=/usr/${CTARGET} emerge sys-devel/gcc
as libgcc_s.so isn't the only library you're missing.  none of the gcc libs 
are installed in there (libstdc++, libmudflap, libgfortran, etc...).

might be another useful hack script to include in crossdev ... give it a 
/usr/$CTARGET to transparently sync gcc libs into from your cross-compiler.  
obviously if you want to run `gcc` on the target though you're going to have 
to do what i said above with the ROOT/emerge.

> > > Also, would it not be better if glibc showed up in
> > > 
> > >  export ROOT=/usr/${CTARGET} PKGDIR=${PORTDIR}/pkgs/${CTARGET}/pkgs
> > > 
> > > quickpkg `qlist -IC` instead of
> > > 
> > >  export ROOT=/ PKGDIR=${PORTDIR}/pkgs/${CTARGET}/cross-tools quickpkg
> > > 
> > > `qlist -IC cross-${CTARGET}` ?
> > 
> > no.  cross-${CTARGET}/glibc is a cross-compiler glibc, not a native one. 
> > yes, you can run it through a script to move things around so that it'd
> > basically have the same install as a native glibc, but the existing one
> > is not.
> > 
> > it might be useful to have crossdev automatically inject glibc into
> > package.provided for /usr/$CTARGET since attempting to install a native
> > one in there will hit conflicts.
> 
> hmm, I always viewed glibc under /usr/$CTARGET as a native target glibc
> which could be copied to the target directly, but now you say it is not?

there are some things which we do not currently install with the cross-
compiler glibc.  in the past, we didn't install any /bin or /sbin executables 
at all, although that's changed recently.  quickly checking the ebuild shows 
that none of the locale helper scripts are installed.  it wasn't my original 
design decision, but i'm open to bringing down the differences.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-03-19 21:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09 15:58 [gentoo-embedded] /lib/libgcc_s.so.1 does not belong to any package? Joakim Tjernlund
2012-03-10 20:58 ` Mike Frysinger
2012-03-10 21:32   ` Joakim Tjernlund
2012-03-11  0:55     ` Mike Frysinger
     [not found]   ` <4F5F3889.1010604@wildgooses.com>
2012-03-13 12:43     ` Joakim Tjernlund
2012-03-13 22:47       ` Mike Frysinger
2012-03-14  9:32         ` Joakim Tjernlund
2012-03-14 19:30           ` Mike Frysinger
2012-03-18 18:53             ` Joakim Tjernlund
2012-03-19  0:51               ` Mike Frysinger
2012-03-19 18:09                 ` Joakim Tjernlund
2012-03-19 19:32                   ` Mike Frysinger [this message]
2012-03-23 16:07                     ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201203191532.19884.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-embedded@lists.gentoo.org \
    --cc=joakim.tjernlund@transmode.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox