Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerged latest glibc and now nothing compiles
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
loftwyr
l33t
l33t


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

PostPosted: Thu Feb 03, 2005 3:45 pm    Post subject: emerged latest glibc and now nothing compiles Reply with quote

I did a emerge -auDv this morning and it emerged the new glibc.

Now nothing else will compile. It bombs out, not able to find any of the includes (stdio.h, etc.) . I checked, they are there.

I can't build anything. Not even glibc. What do I do?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 4:25 pm    Post subject: Reply with quote

might be an exercise in futility but try a revdep-rebuild ...
_________________
Votre moment detente
What is the nature of conflict?
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: Thu Feb 03, 2005 4:41 pm    Post subject: Reply with quote

Doesn't recognize a problem and just re-emerges openoffice-bin
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 4:53 pm    Post subject: Reply with quote

you're in 2004.3 ?
you got "multilib" in your use flags?
you got any of the emul-linux-x86 installed ?
_________________
Votre moment detente
What is the nature of conflict?
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: Thu Feb 03, 2005 4:59 pm    Post subject: Reply with quote

Trevoke wrote:
you're in 2004.3 ?
you got "multilib" in your use flags?
you got any of the emul-linux-x86 installed ?


yes, yes and yes (all of them including qt)

However emerge info says:
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

I think that may be the problem?

How do I set them?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 5:25 pm    Post subject: Reply with quote

I don't think so.
Mine aren't set either (well except for portdir_overlay but no worries)

What version of glibc did you install?
My amd64 has this:
Quote:
Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)

_________________
Votre moment detente
What is the nature of conflict?
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: Thu Feb 03, 2005 5:55 pm    Post subject: Reply with quote

Trevoke wrote:

What version of glibc did you install?
My amd64 has this:
Quote:
Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)


Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)

Same one but I'm not 2005.0. Maybe I shouldn't have upgraded?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 6:34 pm    Post subject: Reply with quote

Are you in ~amd64 or amd64 (that's the ACCEPT_KEYWORDS in your /etc/make.conf )
_________________
Votre moment detente
What is the nature of conflict?
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: Thu Feb 03, 2005 6:39 pm    Post subject: Reply with quote

Trevoke wrote:
Are you in ~amd64 or amd64 (that's the ACCEPT_KEYWORDS in your /etc/make.conf )


Don't have ACCEPT_KEYWORDS in my make.conf so I'm just amd64.
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 6:43 pm    Post subject: Reply with quote

Hmm did you also happen to emerge gcc by any chance?
A gcc release broke some stuff and you have to go back to the previous one.. Although I think that may have been fixed quickly with reoffering the previous gcc as the one offered by portage by default.
_________________
Votre moment detente
What is the nature of conflict?
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: Thu Feb 03, 2005 6:52 pm    Post subject: Reply with quote

Trevoke wrote:
Hmm did you also happen to emerge gcc by any chance?
A gcc release broke some stuff and you have to go back to the previous one.. Although I think that may have been fixed quickly with reoffering the previous gcc as the one offered by portage by default.


Nope. I think it's re-install time.

WHat a pain.
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Feb 03, 2005 7:05 pm    Post subject: Reply with quote

No, it's hard to believe that it's broken.
But you're saying you can't install anything?
Can you try and give us the error message(s) you get after a few tries of different packages?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
gregw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2004
Posts: 106
Location: Warrington, Cheshire, England

PostPosted: Thu Feb 03, 2005 7:21 pm    Post subject: Reply with quote

Trevoke wrote:
No, it's hard to believe that it's broken.
But you're saying you can't install anything?
Can you try and give us the error message(s) you get after a few tries of different packages?


Hi All,

Could this be related to this report?
https://forums.gentoo.org/viewtopic.php?t=289739&highlight=glibc

I have just done an emerge sync and now after an emerge -uvD world I cant complie anythig either. which is ironic as the first update was for glibc.

For example:
Code:

gentoo root # emerge -uv world
Calculating world dependencies ...done!
>>> emerge (1 of 3) sys-apps/procps-3.2.4-r2 to /
>>> md5 src_uri ;-) procps-3.2.4.tar.gz
>>> Unpacking source...
>>> Unpacking procps-3.2.4.tar.gz to /var/tmp/portage/procps-3.2.4-r2/work
 * Applying 3.2.4-linux26-slab.patch ...                                  [ ok ]
 * Applying 3.2.4-64bit-display.patch ...                                 [ ok ]
>>> Source unpacked.
x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -I proc -MM -MG proc/alloc.c proc/devname.c proc/escape.c proc/ksym.c proc/pwcache.c proc/readproc.c proc/sig.c proc/slab.c proc/sysinfo.c proc/version.c proc/whattime.c > proc/.depend
x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -I proc  -fno-common -ffast-math -W -Wall-Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -march=athlon64 -O2 -pipe        -c -o uptime.o uptime.c
uptime.c:1:19: stdio.h: No such file or directory
uptime.c:2:20: string.h: No such file or directory
uptime.c: In function `main':
uptime.c:11: warning: implicit declaration of function `strcmp'
<internal>:0: warning: redundant redeclaration of 'strcmp'
uptime.c:15: warning: implicit declaration of function `fprintf'
<internal>:0: warning: redundant redeclaration of 'fprintf'
uptime.c:15: error: `stderr' undeclared (first use in this function)
uptime.c:15: error: (Each undeclared identifier is reported only once
uptime.c:15: error: for each function it appears in.)
make: *** [uptime.o] Error 1

!!! ERROR: sys-apps/procps-3.2.4-r2 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

gentoo root #


Here is my current emerge info:

Code:

gentoo root # emerge info
Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-
r0, 2.6.10 x86_64)
=================================================================
System uname: 2.6.10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 19 2004, 11:20:14)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts audiofile berkdb bitmap-fonts cdparanoia cdr crypt cups dvd esd f77 fam flac font-server foomaticdb fortran gdbm gif gimp-print gpmgstreamer imagemagick imlib ipv6 java jp2 jpeg kde libwww lzw lzw-tiff mad mikmod motif multilib mysql ncurses nls odbc oggvorbis opengl oss pam perl png ppds python qt readline samba scanner sdl slang slp smime ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xine xml2 xmms xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

