FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 09-21-2010, 10:48 AM
Joakim Tjernlund
 
Default where is libgcc_so.1?

Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote on 2010/09/20 22:46:43:
>
> Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/20 22:01:24:
> >
> > On Monday, September 20, 2010 15:01:24 Joakim Tjernlund wrote:
> > > Maybe I am just stupid (too long since I used crossdev) but
> > > I cannot find libgcc_so.1 after building:
> > > crossdev
> > > -s3
> > > --ex-gdb
> > > --libc 2.11.2
> > > --binutils 2.20.1-r1
> > > --gcc 4.4.4-r2
> > > --kernel 2.6.30-r1
> > > --target powerpc-e300c2_softfloat-linux-gnu
> > >
> > > As I recall NPTL want libgcc_so.1 no matter what I do. Isn't that
> > > true in newer toolchains?
> >
> > did you typo the name ? gcc for most linux targets install a libgcc_s.so.1.
>
> Yes, I meant libgcc_s.so.1. I cannot find it under /usr/lib/gcc/powerpc-
> e300c2_softfloat-linux-gnu
> nor /usr/powerpc-e300c2_softfloat-linux-gnu/

hmm, might this be due to me not build c++(using -s3 to crossdev)?
I guess I will find out next time I rebuild my tool chain.
 
Old 09-21-2010, 08:05 PM
Mike Frysinger
 
Default where is libgcc_so.1?

On Monday, September 20, 2010 16:46:43 Joakim Tjernlund wrote:
> Yes, I meant libgcc_s.so.1. I cannot find it under
> /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu nor
> /usr/powerpc-e300c2_softfloat-linux-gnu/
>
> There is a /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu/4.4.4/libgcc.a
> though.

i'm guessing it's because you selected --stage3. you really want --stage4.
-mike
 
Old 09-22-2010, 07:37 AM
Joakim Tjernlund
 
Default where is libgcc_so.1?

Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/21 22:05:11:
>
> On Monday, September 20, 2010 16:46:43 Joakim Tjernlund wrote:
> > Yes, I meant libgcc_s.so.1. I cannot find it under
> > /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu nor
> > /usr/powerpc-e300c2_softfloat-linux-gnu/
> >
> > There is a /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu/4.4.4/libgcc.a
> > though.
>
> i'm guessing it's because you selected --stage3. you really want --stage4.

Yes, I will try with -s4 later. I do think -s3 should include libgcc_s.so.1 too
if one selects NPTL as it requires libgcc_s.so.1

Jocke
 
Old 09-22-2010, 10:05 PM
Mike Frysinger
 
Default where is libgcc_so.1?

On Wednesday, September 22, 2010 03:37:04 Joakim Tjernlund wrote:
> Mike Frysinger wrote on 2010/09/21 22:05:11:
> > On Monday, September 20, 2010 16:46:43 Joakim Tjernlund wrote:
> > > Yes, I meant libgcc_s.so.1. I cannot find it under
> > > /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu nor
> > > /usr/powerpc-e300c2_softfloat-linux-gnu/
> > >
> > > There is a
> > > /usr/lib/gcc/powerpc-e300c2_softfloat-linux-gnu/4.4.4/libgcc.a though.
> >
> > i'm guessing it's because you selected --stage3. you really want
> > --stage4.
>
> Yes, I will try with -s4 later. I do think -s3 should include libgcc_s.so.1
> too if one selects NPTL as it requires libgcc_s.so.1

look at the stage list. you have to build a bare compiler (stage1) before you
can build the C library (stage3), and you need the C library before you can
build shared libraries like libgcc_s.so.1 (stage4).
-mike
 
Old 09-23-2010, 08:58 AM
Mike Frysinger
 
Default where is libgcc_so.1?

On Thursday, September 23, 2010 03:05:21 Joakim Tjernlund wrote:
> Mike Frysinger wrote on 2010/09/23 00:05:31:
> > look at the stage list. you have to build a bare compiler (stage1)
> > before you can build the C library (stage3), and you need the C library
> > before you can build shared libraries like libgcc_s.so.1 (stage4).
>
> A bit strange that s3 can build the pthread shared lib then?

no. glibc dlopen's libgcc on the fly. the pthreads source code has some
comments in it explaining why. although this chicken & egg problem is a
pretty damn good reason -- you cant build shared gcc libs without a C library,
so requiring your gcc to have shared libs would be problematic ...

> The help text for S4 only indicates that S4 builds a C++ compiler(which I
> don't need ATM, that is why I skipped s4)

i guess it is a bit misleading
-mike
 

Thread Tools




All times are GMT. The time now is 05:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org