Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157733 - glibc-2.5 build error
Summary: glibc-2.5 build error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 154046 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-10 06:42 UTC by Matthew Kern
Modified: 2007-02-11 15:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kern 2006-12-10 06:42:01 UTC
while doing emerge -va glibc (in the top part returns:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-libs/glibc-2.5 [2.3.6-r4] USE="nls -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) (-nptl) (-nptlonly) -profile (-selinux) (-erandom%)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
), I get:
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/xbootparam_prot.stmp] Segmentation fault
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/rpcsvc/bootparam_prot.stmp] Segmentation fault
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.5 failed.
Call stack:
  ebuild.sh, line 1576:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  glibc-2.5.ebuild, line 1119:   Called toolchain-glibc_src_compile
  glibc-2.5.ebuild, line 235:   Called die

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
.

poly-p man
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 07:12:55 UTC
Can you reproduce it, i.e. does it fail again at *exactly* the same place? Also emerge --info missing.
Comment 2 Matthew Kern 2006-12-10 07:56:50 UTC
emerge --info :
Portage 2.1.2_rc3-r1 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r4, 2.6.19-gentoo-r1 i686)
=================================================================
System uname: 2.6.19-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.1
Last Sync: Sun, 10 Dec 2006 13:00:03 +0000
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 aalib acpi alsa apm arts avi berkdb bitmap-fonts bootsplash bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd fam firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile hal iconv ieee1394 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ libwww mad mikmod mmx mng motif mozsvg mp3 mpeg ncurses nls nvidia offensive ogg opengl openssh oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection rsh rss sdl sdl-sound seamonkey session smp spell spl sse sse-filters sse2 ssl svg tcpd timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis wifi win32codecs x86 xcomposite xine xml xorg xscreensaver xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Sorry about that :)

It always bugs out in the same spot

poly-p man
Comment 3 SpanKY gentoo-dev 2006-12-10 11:21:28 UTC
CHOST=i386
CFLAGS=-march=pentium4

this obviously wont fly, fix your system
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-02-05 21:28:09 UTC
*** Bug 154046 has been marked as a duplicate of this bug. ***
Comment 5 Jim Beckner 2007-02-07 03:23:43 UTC
I get the exact same error in the exact same spot.  Reproduced 2 times.  

emerge --info:

Portage 2.1.2-r8 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r5, 2.6.19-gentoo-r5kg4ysy i686)
=================================================================
System uname: 2.6.19-gentoo-r5kg4ysy i686 Genuine Intel(R) CPU 2.66GHz
Gentoo Base System release 1.12.6
Timestamp of tree: Tue, 06 Feb 2007 17:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib abook acpi aim alsa aoss apache2 apm artworkextra bash-completion bitmap-fonts bittorrent bonjour branding bzip2 cdda cddb cdr chm cli console cpudetection cracklib crypt css cups dbus dhcp directfb divx dlloader dri dvd dvdr emboss encode excel exif fat fax finger firefox foomaticdb fortran gaim gdbm gif gimp gimpprint gnome gpm grammar gstreamer gtalk gtk gtk2 hal hddtemp httpd i8x0 iconv imap imlib isdnlog java javascript jpeg libcaca libg++ libnotify libwww logrotate mad maildir math midi mikmod motif mozbranding moznocompose moznoirc moznomail mp3 mpeg msn multiuser ncurses nls nsplugin ntfs numeric offensive ogg opengl oss pam pcmcia pcre pdf perl php png ppds pppd python qt3support qt4 quicktime quotas rar readline real realmedia reflection reiser4 reiserfs samba scanner sdl session sftp spell spl ssl startup-notification stream symlink tagwriting tcpd thesaurus thunderbird tiff truetype truetype-fonts type1-fonts underscores usb userlocales vcd videos vim vim-syntax vlm vorbis wifi wma wmp wordperfect x86 xfs xinerama xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 SpanKY gentoo-dev 2007-02-07 04:27:52 UTC
what's your point ?  you've verified that by using invalid values in make.conf, glibc crashes ... same as the original reporter
Comment 7 Nick Fankhauser 2007-02-07 11:06:23 UTC
I use 
CFLAGS="-O2 -march=pentium4m -pipe"
CHOST="i386-pc-linux-gnu"
and get the same error! Is something wrong with these too? (I think not...)

