Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem upgrading from gcc-3.4.4 to gcc-3.4.4-r1 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Oct 04, 2005 9:17 pm    Post subject: problem upgrading from gcc-3.4.4 to gcc-3.4.4-r1 [SOLVED] Reply with quote

I have had gcc-3.4.4 installed for months now but during an update of the system I see that portage wants to update gcc to 3.4.4-r1 but when I do the update I get an error that /emul/linux/x86/lib/libc.so.6 is not found. I looked in that folder and it indeed is not there. How do I fix this??

Thanks in Advance,
John

Code:
make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_ -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1.tmp  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_stack_smash_handler.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find /emul/linux/x86/lib/libc.so.6
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1279, Exitcode 2

_________________
John

My gentoo overlay
Instructons for overlay


Last edited by drescherjm on Thu Oct 06, 2005 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Wed Oct 05, 2005 1:17 am    Post subject: Reply with quote

We need to see the output of emerge --info. What profile are you running? 2004.3?
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 05, 2005 1:55 am    Post subject: Reply with quote

Code:
dicom ~ # emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://osmanager.radimg.pitt.edu/portage"
USE="amd64 X acpi avi bash bash-completion berkdb bitmap-fonts cdr crypt cups curl doc dvd dvdr eds emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg junit kde ldap libwww lzw lzw-tiff mad mikmod mng motif mp3 mpeg mysql ncurses nls nptl ogg opengl pam pdflib perl png postgres python qt quicktime readline samba sdl slang spell ssl szip tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales vorbis wxwinows xml xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS


Quote:
What profile are you running?

I believe it is 2005.0.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Wed Oct 05, 2005 9:33 am    Post subject: Reply with quote

Try changing it to 2005.1 by

    1. deleting symlink: /etc/make.profile
    2. set a new /etc/make.profile-symlink to /usr/portage/profiles/default-linux/amd64/2005.1


and try to update the package again
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 05, 2005 12:32 pm    Post subject: Reply with quote

I tried that but I get the same exact error.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Wed Oct 05, 2005 1:30 pm    Post subject: Reply with quote

drescherjm wrote:
I tried that but I get the same exact error.


In this case i would try to find something similar in bugzilla (https://bugs.gentoo.org) or even file a new bug.

But do some research first before filing a new bug!
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 05, 2005 1:36 pm    Post subject: Reply with quote

Quote:
In this case i would try to find something similar in bugzilla


I did a brief search of the error (before I posted here) for gcc but did not find it although I admit I did not go through all the gcc bugs...

Quote:
But do some research first before filing a new bug!

I will. I'm pretty cautious about reporting bugs.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Oct 05, 2005 5:48 pm    Post subject: Reply with quote

Have you migrated from an earlier profile? It looks like a broken migration.

Try reemerging glibc.
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Wed Oct 05, 2005 6:05 pm    Post subject: Reply with quote

Have you tried to re-emerge the emul-* packages?

You can run
Code:
equery b /emul/linux/x86/lib/libc.so.6
for know the package that install this library
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 05, 2005 8:30 pm    Post subject: Reply with quote

Quote:
Have you tried to re-emerge the emul-* packages?

No, but I did do the glibc one... I'll try the rest.

pacho2 wrote:
Have you tried to re-emerge the emul-* packages?

You can run
Code:
equery b /emul/linux/x86/lib/libc.so.6
for know the package that install this library


Code:

dicom ~ # equery b /emul/linux/x86/lib/libc.so.6
[ Searching for file(s) /emul/linux/x86/lib/libc.so.6 in *... ]
dicom ~ #

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Oct 05, 2005 9:00 pm    Post subject: Reply with quote

Emerging all the emul- stuff did not work but I think I have found the problem.

Code:
dicom ~ # equery uses glibc
[ Searching for packages matching glibc... ]
[ Colour Code : set unset ]
[ Legend    : Left column  (U) - USE flags from make.conf              ]
[           : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for sys-libs/glibc-2.3.5-r1 ]
 U I
 + + nls              : <unknown>
 - - pic              : Build Position Independent Code.  Do not utilize this flag unless you know what you're doing.
 - - build            : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
 + + nptl             : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - nptlonly         : Disables building the linuxthreads fallback in glibc ebuilds that support building both linuxthreads and nptl.
 - - erandom          : Enable erandom/frandom support in glibc for ssp
 - - hardened         : activate default security enhancements for toolchain (gcc, glibc, binutils)
 + + userlocales      : build only the locales specified in /etc/locales.build
 - + multilib         : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
 - - selinux          : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
 - - glibc-compat20   : Enable the glibc-compat addon.
 - - glibc-omitfp     : Configure glibc with --enable-omitfp which lets the build system determine when it is safe to use -fomit-frame-pointer
 - - linuxthreads-tls : Configure the linuxthreads glibc with --with-__thread if supported by your system.  --with-tls is always enabled if supported and is NOT controlled by this switch.  So the glibc built will always support TLS binaries.  This toggle chooses whether or not glibc itself uses TLS.  If you're concerned about backwards compatibility with old binaries, leave this off.
 - - profile          : Adds profile support to builds of packages (will likely vary from ebuild to ebuild in support)
dicom ~ #


I see that it says multilib is not in my make.conf. I wonder how it got removed??
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Thu Oct 06, 2005 5:08 pm    Post subject: Reply with quote

That did not work also. multilib was set in my make.conf but I forgot the profile was handling this in a way that it looks like it is disabled. I do have several other amd64 systems so I am looking into what I am missing on this box.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Thu Oct 06, 2005 5:21 pm    Post subject: Reply with quote

I may again have found the problem.

I tried to upgrade glibc and got the "Cannot compute sizeof (long double)" error close to the bottom of the page of the following link:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1

after following the steps Can't find libc.so it appears like things are working as I now have the /emul/linux/x86/lib/libc.so.6 file :D

emerging now... I'll mark this thread solved if this works.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum