Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483406 - sys-libs/glibc-2.17 - configure: error: Need linker with .init_array/.fini_array support ( /temp/ccchvL21.o: In function `foo': conftest.c:(.text+0x23): undefined reference to `__stack_chk_fail' )
Summary: sys-libs/glibc-2.17 - configure: error: Need linker with .init_array/.fini_ar...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-02 16:17 UTC by Martin Mokrejš
Modified: 2013-09-03 08:24 UTC (History)
0 users

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


Attachments
build.log (build.log,11.65 KB, text/plain)
2013-09-02 16:17 UTC, Martin Mokrejš
Details
config.log (config.log,27.80 KB, text/plain)
2013-09-02 16:17 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2013-09-02 16:17:34 UTC
Created attachment 357688 [details]
build.log

Hi,
  maybe you will say that this is a dupe of bug #374135 but I just don't see what is wrong with my CFLAGS/LDFLAGS.


 * glibc-2.17-patches-7.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                        [ ok ]
[44925 refs]
make -j3 -s glibc-test 
make -j3 -s glibc-test 
[44925 refs]
[26176 refs]
[45091 refs]
>>> Unpacking source...
 * Checking gcc for __thread support ...                                                                                                                                                                                    [ ok ]
 * Checking kernel version (3.10.9 >= 2.6.16) ...                                                                                                                                                                           [ ok ]
 * Checking linux-headers version (3.8.0 >= 2.6.16) ...                                                                                                                                                                     [ ok ]
>>> Unpacking glibc-2.17.tar.xz to /mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work
>>> Unpacking glibc-2.17-patches-7.tar.bz2 to /mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work
 * Applying Gentoo Glibc Patchset 2.17-7 ...

[cut]

>>> Compiling source in /mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17 ...
 * Building glibc for ABIs: x86 amd64

 *             ABI:   x86
 *          CBUILD:   x86_64-pc-linux-gnu
 *           CHOST:   x86_64-pc-linux-gnu
 *         CTARGET:   x86_64-pc-linux-gnu
 *      CBUILD_OPT:   i686-pc-linux-gnu
 *     CTARGET_OPT:   i686-pc-linux-gnu
 *              CC:   x86_64-pc-linux-gnu-gcc -m32
 *         ASFLAGS:   
 *          CFLAGS:   -pipe -march=corei7-avx -fstack-protector-all -O2 -fno-strict-aliasing
 *        CPPFLAGS:   
 *        CXXFLAGS:   -pipe -march=corei7-avx -fstack-protector-all -O2 -fno-strict-aliasing
 *         LDFLAGS:   -Wl,-O1 -Wl,--as-needed
 *       Manual CC:   x86_64-pc-linux-gnu-gcc -m32

 * Configuring GLIBC for nptl
[44933 refs]
/mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17/configure --disable-stackguard-randomization --enable-add-ons=nptl,c_stubs,libidn,ports --enable-kernel=2.6.16 --without-selinux --without-cvs --enable-bind-now --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --disable-profile --with-gd --with-headers=/usr/include --prefix=/usr --libdir=/usr/lib32 --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib32/misc/glibc --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 2.17 p7 --enable-obsolete-rpc --disable-systemtap --disable-nscd

[cut]

checking for autoconf... autoconf
checking whether autoconf works... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.

[cut]

checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.
 * ERROR: sys-libs/glibc-2.17 failed (compile phase):
 *   failed to configure glibc
 * 
 * Call stack:
 *           ebuild.sh, line   93:  Called src_compile
 *         environment, line 3335:  Called eblit-run 'src_compile'
 *         environment, line  884:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  245:  Called src_compile
 *         environment, line 3335:  Called eblit-run 'src_compile'
 *         environment, line  884:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  253:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  151:  Called glibc_do_configure 'nptl'
 *   src_compile.eblit, line  113:  Called die
 * The specific snippet of code:
 *      "$@" || die "failed to configure glibc"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.17'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.17'`.
 * The complete build log is located at '/mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/temp/build.log'.
 * The ebuild environment file is located at '/mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/temp/environment'.
 * Working directory: '/mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl'
 * S: '/mnt/1TB/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17'


# emerge --info
Portage 2.1.12.5 (default/linux/amd64/13.0, gcc-4.6.4, glibc-2.17, 3.10.9-default-pciehp x86_64)
=================================================================
System uname: Linux-3.10.9-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16304136 total,   7769252 free
KiB Swap:    4998972 total,   4127336 free
Timestamp of tree: Mon, 02 Sep 2013 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.5.4-r5, 2.6.8-r3, 2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.5.4, 4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gentoo-haskell science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -mpclmul -mpopcnt -march=corei7-avx -fstack-protector-all"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -mpclmul -mpopcnt -march=corei7-avx -fstack-protector-all"
DISTDIR="/mnt/1TB/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
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 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/1TB/var/tmp"
PORTDIR="/mnt/1TB/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 amr apache apache2 berkdb bluetooth bzip2 cairo cgi cli cracklib crypt cryptlib cups cxx dbus device-mapper dhcp dri emboss encode fax ffmpeg flac fontconfig fortran gd gdbm gimp gpm gtk gudev hal hpijs hwdb iconv id3tag innodb java jce jpeg jpg keymap ladspa laptop lcms libnotify lm_sensors mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp openssl pam parport pcre pdf perl php png ppds pppd python readline resolvconf scanner server session sndfile sqlite sse sse2 sse3 ssl suexec svg syslog tcpd threads tiff tk truetype udev unicode usb vim-syntax wavpack x11 xml xorg zlib" ABI_X86="64" 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" APACHE2_MODULES="authz_host cgi cgid deflate dir env filter include info mime mime_magic remoteip setenvif status userdir vhost_alias rewrite" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Martin Mokrejš 2013-09-02 16:17:51 UTC
Created attachment 357690 [details]
config.log
Comment 2 SpanKY gentoo-dev 2013-09-03 02:13:52 UTC
drop the -fstack-protector-all from your CFLAGS.  if you want SSP, use a hardened toolchain config via gcc-config.
Comment 3 Martin Mokrejš 2013-09-03 08:24:41 UTC
Right, thanks.