Fails to emerge due to failed test. See build log. Reproducible: Always Steps to Reproduce: 1. emerge =sys-devel/autoconf-2.13 Actual Results: FAIL: AC_FUNC_GETLOADAVG, problem with executing Expected Results: No unexpected failures. Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.2.6-gentoo x86_64) ================================================================= System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.3 Timestamp of tree: Sat, 03 Mar 2012 02:15:01 +0000 distcc 3.1 x86_64-unknown-linux-gnu [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo x11 sunrise java-overlay seden local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA skype-eula AdobeFlash-10.3 dlj-1.1 google-talkplugin" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -w" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" 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/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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 -march=native -w" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv" FFLAGS="" GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo http://mirror.pacific.net.au/linux/Gentoo http://ftp.swin.edu.au/gentoo http://xorg.freedesktop.org/releases/individual/lib/" LANG="en_AU.UTF-8" LC_ALL="en_AU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_AU en_GB" MAKEOPTS="-j2" 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="/home" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/java-overlay /var/lib/layman/seden /usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi alsa amd64 ao apache2 avahi bash-completion berkdb blas bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif expat fam ffmpeg fftw flac fontconfig fortran gd gdbm gdu geoip gif gmp gnutls gphoto2 gpm graphviz gsl gstreamer gtk iconv icq icu imagemagick imlib ipod ipv6 java java5 java6 javascript jpeg jpeg2k kde kipi ladspa lame lapack latex lcms ldap libnotify libsamplerate lm_sensors lzma lzo mad matroska mmap mmx mng modules mp3 mp4 mpeg msn mtp mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs offensive ogg openal openexr opengl openmp pam pango pch pcre pdf phonon php plasma plotutils png policykit ppds pppd qt3support qt4 readline samba sdl semantic-desktop session sharedmem smp sndfile sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog szip taglib tcpd theora threads tiff timidity truetype udev unicode usb v4l vcd vorbis wavpack wmf wxwindows x264 xcb xcomposite xinerama xml xorg xpm xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" 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 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 stage tables krita karbon braindump" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_GB" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 304087 [details] build.log: Fails on amd64.
we don't care about autoconf-2.13. no one should be using this thing. i'm thinking we should just disable tests on this version.
Well, I think that so long as other packages in portage are bringing it in as a dependency, then we should care about it! No matter how much we might want to see the back of it. For your information, it is dev-libs/nspr-4.9 that suddenly brought it in as a dependency (whereas 4.8.x don't). Maybe it's a bug?
https://bugzilla.mozilla.org/show_bug.cgi?id=104642 (note that spidermonkey make an explicit dep on autoconf 2.13 too)
The test's output suggests, that it expects to find the loadavg in /dev/kmem. Which doesn't exist for most of us and the test fails. The very commands that try to access /dev/kmem are ls's in acspecific.m4, lines 1568 and 1570. The script flow gets here, becasue $ac_cv_func_getloadavg_setgid=yes. As a quickfix, inserting "ac_cv_func_getloadavg_setgid=no" right after the line 1553 "solves" the problem and the test succeeds. But does it mean that autoconf actually knows how to get the loadavg? I don't know exactly how to check (the test itself doesn't seem to actually read the loadavg, but I'm not 100% sure) for that. Could anyone help please? acspecific.m4, line 1478 is the only place where ac_cv_func_getloadavg_setgid could have been set to yes and trigger the error as described previously. Line 1478 further implies (sort of) that the program had found getloadavg() in -lutil (a part of glibc). This function exists in today's common glibc and reads the values from /proc/loadavg, although the -lutil is not actually necessary, so it may not reside in libutil, but that's irrelevant for this problem. An strace of the test phase shows no access to /proc/loadavg. But that might be OK - the test probably doesn't actually read the loadavg. Maybe the function GETLOADAVG in acspecific.m4 finds getloadavg() in -lutil, is satisfied with that, but presumably for historic reasons goes on to assume that this function will read /dev/kmem and makes some checks on it that obviously fail. When this is all true, then evading these checks with the said quickfix is one of the ways how to make everything just right. But again: I'd like to check in practice that autoconf knows how to get loadavg. If I find the time to learn autotools, I'll verify that myself. But if you already know how to check, please do it. If all turns out well, we can bump to 2.13-r1.
autoconf-2.13 also fails Fortran-related tests on my system: AC_PROG_F77, AC_PROG_F77_WORKS, AC_PROG_F77_GNU, AC_PROG_F77_G, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS. It looks for one of g77, f77, f2c. Not found => test fails. These should be skipped if neither of the three binaries exists. Apart from that, the package passes tests cleanly for me.
Well, I guess someone disabled the tests or something, because there aren't any to fail any more.
Not fixed, tests are not removed, but ebuild has missing DEPEND. Jeremy, most likely you did something like 'emerge --depclean --with-bdeps=n -q' Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.13.5-hardened x86_64) ================================================================= System Settings ================================================================= KiB Mem: 65825868 total, 878084 free KiB Swap: 0 total, 0 free Timestamp of tree: Sat, 15 Mar 2014 06:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo nikoli ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=corei7-avx -O2 -pipe" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" LANG="en_US.UTF-8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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" PORTDIR_OVERLAY="/var/lib/layman/nikoli" USE="X a52 aac acl acpi aes-ni alsa amd64 amr audiofile avx bash-completion bzip2 cairo caps cdda cddb cdio cdparanoia cdr celt cli consolekit cracklib crypt css cups cxx dbus djvu dri dts dv dvd dvdr encode exif fat ffmpeg flac fluidsynth fontconfig fortran gd geoip gif gimp gmp gphoto2 gpm graphviz gsm gstreamer gtk handbook hardened iconv icu id3tag idn ilbc imagemagick imap imlib ios ipod ipv6 jbig jpeg jpeg2k justify kde kipi lame laptop lcms libass libnotify libproxy libsamplerate lm_sensors lzma lzo mac mad matroska mikmod mmx mmxext modplug modules mp3 mp4 mpeg mtp multilib musepack musicbrainz ncurses networkmanager nls nptl nptlonly ntfs ogg openal openexr opengl openmp opus pam pango pax_kernel pcre pdf phonon plasma pm-utils png policykit postscript qt3support qt4 quicktime rar raw readline reiserfs replaygain rtmp sasl scanner semantic-desktop session sid smp sndfile socks5 speex spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg symlink sysfs taglib theora threads thumbnail tiff truetype tta udev udisks unicode upnp upower usb v4l v4l2 vcd vdpau vorbis vpx wavpack webkit webp wma wmf x264 xattr xcb xcomposite xface xinerama xml xmp xpm xscreensaver xtpax xv xvid xz zip 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="*" 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="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer" LINGUAS="ru ru_RU en" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip rewrite" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600 modesetting vesa" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON ================================================================= Package Settings ================================================================= sys-devel/autoconf-2.13 was built with the following: USE="(multilib) test" ABI_X86="64" sys-devel/autoconf-2.69 was built with the following: USE="(multilib) test -emacs -multislot" ABI_X86="64"
Created attachment 372704 [details] build.log (after running 'emerge -uNDvbka --with-bdeps=y system')
Created attachment 372706 [details] build.log (after running 'emerge --depclean --with-bdeps=n -q')
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7dbfacbf92767bfa5aa46c9cc7ee12dcbcc558f commit d7dbfacbf92767bfa5aa46c9cc7ee12dcbcc558f Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-22 11:50:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-22 11:50:12 +0000 dev-build/autoconf: skip AC_FUNC_GETLOADAVG test for 2.13 The macro itself is broken in autoconf-2.13 but this is caused by newer kernels etc rather than anything else. Very, very few packages use autoconf-2.13, let alone AC_FUNC_GETLOADAVG, so not going to worry about it much. Do as Fedora and Debian do and skip the test for it. Closes: https://bugs.gentoo.org/406723 Closes: https://bugs.gentoo.org/677926 Signed-off-by: Sam James <sam@gentoo.org> dev-build/autoconf/autoconf-2.13-r8.ebuild | 1 + .../autoconf-2.13-skip-AC_FUNC_GETLOADAVG-test.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+)