| View previous topic :: View next topic |
| Author |
Message |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 3:43 pm Post subject: Fail to emerge glibc-2.8 |
|
|
I was updating the glibc and fail to resolve the some option about "-z relro". How I enable it?
| Quote: |
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... no
configure: error: linker with -z relro support required
*
* ERROR: sys-libs/glibc-2.8_p20080602 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3463: Called eblit-run 'src_compile'
* environment, line 1128: Called eblit-glibc-src_compile
* src_compile.eblit, line 173: Called src_compile
* environment, line 3463: Called eblit-run 'src_compile'
* environment, line 1128: Called eblit-glibc-src_compile
* src_compile.eblit, line 181: Called toolchain-glibc_src_compile
* src_compile.eblit, line 120: Called glibc_do_configure 'nptl'
* src_compile.eblit, line 97: Called die
* The specific snippet of code:
* "${S}"/configure ${myconf} || die "failed to configure glibc"
* The die message:
* failed to configure glibc
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/environment'.
*
* Messages for package sys-libs/glibc-2.8_p20080602:
*
* ERROR: sys-libs/glibc-2.8_p20080602 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3463: Called eblit-run 'src_compile'
* environment, line 1128: Called eblit-glibc-src_compile
* src_compile.eblit, line 173: Called src_compile
* environment, line 3463: Called eblit-run 'src_compile'
* environment, line 1128: Called eblit-glibc-src_compile
* src_compile.eblit, line 181: Called toolchain-glibc_src_compile
* src_compile.eblit, line 120: Called glibc_do_configure 'nptl'
* src_compile.eblit, line 97: Called die
* The specific snippet of code:
* "${S}"/configure ${myconf} || die "failed to configure glibc"
* The die message:
* failed to configure glibc
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/environment'.
*
|
|
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 4:29 pm Post subject: |
|
|
-z relro has been supported since Binutils 2.15.90.0.3 (and is Gentoo-specifically enabled in >=2.18 ).
glibc-2.8_p20080602 depends on a newer version of Binutils.
If you didn't use emerge's "-O" / "--nodeps" option, then post the output of: | Code: | emerge --info
binutils-config -l |
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 5:02 pm Post subject: |
|
|
| Arfrever wrote: | -z relro has been supported since Binutils 2.15.90.0.3 (and is Gentoo-specifically enabled in >=2.18 ).
glibc-2.8_p20080602 depends on a newer version of Binutils.
If you didn't use emerge's "-O" / "--nodeps" option, then post the output of: | Code: | emerge --info
binutils-config -l |
|
I didn't use -O and --nodeps option. This also occur in another machine with a first time install from Gentoo 2008.0.
On my machine I have:
| Quote: |
devbit@neuralbit ~ $ emerge --info
Portage 2.2_rc1 (default/linux/amd64/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r4-x86_64-AMD_Opteron-tm-_Processor_842-with-glibc2.2.5
Timestamp of tree: Thu, 10 Jul 2008 21:36:02 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python: 2.4.4-r7, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.2.5
sys-apps/sandbox: 1.2.18.1-r3
sys-devel/autoconf: 2.13, 2.62-r1
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.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.4
virtual/os-headers: 2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/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/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_PT@euro"
LC_ALL="pt_PT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="pt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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=" "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac aalib accessibility acl alsa amd64 apache2 arts berkdb browserplugin bzip2 cli cracklib crypt cups dbus dri dvd dvdr dvdread ffmpeg flac footmaticdb fortran gdbm gimp gimpprint glitz gnutella gphoto2 gpm gtk hal iconv isdnlog java kqemu ldap lm_sensors logitech-mouse mad midi mmx mmxext mozilla mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam parport pcre pda pdf perl png ppds pppd pt python qt3support readline reflection samba scanner session spl sqlite sse sse2 ssl svg symlink tcpd theora tk unicode usb utempter vorbis xml xorg xvid 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 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt" USERLAND="GNU" VIDEO_CARDS="apm ark dummy fbdev glint nv nvidia vga"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
| Quote: |
devbit@neuralbit ~ $ binutils-config -l
[1] x86_64-pc-linux-gnu-2.18 *
|
|
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 5:27 pm Post subject: |
|
|
| Try: |
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 6:12 pm Post subject: |
|
|
Did it, and try again to emerge glibc, same behavior! |
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 6:38 pm Post subject: |
|
|
Post the output of: | Code: | echo "int main(){return 0;}" > test.c
gcc -Wl,-z,relro -o test test.c |
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 6:43 pm Post subject: |
|
|
| Arfrever wrote: | Post the output of: | Code: | echo "int main(){return 0;}" > test.c
gcc -Wl,-z,relro -o test test.c |
|
No errors return and sucessufully compiled!
| Quote: | devbit@neuralbit ~ $ echo "int main(){return 0;}" > test.c
devbit@neuralbit ~ $ gcc -Wl,-z,relro -o test test.c |
|
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 6:53 pm Post subject: |
|
|
Post the output of: | Code: | | gcc -Wl,--verbose 2>&1 | grep DATA_SEGMENT_RELRO_END |
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 6:55 pm Post subject: |
|
|
| Arfrever wrote: | Post the output of: | Code: | | gcc -Wl,--verbose 2>&1 | grep DATA_SEGMENT_RELRO_END |
|
Output:
| Quote: | devbit@neuralbit ~ $ gcc -Wl,--verbose 2>&1 | grep DATA_SEGMENT_RELRO_END
. = DATA_SEGMENT_RELRO_END (24, .); |
|
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 7:11 pm Post subject: |
|
|
Post the output of: | Code: | | cat /var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/build-*-*-nptl/config.log |
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
Posted: Sat Jul 12, 2008 7:20 pm Post subject: |
|
|
| Arfrever wrote: | Post the output of: | Code: | | cat /var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/build-*-*-nptl/config.log |
|
Is a file with almost 1500 lines, but you can view on the url: http://pastebin.ca/1070268 |
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 7:30 pm Post subject: |
|
|
Post the output of: | Code: | | x86_64-pc-linux-gnu-gcc -v --help 2>&1|grep "z relro" |
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
|
| Back to top |
|
 |
Arfrever Bodhisattva

Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sat Jul 12, 2008 7:38 pm Post subject: |
|
|
| Maybe report a bug. |
|
| Back to top |
|
 |
devbit n00b

Joined: 06 Jul 2007 Posts: 21
|
|
| Back to top |
|
 |
|