Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-libs/glibc-2.10.1 build error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Mon Jun 01, 2009 6:19 am    Post subject: sys-libs/glibc-2.10.1 build error Reply with quote

Hi,

While running "emerge -auvD world" glibc fails to emerge with the following messages:

Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4-pre9999/32/crtbeginS.o:(.text+0x95): undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4-pre9999/32/crtbeginS.o:(.text+0xf1): undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4-pre9999/32/crtendS.o:(.text+0x51): undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4-pre9999/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.10.1/work/build-x86-x86_64-pc-linux-gnu-nptl/malloc/libmemusage.so] Error 1


My "emerge --info" is

Code:

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.4-pre9999, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-gentoo-2.0.1
Timestamp of tree: Sat, 30 May 2009 05:15:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8
dev-lang/python:     2.5.4-r2, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-overflow -fno-delete-null-pointer-checks -fstack-protector-all -D_FORTIFY_SOURCE=2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fno-strict-overflow -fno-delete-null-pointer-checks -fstack-protector-all -D_FORTIFY_SOURCE=2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,-z,relro"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gcc-porting /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kdeprefix lame ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex threads tiff truetype unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


and the gcc version I'm using is from the gcc-porting overlay:

Code:

~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.1.2
 [2] x86_64-pc-linux-gnu-4.3.3
 [3] x86_64-pc-linux-gnu-4.3.4-pre9999 *


I tried re-emerging gcc with my present flags, and then compiling glibc with the re-emerged gcc, but that didn't work. Any hints?

Thanks
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Jun 01, 2009 9:06 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
overlay stuff, so moved here
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Mon Jun 01, 2009 9:54 am    Post subject: Reply with quote

Gcc 4.3.4pre9999 is missing the patches to support building GCC with -fstack-protector or -fstack-protector-all.
Any crt* file should not have any __stack_chk_fail* stuff (-fstack-protector*)
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Mon Jun 01, 2009 1:42 pm    Post subject: Reply with quote

So am I to understand that

  • gcc-4.3.4-pre9999 understands the -fstack-protector-all switch, but itself can't be compiled with it, while
  • gcc-4.3.3 does not understand the -fstack-protector-all switch, but can be compiled with it?

What should I do then,

  • compile glibc with gcc-4.3.3 without -fstack-protector-all and then move back to gcc-4.3.4-pre9999, or
  • move back to gcc-4.3.3 entirely?

I had initially moved to gcc-porting's gcc to solve floating point exceptions from nvidia's opengl library.
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Mon Jun 01, 2009 10:51 pm    Post subject: Reply with quote

parthenon wrote:
So am I to understand that

  • gcc-4.3.4-pre9999 understands the -fstack-protector-all switch, but itself can't be compiled with it, while
  • gcc-4.3.3 does not understand the -fstack-protector-all switch, but can be compiled with it?

What should I do then,

  • compile glibc with gcc-4.3.3 without -fstack-protector-all and then move back to gcc-4.3.4-pre9999, or
  • move back to gcc-4.3.3 entirely?

I had initially moved to gcc-porting's gcc to solve floating point exceptions from nvidia's opengl library.

All >gcc-4.1 do understand -fstack-protector* but it only gcc's that have the gentoo's pie patch that support that gcc is compiled with
-fstack-protector*
Remove -fstack-protector* when you compile gcc from the gcc-porting overlay then you can use it to build stuff.
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
parthenon
n00b
n00b


Joined: 05 Aug 2008
Posts: 21
Location: USA

PostPosted: Thu Jun 04, 2009 2:32 am    Post subject: Reply with quote

OK, so I

  • used
    Code:
     CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
    to compile gcc from gcc-porting, then
  • used
    Code:
     CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fno-strict-overflow -fno-delete-null-pointer-checks -fstack-protector-all -D_FORTIFY_SOURCE=2"
    after that to compile glibc-2.10.1. This time, emerge aborts during configure with the message
    Code:

    checking for .preinit_array/.init_array/.fini_array support... no                                                                             
    configure: error: Need linker with .init_array/.fini_array support.

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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