gentoo root #

but.....

Code:

gentoo root # find / -name stdio.h
find: /proc/20337/task: No such file or directory
/usr/include/gentoo-multilib/default/bits/stdio.h
/usr/include/gentoo-multilib/default/stdio.h
/usr/src/gcc-3.2.3/gcc/fixinc/tests/base/stdio.h
/usr/src/gcc-3.2.3/libstdc++-v3/include/c_compatibility/stdio.h
/usr/src/gcc-3.2.3/libstdc++-v3/include/c_shadow/stdio.h
gentoo root #             


cant find stdio.h!!! Not much chance of compiling anythin g else without that.

I'll wait until tomorrow for so I can re emerge sync.

Thanks
GregW
Back to top
View user's profile Send private message
sprite
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2003
Posts: 143
Location: Camarillo, California (USA)

PostPosted: Thu Feb 03, 2005 8:59 pm    Post subject: Reply with quote

yea.. i as well am having this exact problem... installed glibc, went to install pam that gave me errors, which was correct by a new release.. went to install the new ver of pam, and it errored out, search the forums, it said best way to handle it is re-emerge linux26-headers, which errors out...
_________________
System 0 - Dual Athlon MP 2400+ - 2.6.10-cko3 - gcc 3.3.5 - nptl - x86
System 1 - Dual Opteron 246 - 2.6.10-cko3 - gcc 3.4.3 - nptl - amd64 and never look back..
xfce 4.2.2 across the board..
------------
www.spritefiend.com
Back to top
View user's profile Send private message
grouchy
n00b
n00b


Joined: 25 Jan 2004
Posts: 17

PostPosted: Thu Feb 03, 2005 10:54 pm    Post subject: Reply with quote

-rw-r--r-- 1 root root 27959 Feb 3 10:34 /usr/include/stdio.h

Mine is still in /usr/include and things build. This is after running the update this morning.

Failed emerge?
Back to top
View user's profile Send private message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Thu Feb 03, 2005 10:57 pm    Post subject: Reply with quote

having the same problem....nothing compiles now. Does anybody know how to get the old version back?
_________________
RipOff, a CD Ripper for Linux
Back to top
View user's profile Send private message
shadowman
n00b
n00b


Joined: 09 Jun 2004
Posts: 26

PostPosted: Thu Feb 03, 2005 11:09 pm    Post subject: Me too. Reply with quote

I found that the new glibc installed all header files under /usr/include/gentoo-multilib/default, which the compiler doesn't like for some reason.

I just copied everything there back to /usr/include, and now stuff compiles again. Although I don't notice any adverse effects right now, this has likely messed up my /usr/include directory, but hey, that's what backups are for.
Back to top
View user's profile Send private message
gregw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2004
Posts: 106
Location: Warrington, Cheshire, England

