Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc: relocation against `_dl_sysinfo' in readonly section
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leuenberger
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2003
Posts: 147
Location: Zurich, ZH, Schweiz

PostPosted: Sun Nov 15, 2015 6:11 pm    Post subject: glibc: relocation against `_dl_sysinfo' in readonly section Reply with quote

Hi all,

Since a few weeks I am not able to compile the glibc. I think it is somehow related to the gcc update.

The compiling of the glibc stops with the following message:

Code:

ln -s ld.so /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: warning: relocation against `_dl_sysinfo' in readonly section `.text.compat'.
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: In function `__GI_kill':
(.text+0x13881): undefined reference to `_dl_sysinfo'
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: In function `__sigaltstack':
(.text+0x13e51): undefined reference to `_dl_sysinfo'
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: In function `__getcontext':
(.text+0x24701): undefined reference to `_dl_sysinfo'
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: In function `setcontext':
(.text+0x24746): undefined reference to `_dl_sysinfo'
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: In function `swapcontext':
(.text+0x24864): undefined reference to `_dl_sysinfo'
/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os:(.text+0x45601): more undefined references to `_dl_sysinfo' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: error: ld returned 1 exit status
../Makerules:668: recipe for target '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc.so' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/glibc-2.21/elf'
Makefile:214: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/glibc-2.21'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.21-r1/work/build-x86-x86_64-pc-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.21-r1::gentoo failed (compile phase):
 *   emake failed


Further information:

cat /var/tmp/portage/sys-libs/glibc-2.21-r1/temp/build.log
Code:

 * Package:    sys-libs/glibc-2.21-r1
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc hardened kernel_linux multilib pie ssp userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking gcc-4.7.3-r1-multilib-bootstrap.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.21-r1/work
 * Checking gcc for __thread support ...                                                                                                       [ ok ]
 * Checking kernel version (4.1.4 >= 2.6.32) ...                                                                                               [ ok ]
 * Checking linux-headers version (3.18.0 >= 2.6.32) ...                                                                                       [ ok ]
>>> Unpacking glibc-2.21.tar.xz to /var/tmp/portage/sys-libs/glibc-2.21-r1/work
>>> Unpacking glibc-2.21-patches-5.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.21-r1/work
>>> Source unpacked in /var/tmp/portage/sys-libs/glibc-2.21-r1/work
sandbox:stop  caught signal 2 in pid 1785
sandbox:stop  signal already caught and busy still cleaning up!
Sandboxed process killed by signal: Interrupt


eselect profile show
Code:

hardened/linux/amd64


gcc-config -c
Code:

x86_64-pc-linux-gnu-4.9.3-hardenednopiessp


emerge -pqv '=sys-libs/glibc-2.21-r1::gentoo'
Code:

[ebuild     U ] sys-libs/glibc-2.21-r1 [2.20-r2] USE="hardened (multilib) -debug -gd -nscd (-profile) (-selinux) -suid -systemtap -vanilla"


emerge -pqv '=sys-devel/gcc-4.9.3'
Code:

[ebuild   R   ] sys-devel/gcc-4.9.3  USE="cxx hardened (multilib) nls nptl openmp (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test (-sanitize) -vanilla"


Any ideas why this happens and even more important how to fix it?

Regards,
Reto
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 112
Location: São Paulo, Brasil

PostPosted: Tue Nov 17, 2015 2:16 am    Post subject: Reply with quote

Your issue seems to be because of the hardened profile.

Have a look in this thread: https://forums.gentoo.org/viewtopic-p-7725930.html
Back to top
View user's profile Send private message
leuenberger
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2003
Posts: 147
Location: Zurich, ZH, Schweiz

PostPosted: Tue Nov 17, 2015 6:40 am    Post subject: Reply with quote

Hi alinefr,

Thanks for your answer.

Yes, I was the same problem with the profile. After I updated to gcc 4.9.3 my gcc-config was empty.

By mistake I configured x86_64-pc-linux-gnu-4.9.3-hardenednopiessp instead of x86_64-pc-linux-gnu-4.9.3.

When I changed the setting the compiling of glibc worked perfectly.

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