(In reply to comment #6)
> what's your point ?  you've verified that by using invalid values in make.conf,
> glibc crashes ... same as the original reporter
> 

Comment 8 Matreju 2007-02-07 12:12:17 UTC
Notresolved. Same problem here
-O2 -march=pentium3 -pipe
i386

Same segmentation fault
Comment 9 Tim Ryan 2007-02-07 14:08:41 UTC
(In reply to comment #6)
> what's your point ?  you've verified that by using invalid values in make.conf,
> glibc crashes ... same as the original reporter
> 

Instead of being a smart-ass, why don't you tell them what is wrong with their setup? They obviously don't know, and I'm not sure. I BELIEVE that CHOST="i686-pc-linux-gnu" will fix the issue.
Comment 10 Kevin F. Quinn (RETIRED) gentoo-dev 2007-02-07 15:09:24 UTC
(In reply to comment #9)
> (In reply to comment #6)
> > what's your point ?  you've verified that by using invalid values in make.conf,
> > glibc crashes ... same as the original reporter
> > 
> 
> Instead of being a smart-ass, why don't you tell them what is wrong with their
> setup? They obviously don't know, and I'm not sure. I BELIEVE that
> CHOST="i686-pc-linux-gnu" will fix the issue.

He did say, quite clearly - see comment #3.

There's no such thing as a 386 pentium3 or 386 pentium4 - both are 686.

CHOST and march have to be compatible.
Comment 11 Tim Ryan 2007-02-07 16:19:51 UTC
(In reply to comment #10) 
> He did say, quite clearly - see comment #3.
> 
> There's no such thing as a 386 pentium3 or 386 pentium4 - both are 686.
> 
> CHOST and march have to be compatible.
> 
Obviously I should not have been so rude. But what is clear to you and I is not so clear to others. If it had been clear I don't think the other comments with the same issue would have been posted. I don't think it is difficult to clearly show what needs to be changed to fix an issue. That is how people learn.

I should probably also say the if you are going to change your CHOST setting, you should follow the upgrade guide! It is not a minor change.
Comment 12 Doug Dressler 2007-02-10 01:00:09 UTC
(In reply to comment #0)
> while doing emerge -va glibc (in the top part returns:
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild     U ] sys-libs/glibc-2.5 [2.3.6-r4] USE="nls -build -glibc-compat20
> -glibc-omitfp -hardened (-multilib) (-nptl) (-nptlonly) -profile (-selinux)
> (-erandom%)" 0 kB
> 
> Total: 1 package (1 upgrade), Size of downloads: 0 kB
> ), I get:
> make[2]: ***
> [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/xbootparam_prot.stmp]
> Segmentation fault
> make[2]: *** Waiting for unfinished jobs....
> make[2]: ***
> [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/rpcsvc/bootparam_prot.stmp]
> Segmentation fault
> make[2]: Leaving directory
> `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/sunrpc'
> make[1]: *** [sunrpc/others] Error 2
> make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
> make: *** [all] Error 2
> 
> !!! ERROR: sys-libs/glibc-2.5 failed.
> Call stack:
>   ebuild.sh, line 1576:   Called dyn_compile
>   ebuild.sh, line 945:   Called src_compile
>   glibc-2.5.ebuild, line 1119:   Called toolchain-glibc_src_compile
>   glibc-2.5.ebuild, line 235:   Called die
> 
> !!! make for default failed
> !!! If you need support, post the topmost build error, and the call stack if
> relevant.
> .
> 
> poly-p man
> 

(In reply to comment #6)
> what's your point ?  you've verified that by using invalid values in make.conf,
> glibc crashes ... same as the original reporter
> 

OK, I just finished doing a brand new install using the 2006.1 minimal CD and synced earlier today. I made no changes of any sort to CFLAGS or CHOST.

I did put nptl and nptlonly in my USE flags. It turns out that I also have the no_nptl profile. It is apparently the default profile since I made no changes to that either. Is this a recent change to default to the no_nptl profile which I should have read about somewhere, or is it a bug?
Comment 13 Doug Dressler 2007-02-10 01:14:31 UTC
(In reply to comment #12)
> (In reply to comment #0)
> > while doing emerge -va glibc (in the top part returns:
> > These are the packages that would be merged, in order:
> > 
> > Calculating dependencies... done!
> > [ebuild     U ] sys-libs/glibc-2.5 [2.3.6-r4] USE="nls -build -glibc-compat20
> > -glibc-omitfp -hardened (-multilib) (-nptl) (-nptlonly) -profile (-selinux)
> > (-erandom%)" 0 kB
> > 
> > Total: 1 package (1 upgrade), Size of downloads: 0 kB
> > ), I get:
> > make[2]: ***
> > [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/xbootparam_prot.stmp]
> > Segmentation fault
> > make[2]: *** Waiting for unfinished jobs....
> > make[2]: ***
> > [/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i386-pc-linux-gnu-linuxthreads/sunrpc/rpcsvc/bootparam_prot.stmp]
> > Segmentation fault
> > make[2]: Leaving directory
> > `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/sunrpc'
> > make[1]: *** [sunrpc/others] Error 2
> > make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
> > make: *** [all] Error 2
> > 
> > !!! ERROR: sys-libs/glibc-2.5 failed.
> > Call stack:
> >   ebuild.sh, line 1576:   Called dyn_compile
> >   ebuild.sh, line 945:   Called src_compile
> >   glibc-2.5.ebuild, line 1119:   Called toolchain-glibc_src_compile
> >   glibc-2.5.ebuild, line 235:   Called die
> > 
> > !!! make for default failed
> > !!! If you need support, post the topmost build error, and the call stack if
> > relevant.
> > .
> > 
> > poly-p man
> > 
> 
> (In reply to comment #6)
> > what's your point ?  you've verified that by using invalid values in make.conf,
> > glibc crashes ... same as the original reporter
> > 
> 
> OK, I just finished doing a brand new install using the 2006.1 minimal CD and
> synced earlier today. I made no changes of any sort to CFLAGS or CHOST.
> 
> I did put nptl and nptlonly in my USE flags. It turns out that I also have the
> no_nptl profile. It is apparently the default profile since I made no changes
> to that either. Is this a recent change to default to the no_nptl profile which
> I should have read about somewhere, or is it a bug?
> 

My apologies, I think this forum thread clears up the issue people are having:
http://forums.gentoo.org/viewtopic-t-537944.html
Comment 14 Dan Coats 2007-02-10 14:56:37 UTC
I'm quite active in the forums and just want to mention that there is an abundance of people out there recently that have installed with these latest stage3cd's that end up with borked systems and require CHOST changes. Why is this happening and what can people or the dev's do to help it not to happen so commonly. When I started gentoo, it could have been blamed on the user setting it, but if I understand correctly the way people are asked to install these days, they can't change it and they have to hope that the cd did this for them correctly?
Comment 15 SpanKY gentoo-dev 2007-02-10 18:23:53 UTC
because they picked the wrong stage tarball
Comment 16 Dan Coats 2007-02-11 15:04:39 UTC
Maybe it used to be documented better in the older handbook or something , but It seems too easy to grab the wrong thing, there really has to be a better way to insure that people aren't spending the time installing gentoo the wrong way.Gentoo is too good a project and too well documented to have people simply doing it wrong  at the start.