PostPosted: Thu Feb 03, 2005 11:35 pm    Post subject: Re: Me too. [WORKING?] Reply with quote

shadowman wrote:
I found that the new glibc installed all header files under /usr/include/gentoo-multilib/default, which the compiler doesn't like for some reason.

I just copied everything there back to /usr/include, and now stuff compiles again. Although I don't notice any adverse effects right now, this has likely messed up my /usr/include directory, but hey, that's what backups are for.


Hey shadowman.

Glad I'm not the only one with this problem. I've opened a bug report:
https://bugs.gentoo.org/show_bug.cgi?id=80646

I wonder if this is related to the imminent release of 2005.0? some new core system packages?? dunno......

Lets see where this one goes.
Cheers
GregW

UPDATE:

Found this post on bugs.gentoo.org, look at post 10,
https://bugs.gentoo.org/show_bug.cgi?id=80591
Code:

export CPATH=/usr/include/gentoo-multilib/default


emerge -uvD world now executes correclty.

Cheers
GregW
Back to top
View user's profile Send private message
shadowman
n00b
n00b


Joined: 09 Jun 2004
Posts: 26

PostPosted: Fri Feb 04, 2005 12:14 am    Post subject: Hmm Reply with quote

So if you emerge glibc with $CPATH set then everything compiles OK, *even if you unset $CPATH*? Or do you have to keep $CPATH around for stuff to work?

Aside: I have *got* to change the execution time for my emerge sync job in crontab. This is the third time it's caught the portage tree in an unstable state. (You'd think Gentoo developers have better stuff to do at 3 AM than fiddle with the portage tree...)
Back to top
View user's profile Send private message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Fri Feb 04, 2005 12:15 am    Post subject: Reply with quote

Well, for those of you with broken Gentoo installations, here's some help.
You can get a binary package of glibc for amd64 here

http://dev.gentoo.org/~avenj/bins

Just follow the readme and you'll be able to compile stuff again. I have no idea what use flags and cflags were compiled for it, it doesn't have nptl, BUT trying to reinstall the old version of glibc totally busted my system. I wish the developers would go experiment somewhere else rather than the stable portage tree!
_________________
RipOff, a CD Ripper for Linux
Back to top
View user's profile Send private message
gregw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2004
Posts: 106
Location: Warrington, Cheshire, England

PostPosted: Fri Feb 04, 2005 8:24 am    Post subject: Re: Hmm Reply with quote

shadowman wrote:
So if you emerge glibc with $CPATH set then everything compiles OK, *even if you unset $CPATH*? Or do you have to keep $CPATH around for stuff to work?

Hi,
Yes, this only "works" until you logout the environment variable is not saved. I tried emerging fortune-mod to test it and it dramatically fails with the same header files not found.
Quote:

Aside: I have *got* to change the execution time for my emerge sync job in crontab. This is the third time it's caught the portage tree in an unstable state. (You'd think Gentoo developers have better stuff to do at 3 AM than fiddle with the portage tree...)



You and me both!!!!!! Mine does about 4AM GMT
Cheers
GregW
Back to top
View user's profile Send private message
rbaer
n00b
n00b


Joined: 12 Jan 2005
Posts: 3

PostPosted: Fri Feb 04, 2005 8:25 am    Post subject: Solution to repair glibc Reply with quote

Have a look at:
https://bugs.gentoo.org/show_bug.cgi?id=80591

emerge sync
export CPATH=/usr/include/gentoo-multilib/default
emerge glibc
Back to top
View user's profile Send private message
rbaer
n00b
n00b


Joined: 12 Jan 2005
Posts: 3

PostPosted: Fri Feb 04, 2005 8:37 am    Post subject: Note regarding CPATH Reply with quote

Hello,

you don't need to set CPATH permanently, only to get a good glibc back.
After this, you should have /usr/include/inttypes.h
If not, and if you are sure, that you have emerge sync before, then portage is still broken and your rsync mirror still not up to date
Back to top
View user's profile Send private message
gregw
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2004
Posts: 106
Location: Warrington, Cheshire, England

PostPosted: Fri Feb 04, 2005 10:23 am    Post subject: Re: Note regarding CPATH Reply with quote

rbaer wrote:
Hello,

you don't need to set CPATH permanently, only to get a good glibc back.
After this, you should have /usr/include/inttypes.h
If not, and if you are sure, that you have emerge sync before, then portage is still broken and your rsync mirror still not up to date


Hi rbaer,

Great!!!
This worked a treat. Thanks for the info,
GregW
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