Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73376 - glibc fails to compile after emerge -u gcc-3.4.3-r1
Summary: glibc fails to compile after emerge -u gcc-3.4.3-r1
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-04 13:23 UTC by N Addy
Modified: 2004-12-11 15:56 UTC (History)
1 user (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 N Addy 2004-12-04 13:23:45 UTC
make[3]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3/elf'
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -r -o /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os '-Wl,-(' /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/dl-allobjs.os /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/rtld-libc.a -lgcc '-Wl,-)' \
          -Wl,-Map,/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os.map
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -Wl,-z,now      \
  -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,--verbose 2>&1 |        \
          LC_ALL=C \
          sed -e '/^=========/,/^=========/!d;/^=========/d'    \
              -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
          > /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/ld.so.lds
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -o /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/ld.so\          -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,-z,now  \
          /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os -Wl,--version-script=/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/ld.map         \
          -Wl,-soname=ld-linux.so.2 -T /var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/ld.so.lds
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf39): In function `dl_main':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x20ea): In function `.L1107':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x210a): In function `.L1107':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x63a2): In function `open_path':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x65e8): In function `open_path':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x6634): In function `open_path':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x6656): In function `open_path':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x693f): In function `_dl_map_object':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x6a98): In function `_dl_map_object':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x6ab8): In function `_dl_map_object':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x6ba2): In function `_dl_map_object':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x829e): In function `_dl_lookup_symbol_x':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x845c): In function `_dl_lookup_symbol_x':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x847c): In function `_dl_lookup_symbol_x':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x92fe): In function `_dl_reloc_bad_type':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xbcf4): In function `_dl_signal_error':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xca02): In function `_dl_debug_vdprintf':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xcb7e): In function `_dl_debug_vdprintf':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xcb9e): In function `_dl_debug_vdprintf':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd091): In function `match_symbol':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd1e8): In function `match_symbol':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd23d): In function `match_symbol':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd259): In function `match_symbol':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd4ec): In function `_dl_check_map_versions':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd65c): In function `_dl_check_map_versions':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd678): In function `_dl_check_map_versions':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xd9d0): In function `_dl_start_profile':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xdccd): In function `_dl_start_profile':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xdce9): In function `_dl_start_profile':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf154): In function `_dl_get_origin':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf1f4): In function `_dl_get_origin':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf214): In function `_dl_get_origin':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf277): In function `_dl_get_origin':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf6c0): In function `_dl_sysdep_start':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf957): In function `.L9':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xf979): In function `.L9':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xfb69): In function `_dl_show_auxv':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xfc6b): In function `_dl_show_auxv':
: undefined reference to `__guard'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0xfc8b): In function `_dl_show_auxv':
: undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/librtld.os(.text+0x109fb): In function `__assert_perror_fail':
: undefined reference to `__guard'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20041102/work/build-i686-pc-linux-gnu-linuxthreads/elf/ld.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20041102 failed.
!!! Function src_compile, Line 643, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1. Updated gcc from 3.4.3 to 3.4.3-r1
2. "emerge glibc"
3.

Actual Results:  
glibc failed

Expected Results:  
glibc should compile

Note that glibc compiled fine after reverting gcc to 3.3.4.

# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-ck3 i686)
=================================================================
System uname: 2.6.9-ck3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1,
Jun  5 2004, 00:28:26)]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.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/lib/mozilla/defaults/pref /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/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups emacs encode esd f77
fam foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick
imlib java jpeg junit libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses
nls odbc oggvorbis opengl oss pam pdflib perl png postgres python quicktime
readline ruby sdl session slang spell ssl svga tcltk tcpd tetex tiff truetype
x86 xml xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-12-05 00:17:01 UTC
please emerge gcc-config-1.3.7-r5, run gcc-config for your target toolchain, unset GCC_SPECS in your env, and then source /etc/profile

that should do it
Comment 2 David Norris 2004-12-05 08:55:24 UTC
I'm having the same problem. And it seems from searching the forums that others are, too. Could we re-open this bug please?

I just followed the suggested steps to update gcc-config, and still got the exact same __guard and __stack_smash_handler errors.

I'm using gcc-3.4.3-r1, gcc-config 1.3.7-r5 (with the x86_64-pc-linux-gnu-3.4.3 profile active) and glibc 2.3.4.20040808-r1 (trying to install 20041102).

Here's my emerge info:

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  3 2004, 15:29:50)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.6.3, 1.7.9, 1.9.3, 1.5, 1.4_p6
sys-devel/binutils:  2.15.90.0.1.1-r3, 2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -pipe -funroll-loops -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi aim alsa amd64 apache2 apm avi bash-completion berkdb bitmap-fonts bonobo bzlib cdr crypt ctype cups directfb divx4linux dvd dvdr encode esd ethereal f77 fam fftw flac fortran ftp gd gif gnome gpm gstreamer gtk gtk2 gtkhtml guile hardened icq imlib innodb ipv6 java jikes joystick jp2 jpeg junit lzw lzw-tiff mad mozilla mpeg multilib mysql mysqli ncurses nls nocd offensive oggvorbis openal opengl oscar oss pam pcre pdflib perl png posix postgres python qt quicktime readline samba sdl shared sharedmem soap sockets spell ssl svg tcpd tidy tiff truetype unicode usb userlocales vhosts videos wxwindows xine xinerama xml xml2 xmms xpm xrandr xv xvid yahoo zlib"

I'll hold off posting my build log because it really is identical to N Addy's. I will gladly post the full log, though, if needed.

Thanks!
Comment 3 N Addy 2004-12-05 11:50:58 UTC
I've been able to successfully install glibc now but I'm still getting errors on execution of certain programs.

Here are the steps I've taken:

1)  "emerge -u gcc-config" (to v.1.3.7-r5)
2)  Verified "GCC_SPECS" was unset (it did not even exist)
3)  "env-update" and "source /etc/profile"
4)  "emerge gcc" (reinstalled gcc-3.4.3-r1)
5)  "emerge -C linux26-headers"  (may not have been necessary, but...)
6)  "emerge linux26-headers"  (reinstalled v.2.6.8.1-r1
7)  "emerge glibc"  (reinstalled v.2.3.4.20041102)
8)  "prelink -afmR"  (again, just in case)
9)  Reboot

All of the above went well but on reboot I still get __guard errors.  mysql is a good example:

# /etc/init.d/mysql start
/sbin/runscript: relocation error: /sbin/runscript: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference

Is this related to this bug or another?

Comment 4 N Addy 2004-12-05 12:45:09 UTC
Never mind.  I see that this side of the issue is covered in bug# 73326.
Comment 5 Robert Muchacki (RETIRED) gentoo-dev 2004-12-06 10:34:14 UTC
I made emerge procps and it started to work normaly.
Comment 6 David Norris 2004-12-11 15:56:13 UTC
This works for me now, too. I do have procps installed (v. 3.2.4). I don't know if it was there earlier when I had problems. I didn't install procps manually, but maybe something I emerged in the last few days brought it in.