Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc-2.11.2 -- compilation errors [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ial
Apprentice
Apprentice


Joined: 27 Dec 2008
Posts: 161
Location: Warsaw (Warszawa)

PostPosted: Fri Jun 25, 2010 4:46 pm    Post subject: glibc-2.11.2 -- compilation errors [SOLVED] Reply with quote

This the first time ever I have had problem with compiling glibc...
Code:
 # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4
 [2] x86_64-pc-linux-gnu-4.4.3 *

Code:
a - login/getutid_r.os
a - login/getutline_r.os
a - login/utmp_file.os
a - login/utmpname.os
a - login/updwtmp.os
a - login/getpt.os
a - login/grantpt.os
a - login/unlockpt.os
a - login/ptsname.os
a - login/setutxent.os
a - login/getutxent.os
a - login/endutxent.os
a - login/getutxid.os
a - login/getutxline.os
a - login/pututxline.os
a - login/utmpxname.os
a - login/updwtmpx.os
a - login/getutmpx.os
a - login/getutmp.os
a - elf/dl-iteratephdr.os
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/dl-tsd.os
a - elf/dl-vdso.os
: /var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.a
x86_64-pc-linux-gnu-gcc -Wl,-O1  -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,-z,combreloc  -nostdlib -nostartfiles -r -o /var/tmp/portage/sys-lib
/var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__lib
/var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/dl-allobjs.os:(.bss+0xe8): first defined here
/var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc_pic.a(dl-addr.os): In function `_dl_addr_inside_object':
dl-addr.c:(.text+0x0): multiple definition of `_dl_addr_inside_object'
/var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/dl-allobjs.os:(.text+0xff80): first defined here
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.11.2/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/librtld.map] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.11.2/work/glibc-2.11.2/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.11.2/work/glibc-2.11.2'
make: *** [all] Error 2
* ERROR: sys-libs/glibc-2.11.2 failed:
*   make for amd64 failed
*
* Call stack:
*           ebuild.sh, line   54:  Called src_compile
*         environment, line 3860:  Called eblit-run 'src_compile'
*         environment, line 1249:  Called eblit-glibc-src_compile
*   src_compile.eblit, line  199:  Called src_compile
*         environment, line 3860:  Called eblit-run 'src_compile'
*         environment, line 1249:  Called eblit-glibc-src_compile
*   src_compile.eblit, line  207:  Called toolchain-glibc_src_compile
*   src_compile.eblit, line  123:  Called die
* The specific snippet of code:
*              make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
*
* If you need support, post the output of 'emerge --info =sys-libs/glibc-2.11.2',
* the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.11.2'.
* The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.11.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.11.2/temp/environment'.
* S: '/var/tmp/portage/sys-libs/glibc-2.11.2/work/glibc-2.11.2'

>>> Failed to emerge sys-libs/glibc-2.11.2, Log file:


Code:
# emerge --info =sys-libs/glibc-2.11.2
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.32-gentoo-r7 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 24 Jun 2010 16:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -fstack-protector -Os  -pipe -DNDEBUG -DG_DISABLE_ASSERT  -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -fstack-protector -Os -s -pipe -DNDEBUG -DG_DISABLE_ASSERT"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  http://gentoo.linux.no http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo   ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://mirrors.serverftp.org/gentoo ftp://ftp.easynet.nl/mirror/gentoo"
LDFLAGS="-Wl,-O1  -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,-z,combreloc"
LINGUAS="en_GB ru pl"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi alsa amd64 aspell bash-completion berkdb bittorrent bluetooth bonobo bzip2 cairo cddb cdr cli clucene crypt css cxx dbus dlloader dri dts dvd dvdr emboss encode exif fbcon ffmpeg firefox flac foomaticdb ftptcpd gd gdbm ggi gif gpm gtk gtk2 hddtemp i8x0 iconv imlib intel javascript jpeg jpeg2k kdexdeltas lcms ldap libcaca libnotify lm_sensors lzma mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly opengl openmp pango pcre pdf perl png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection rtc ruby sdl session slang sndfile speex spell spl sqlite sse sse2 ssl ssp ssse3 svg sysfs tcltk tcpd tgif theora threads tiff truetype unicode usb v4l vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0 emu10k1" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB  ru pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by ial on Sat Jun 26, 2010 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1896
Location: 127.0.0.1

PostPosted: Fri Jun 25, 2010 5:37 pm    Post subject: Reply with quote

Code:

ccache version 2.4 [enabled]

You should try to disable it.
Back to top
View user's profile Send private message
ial
Apprentice
Apprentice


Joined: 27 Dec 2008
Posts: 161
Location: Warsaw (Warszawa)

PostPosted: Fri Jun 25, 2010 6:54 pm    Post subject: Reply with quote

you know what? I have had many times such advices but ccache never turned out to be culprit!
Contrary to this, minutes ago I have tried simpler flags in my /etc/make.conf
Code:
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
and afterwards glibc has compiled...
But I would like my optimisations back, which of them:
Code:
CXXFLAGS="-march=nocona -fstack-protector -O2 -s -pipe -DNDEBUG -DG_DISABLE_ASSERT"
CFLAGS="-march=nocona -fstack-protector -O2  -pipe -DNDEBUG -DG_DISABLE_ASSER  -fomit-frame-pointer"
is prohibited here, how do you think?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 25, 2010 7:29 pm    Post subject: Reply with quote

OMG optimization would help greatly here.

Seriously now, http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap3
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ial
Apprentice
Apprentice


Joined: 27 Dec 2008
Posts: 161
Location: Warsaw (Warszawa)

PostPosted: Fri Jun 25, 2010 7:48 pm    Post subject: Reply with quote

I have just tested -fstack-protector was the culprit, without it everything compiled.
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Jun 26, 2010 7:53 am    Post subject: Reply with quote

ial wrote:
I have just tested -fstack-protector was the culprit, without it everything compiled.


That sounds right. If you want to use it, rather switch to the hardened profile. Anyway, it's not meant to be included explicitly in C/CXXFLAGS afaik.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
Bircoph
Developer
Developer


Joined: 27 Jun 2008
Posts: 261
Location: Moscow

PostPosted: Sun Jul 18, 2010 2:18 pm    Post subject: Reply with quote

I compiled glibc for ages with -fstack-protector and had no problems until now.
It seems to be a problem with 2.11.2, because programs *should* compile fine
with -fstack-protector even without hardened profile. Support for such setups from
Gentoo team is another question.
_________________
Per aspera ad astra!
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: Sun Jul 18, 2010 5:42 pm    Post subject: Reply with quote

Building Glibc with -fstack-protector or -fstack-protector-all is not supported upstrem.
sys-libs/glibc compile fails with -fstack-protector and -fstack-protector-all
See the URL link in that bug.
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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