Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332945 - cross-armv5tel-softfloat-linux-gnueabi/glibc-2.11.2 build failure due to undefined reference
Summary: cross-armv5tel-softfloat-linux-gnueabi/glibc-2.11.2 build failure due to unde...
Status: RESOLVED DUPLICATE of bug 336914
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 02:37 UTC by Sven E.
Modified: 2010-09-14 13:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log (build.log.bz2,138.75 KB, application/octet-stream)
2010-08-16 02:47 UTC, Sven E.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2010-08-16 02:37:27 UTC
When trying to build a cross toolchain for arm on x64, I am getting undefined reference errors. Building the same stuff on another x86 platform works as expected. Could be related to the glibc being hardened.

Reproducible: Always

Steps to Reproduce:
1. run crossdev --target armv5tel-softfloat-linux-gnueabi

Actual Results:  
The build drops out with undefined reference errors:

/var/tmp/cross/armv5tel-softfloat-linux-gnueabi/portage/cross-armv5tel-softfloat-linux-gnueabi/glibc-2.11.2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.a(setjmp.o): In function `Lrtld_global_ro':
(.text+0x58): undefined reference to `_rtld_global_ro'
/var/tmp/cross/armv5tel-softfloat-linux-gnueabi/portage/cross-armv5tel-softfloat-linux-gnueabi/glibc-2.11.2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.a(__longjmp.o): In function `Lrtld_global_ro':
(.text+0x60): undefined reference to `_rtld_global_ro'


Expected Results:  
Clean build as on my x86 host.

Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.33.5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33.5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5400+-with-gentoo-2.0.1
Timestamp of tree: Sun, 15 Aug 2010 22:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.4.6, 2.5.4-r2, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm geoip gpm hardened iconv idn ipv6 jpeg justify lzma mmx modules mudflap multilib mysql ncurses nls nptl nptlonly ogg openmp pam pcre perl pic png postgres pppd python readline reflection ruby session snmp speex spl sse sse2 ssl sysfs taglib tcpd theora unicode urandom vhosts xattr xml xorg 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 authz_host authz_user auth_digest authn_file autoindex cgi deflate dir env expires ext_filter filter headers include log_config logio mime mime_magic negotiation rewrite setenvif " APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

cross-armv5tel-softfloat-linux-gnueabi/glibc-2.11.2 was built with the following:
USE="hardened (multilib) nls -debug -gd -glibc-omitfp -profile (-selinux) -vanilla" 
CFLAGS="-march=athlon64 -pipe -O2 -fno-strict-aliasing -fno-stack-protector"
CXXFLAGS="-march=athlon64 -pipe -O2 -fno-strict-aliasing"
Comment 1 Sven E. 2010-08-16 02:47:13 UTC
Created attachment 243155 [details]
Full build log
Comment 2 SpanKY gentoo-dev 2010-09-14 13:59:57 UTC

*** This bug has been marked as a duplicate of bug 336914 ***