Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522962 - sys-libs/glibc: glibc_compile_test breaks in newer EAPI's due to fatal emake usage
Summary: sys-libs/glibc: glibc_compile_test breaks in newer EAPI's due to fatal emake ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 17:06 UTC by Manuel Lauss
Modified: 2014-10-20 17:21 UTC (History)
2 users (show)

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


Attachments
glibc.tar.bz2 (glibc.tar.bz2,29.53 KB, application/x-bzip-compressed-tar)
2014-09-16 20:34 UTC, Cănărău Constantin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2014-09-16 17:06:37 UTC
I can't build glibc-2.20 on a host which is pure x86_64, i.e. no multilib, and no 32 bit support in gcc:
>>> Emerging (1 of 1) sys-libs/glibc-2.20::gentoo
 * glibc-2.20.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                    [ ok ]
 * glibc-2.20-patches-1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                         [ ok ]
make -j2 -s glibc-test 
make -j2 -s glibc-test 
>>> Unpacking source...
 * strip-flags: CFLAGS: changed '-O2 -march=native -mtune=native -fomit-frame-pointer -fwrapv -pipe' to '-O2 -march=native -mtune=native -pipe'
 * strip-flags: CXXFLAGS: changed '-O2 -march=native -mtune=native -fomit-frame-pointer -fwrapv -pipe' to '-O2 -march=native -mtune=native -pipe'
<builtin>: recipe for target 'glibc-test' failed

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


The problem is in sys-libs/glibc/files/eblits/common.eblit, setup_target_flags(), line 65:
 if ! glibc_compile_test "${CFLAGS_x86}" 'void f(int i, void *p) [....]

CFLAGS_x86 expands to "-m32", and since I don't have any 32bit library support, the test doesn't link and fails.


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-16 19:13:48 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Manuel Lauss 2014-09-16 20:20:40 UTC
Portage 2.2.12 (python 3.4.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.1, glibc-2.19-r1, 3.17.0-rc5-00013-g2324067-dirty x86_64)
=================================================================
System uname: Linux-3.17.0-rc5-00013-g2324067-dirty-x86_64-Intel-R-_Pentium-R-_CPU_G3220_@_3.00GHz-with-gentoo-2.2
KiB Mem:     3951716 total,   3577532 free
KiB Swap:    2097024 total,   2097024 free
Timestamp of tree: Tue, 16 Sep 2014 15:45:01 +0000
ld GNU ld (Gentoo git) 2.24.51.20140916
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       9999
sys-devel/gcc:            4.8.3, 4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -fwrapv -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -fwrapv -pipe"
DISTDIR="/mnt/disk1/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.lagis.at"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://moya/gentoo-portage"
USE="acl amd64 bzip2 caps cxx filecaps ipv6 lzma lzo pam pcre sse sse4_1 sse4_2 ssl ssse3 systemd udev unicode xattr zlib" ABI_X86="64" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="efi-64" KERNEL="linux" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Cănărău Constantin 2014-09-16 20:34:12 UTC
Created attachment 384884 [details]
glibc.tar.bz2

Enviroment vars and other stuff from /var/tmp/portage.
Comment 4 Cănărău Constantin 2014-09-16 20:34:50 UTC
I can confirm this:

Portage 2.2.12 (python 3.4.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.1, glibc-2.19-r1, 3.16.2-aufs-costel x86_64)
=================================================================
System uname: Linux-3.16.2-aufs-costel-x86_64-Intel-R-_Xeon-R-_CPU_X3440_@_2.53GHz-with-gentoo-2.2
KiB Mem:     4042324 total,   2389084 free
KiB Swap:   12081192 total,  12081192 free
Timestamp of tree: Tue, 16 Sep 2014 16:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo added
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -w"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -w"
DISTDIR="/home/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=10 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks fail-clean fixlafiles merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now"
MAKEOPTS="-j8 --load-average=11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/added"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm gmp gpm iconv ipv6 ithreads logrotate mmx modules ncurses nls nptl openmp pam pch pcre python readline session sse sse2 ssl ssse3 systemd tcpd threads udev unicode vhosts 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip limit_conn limit_req map memcached naxsi proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge dav fancyindex flv geoip gzip_static headers_more image_filter mp4 perl push random_index realip secure_link spdy stub_status sub upload_progress xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="matrox" 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"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC
Comment 5 SpanKY gentoo-dev 2014-09-17 22:48:08 UTC
that's not really the problem.  with newer EAPIs, emake will call die when it fails.  like in glibc-2.20.
Comment 6 SpanKY gentoo-dev 2014-09-17 22:53:49 UTC
should be all set now in the tree; thanks for the report!

Commit message: Use `nonfatal` with emake when we check the return value ourselves
http://sources.gentoo.org/sys-libs/glibc/files/eblits/common.eblit?r1=1.41&r2=1.42
http://sources.gentoo.org/sys-libs/glibc/files/eblits/pkg_setup.eblit?r1=1.12&r2=1.13
http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_test.eblit?r1=1.8&r2=1.9
Comment 7 Cănărău Constantin 2014-09-18 08:08:35 UTC
It still fail, this time during install phase. I do not know if it is something similar with previious error.

>>> Installing (1 of 1) sys-libs/glibc-2.20::gentoo
 * Removing /usr/share/info
 * Removing /usr/share/doc
 * Defaulting /etc/host.conf:multi to on
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 32: ./ld-*.so: No such file or directory
 * ERROR: sys-libs/glibc-2.20::gentoo failed (preinst phase):
 *   simple run test (/usr/bin/cal) failed
 *
 * Call stack:
 *           ebuild.sh, line   93:  Called pkg_preinst
 *         environment, line 2839:  Called eblit-run 'pkg_preinst'
 *         environment, line  964:  Called eblit-glibc-pkg_preinst
 *   pkg_preinst.eblit, line   54:  Called glibc_sanity_check
 *   pkg_preinst.eblit, line   33:  Called die
 * The specific snippet of code:
 *              ./ld-*.so --library-path . ${x} > /dev/null \
 *                      || die "simple run test (${x}) failed"
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.20::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.20::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.20/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.20/image/lib64'
 * S: '/var/tmp/portage/sys-libs/glibc-2.20/work/glibc-2.20'
!!! FAILED preinst: 1
Comment 8 SpanKY gentoo-dev 2014-09-18 20:47:01 UTC
(In reply to Cănărău Constantin from comment #7)

that is unrelated to this bug and is fixed in the tree; sync up
Comment 9 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2014-09-30 21:28:11 UTC
(In reply to SpanKY from comment #6)
> should be all set now in the tree; thanks for the report!
> 
> Commit message: Use `nonfatal` with emake when we check the return value
> ourselves
> http://sources.gentoo.org/sys-libs/glibc/files/eblits/common.eblit?r1=1.
> 41&r2=1.42
> http://sources.gentoo.org/sys-libs/glibc/files/eblits/pkg_setup.eblit?r1=1.
> 12&r2=1.13
> http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_test.eblit?r1=1.
> 8&r2=1.9

using nonfatal makes 2.19 to fail:
https://bugs.gentoo.org/show_bug.cgi?id=523332
https://bugs.gentoo.org/show_bug.cgi?id=524038