Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159818 - glibc-2.4-r4 failed to compile (segfault @ xbootparam_prot.stmp) with -Wl,--export-dynamic
Summary: glibc-2.4-r4 failed to compile (segfault @ xbootparam_prot.stmp) with -Wl,--e...
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:
Depends on:
Blocks:
 
Reported: 2007-01-03 00:44 UTC by Stefan Struhs
Modified: 2007-01-07 15:42 UTC (History)
0 users

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 Stefan Struhs 2007-01-03 00:44:10 UTC
Error is reproducable no matter what compiler parameters used (-O0, -O1, -02, etc.):
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Speicherzugriffsfehler
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4/sunrpc'
make[1]: *** [sunrpc/others] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4'
make: *** [all] Fehler 2

emerge --info:
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.6
Last Sync: Wed, 03 Jan 2007 01:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
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="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-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="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,--export-dynamic"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/home/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/overlays/local /usr/local/overlays/gentoo-de /usr/local/overlays/bmg-main/bmg-main /usr/local/overlays/fluidportage/trunk /usr/local/overlays/vmware/trunk /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac aalib ac3 acpi activefilter adabas alsa alsa_cards_intel8x0 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr ansi apache2 apic apm applet arts artworkextra asf audiofile automount bash-completion berkdb binary-drivers binfilter bitmap-fonts bzip2 bzlib ccache cdda cddb cdinstall cdparanoia cdr cdrom cgi chipcard chipcard2 chroot clamav clamd cli cnijtools cracklib crypt css ctrlmenu cups dbase dhcp divx divx4linux dmi dpms dri dvd dvdr dvdread eds effects elibc_glibc emboss emf emoticon enable-hbci enable-java encode esd evo evolution exif extramodules faad fame fat fbcon fbsplash ffmpeg fglrx firebird firefox flac flash foomaticdb fortran ft ftp fuse fusion gdbm geldkarte gif gimp gimpprint glut gnome gnome-print gnomecanvas gnomedb gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile gzip hal hbci iconv icq id3 ieee1394 imagemagick imap imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse interbase iodbc ip4200 ipv6 isdnlog java javacomm javascript jbig jpeg jpeg2k kernel_linux lame libclamav libg++ libsamplerate libwww linguas_de linguas_en lm_sensors logitech-mouse lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir matroska mbox mcal mdb memlimit mikmod mime mjpeg mmx mmxext mng mono motif mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer music mysql nautilus ncurses net network nfs nls nntp nptl nptlonly nsplugin ntfs ntlm ntp oav obdc odbc office ofx ogg on-the-fly-crypt openal opengl openntpd openssh openssl osc oss pam parse-clocks pascal pcntl pcre pda pdf perl player plugin pmu png pop posix postgres ppds pppd pregen print procmail ps python qt qt3 qt4 quicktime quotas radeon rar readline real reflection reiserfs rewrite rplay samba scanner scp sdl sdl-sound sendfile session sftp sftplogging shorten smartcard smine sndfile snmp sockets socks5 softquota songdb sox spamassassin speex spell spl spreadsheet sse ssl stroke subject-rewrite submenu subp subtitles subversion svg svga svgz swat symlink sysfs sysvipc szip tagwriting tcpd tcsim tga theora thesaurus tidy tiff tls tokenizer totem transcode trayicon truetype truetype-fonts type1-fonts typel-fonts uclibc-compat udev unicode unzip usb userland_GNU userlocales utf8 v4l v4l2 vcd vfat 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 videos virus-scan vorbis vorbis-psy wddx webservices widescreen win32codecs winbind wma wmf x264 xanim xbase xchatdccserver xface xgetdefault xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsettings xsl xslt xv xvid xvmc yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-01-03 01:47:00 UTC
the thing is with that error, it could be caused by many things ... the only thing it tells you is that the glibc failed to compile properly

build it up with debugging enabled and throw gdb at the process
Comment 2 Stefan Struhs 2007-01-03 07:25:51 UTC
(In reply to comment #1)
> the thing is with that error, it could be caused by many things ... the only
> thing it tells you is that the glibc failed to compile properly
> 
> build it up with debugging enabled and throw gdb at the process
> 

Hi,

changed /etc/make.conf as follows:
1. added -g and -ggdb to CFLAGS
2. added debug to USE
3. added nostrip and splitdebug to FEATURES

Tried to gdb --arg /usr/bin/emerge `-1 linux-headers binutils gcc glibc`
and then run produced the following error:
        Starting program:  
        No executable file specified.
        Use the "file" or "exec-file" command.

How can I "throw gdb at the process" if I can't run emerge with gdb?

Thanks in advance!

Regards,
Stefan Struhs
Comment 3 Stefan Struhs 2007-01-07 15:35:25 UTC
(In reply to comment #1)
> the thing is with that error, it could be caused by many things ... the only
> thing it tells you is that the glibc failed to compile properly
> 
> build it up with debugging enabled and throw gdb at the process
> 

The thing with this bug is that it seems that LDFLAGS="-Wl,--export-dynamic" (see emerge --info) does not work with all versions of glibc according to as thread on forums.gentoo.org. Removing LDFLAGS from make.conf solved the problem. In addition I was able to enhance my CFLAGS.

Anyhow, I think it is a bug in the ebuild or make file (don't know where exactly). You should at least give a warning about using a user defined LDFLAGS or better about this special LDFLAG.

Regards,
Stefan Struhs
Comment 4 SpanKY gentoo-dev 2007-01-07 15:42:28 UTC
sorry, didnt see you had custom LDFLAGS ... there's absolutely no reason at all you should be enabling that globally on your system, so remove it