Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52812

Summary: gcc-3.4.0-r6 missing link to libgcc_s
Product: Gentoo Linux Reporter: Philippe Trottier (RETIRED) <tchiwam>
Component: [OLD] Core systemAssignee: ppc64 architecture team <ppc64>
Status: VERIFIED FIXED    
Severity: normal CC: lv, tgall
Priority: High    
Version: 2004.1   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes a library that is not found under ppc64

Description Philippe Trottier (RETIRED) gentoo-dev 2004-06-02 13:37:42 UTC
the gcc-3.4.0-r6 doesn't always make the libgcc_s available in /usr/lib but keep it for itself in /usr/lib/gcc-lib/powerpc64-unknown-linux-gnu/lib64/libgcc_s.so and libgcc_s.so.1


this is fixing the problem:
cd /usr/lib
ln -sf gcc-lib/powerpc64-unknown-linux-gnu/lib64/libgcc_s.so{,.1}

so far this is the only library I have found missing...

===========================================

Sometimes ebuild emerge stop working and look for libgcc_s.so

===========================================
ranlib ../lib/libncurses++.a
/usr/lib/ccache/bin/g++  -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib -lform -lmenu -lpanel -lncurses -Wl,-rpath,/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/lib  -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O2 -fPIC -fPIC 
/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r1/work/ncurses-5.4/c++'
make: *** [all] Error 2

!!! ERROR: sys-libs/ncurses-5.4-r1 failed.
!!! Function src_compile, Line 76, Exitcode 2
!!! make failed


catalyst: build script failed

catalyst: Stage build aborting due to error.
Comment 1 Philippe Trottier (RETIRED) gentoo-dev 2004-06-02 14:10:02 UTC
Created attachment 32545 [details, diff]
Fixes a library that is not found under ppc64
Comment 2 Philippe Trottier (RETIRED) gentoo-dev 2004-06-02 14:11:10 UTC
Found the bug, thanks to lv
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-06-02 14:21:32 UTC
glad to be of assistance :)
the fix has been added to CVS, give it some time to reach rsync
Comment 4 Tom Gall (RETIRED) gentoo-dev 2004-06-03 21:19:50 UTC
closing ... tested and works