Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366919 - sys-apps/module-init-tools-3.12-r1 fails to build tests when zlib.a is missing
Summary: sys-apps/module-init-tools-3.12-r1 fails to build tests when zlib.a is missing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 21:29 UTC by Nikoli
Modified: 2011-05-16 22:37 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,12.43 KB, text/plain)
2011-05-11 21:30 UTC, Nikoli
Details
Clean tests/build/ directory, run test with verbosity, respect CC (module-init-tools-3.12-r1-clean-tests.patch,972 bytes, patch)
2011-05-13 00:59 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2011-05-11 21:29:43 UTC
x86_64-pc-linux-gnu-gcc  -march=core2 -O2 -pipe -Wunused -Wall  -Wl,-O1 -Wl,--as-needed -o modinfo modinfo.o zlibsupport.o -lz libmodtools.a 
>>> Source compiled.
Building with --enable-zlib...
configure: WARNING: docbook2man not found
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [lsmod] Error 1

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
Timestamp of tree: Wed, 11 May 2011 20:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.7.1-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
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=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/core2"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/nikoli"
USE="7zip X a52 aac acl acpi akonadi alsa amd64 amr ares atm audiofile bash-completion bluetooth bzip2 cairo caps cdda cddb cdio cdparanoia cdr celt cli consolekit cracklib crypt css cups cxx dbus djvu dri dts dv dvd dvdr emboss encode exif fat ffmpeg firefox flac fluidsynth fontconfig fortran gd gdu geoip gif gimp gmp gnutls gphoto2 gpm graphviz gsm gstreamer gtk handbook iconv icu id3tag idn ieee1394 ilbc imagemagick imap imlib ios ipod ipv6 jbig jpeg jpeg2k kde kipi kontact ladspa lame laptop lcms libnotify libproxy libsamplerate libwww lm_sensors lzma lzo mad matroska mikmod mmx mmxext mng modplug modules mp3 mp4 mpeg mtp mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly ntfs nvidia ogg openal openexr opengl openmp pam pango pcre pdf perl pg-intdatetime phonon plasma pm-utils png policykit ppds pppd qt3support qt4 quicktime rar raw readline reiserfs rtmp sasl scanner schroedinger semantic-desktop session smp sndfile socks5 speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs taglib theora threads thumbnail tiff truetype tta udev unicode upnp usb v4l v4l2 vaapi vcd vdpau vorbis vpx wavpack webkit wifi wma wmf wps x264 xattr xcb xcomposite xface xml xmp xorg xpm xscreensaver xulrunner xv xvid zip 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 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" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip rewrite" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nv nvidia 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"
Comment 1 Nikoli 2011-05-11 21:30:09 UTC
Created attachment 272893 [details]
build.log
Comment 2 William Hubbs gentoo-dev 2011-05-12 00:11:38 UTC
This is already stable on amd64, so it doesn't make sense for this bug to block stabilization.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-05-12 12:53:10 UTC
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lz

Looks like it's just test phase failing...

How is that even possible?    Is zlib installed properly?   libz.so in /usr/lib?   Is /usr/lib symlink to /usr/lib64?
Comment 4 Nikoli 2011-05-12 13:10:44 UTC
$ ls -la /lib64/libz.* /usr/lib64/libz.* /usr/lib /lib
lrwxrwxrwx 1 root root     5 Апр 14 20:39 /lib -> lib64
lrwxrwxrwx 1 root root    13 Апр 14 12:20 /lib64/libz.so.1 -> libz.so.1.2.5
-rwxr-xr-x 1 root root 96632 Апр 14 12:20 /lib64/libz.so.1.2.5
lrwxrwxrwx 1 root root     5 Окт 15  2010 /usr/lib -> lib64
-rwxr-xr-x 1 root root   523 Апр 14 12:20 /usr/lib64/libz.so

Nothing else fails to build. May be src_test wants /usr/lib64/libz.a? It is not intalled (used INSTALL_MASK="/usr/lib64/*.a").
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-05-12 13:15:29 UTC
(In reply to comment #4)
> $ ls -la /lib64/libz.* /usr/lib64/libz.* /usr/lib /lib
> lrwxrwxrwx 1 root root     5 Апр 14 20:39 /lib -> lib64
> lrwxrwxrwx 1 root root    13 Апр 14 12:20 /lib64/libz.so.1 -> libz.so.1.2.5
> -rwxr-xr-x 1 root root 96632 Апр 14 12:20 /lib64/libz.so.1.2.5
> lrwxrwxrwx 1 root root     5 Окт 15  2010 /usr/lib -> lib64
> -rwxr-xr-x 1 root root   523 Апр 14 12:20 /usr/lib64/libz.so
> 
> Nothing else fails to build. May be src_test wants /usr/lib64/libz.a? It is not
> intalled (used INSTALL_MASK="/usr/lib64/*.a").

This won't be the only package failing to build then... Such INSTALL_MASK is definately not supported
Comment 6 Nikoli 2011-05-12 13:22:15 UTC
'emerge -e world' works fine for me because glibc, flex, tcl and nss are in exclude "list" /etc/portage/env/.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 00:59:14 UTC
Created attachment 273001 [details, diff]
Clean tests/build/ directory, run test with verbosity, respect CC

The tarball appears to ship (amd64) binaries in the tests/build directory:

jer@bastiaan /var/tmp/portage/sys-apps/module-init-tools-3.12-r1/work/module-init-tools-3.12/tests/build $ ls -l
total 2344
-rw-r--r-- 1 jer jer   9870 Jun  7  2010 config.log
-rwxr-xr-x 1 jer jer  37200 Jun  7  2010 config.status
-rwxr-xr-x 1 jer jer 181395 Jun  7  2010 depmod
-rw-r--r-- 1 jer jer   4069 Jun  7  2010 depmod.8
-rw-r--r-- 1 jer jer   2499 Mar 12  2010 depmod.conf.5
-rw-r--r-- 1 jer jer  90232 Jun  7  2010 depmod.o
-rwxr-xr-x 1 jer jer  34546 Jun  7  2010 insmod
-rw-r--r-- 1 jer jer    956 Mar 12  2010 insmod.8
-rw-r--r-- 1 jer jer  23128 Jun  7  2010 insmod.o
-rwxr-xr-x 1 jer jer 826605 Jun  7  2010 insmod.static
-rw-r--r-- 1 jer jer 179862 Jun  7  2010 libmodtools.a
-rw-r--r-- 1 jer jer   5824 Jun  7  2010 libmodtools_a-config_filter.o
-rw-r--r-- 1 jer jer  81224 Jun  7  2010 libmodtools_a-elfops.o
-rw-r--r-- 1 jer jer  63168 Jun  7  2010 libmodtools_a-index.o
-rw-r--r-- 1 jer jer  12040 Jun  7  2010 libmodtools_a-logging.o
-rw-r--r-- 1 jer jer  16536 Jun  7  2010 libmodtools_a-util.o
-rwxr-xr-x 1 jer jer  21740 Jun  7  2010 lsmod
-rw-r--r-- 1 jer jer    570 Mar 12  2010 lsmod.8
-rw-r--r-- 1 jer jer  21144 Jun  7  2010 lsmod.o
-rw-r--r-- 1 jer jer  44488 Jun  7  2010 Makefile
-rw-r--r-- 1 jer jer     29 Jun  7  2010 manpage.links
-rw-r--r-- 1 jer jer      0 Jun  7  2010 manpage.log
-rw-r--r-- 1 jer jer     27 Jun  7  2010 manpage.refs
-rwxr-xr-x 1 jer jer  65982 Jun  7  2010 modindex
-rw-r--r-- 1 jer jer  13704 Jun  7  2010 modindex.o
-rwxr-xr-x 1 jer jer  87511 Jun  7  2010 modinfo
-rw-r--r-- 1 jer jer   2278 Mar 12  2010 modinfo.8
-rw-r--r-- 1 jer jer  36032 Jun  7  2010 modinfo.o
-rwxr-xr-x 1 jer jer 151038 Jun  7  2010 modprobe
-rw-r--r-- 1 jer jer   9345 Jun  7  2010 modprobe.8
-rw-r--r-- 1 jer jer   6580 Jun  7  2010 modprobe.conf.5
-rw-r--r-- 1 jer jer  98288 Jun  7  2010 modprobe.o
-rw-r--r-- 1 jer jer   1139 Jun  7  2010 modules.dep.5
-rwxr-xr-x 1 jer jer  37605 Jun  7  2010 rmmod
-rw-r--r-- 1 jer jer   1664 Mar 12  2010 rmmod.8
-rw-r--r-- 1 jer jer  27248 Jun  7  2010 rmmod.o
-rw-r--r-- 1 jer jer  58576 Jun  7  2010 tables.o
-rw-r--r-- 1 jer jer  19192 Jun  7  2010 zlibsupport.o

The attached patch cleans that directory.
Comment 8 Nikoli 2011-05-13 06:26:15 UTC
After installing /usr/lib64/libz.a src_test works fine for me. Now zlib does not have static-libs USE flag, but if it will be added then src_test will be broken for most users.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 13:15:21 UTC
(In reply to comment #8)
> After installing /usr/lib64/libz.a src_test works fine for me. Now zlib does
> not have static-libs USE flag, but if it will be added then src_test will be
> broken for most users.

No, because then we would add test? ( sys-libs/zlib[static-libs] ) to DEPEND. :)
Comment 10 SpanKY gentoo-dev 2011-05-16 03:51:25 UTC
INSTALL_MASK="*.a" -> you get to pick up the pieces
Comment 11 Nikoli 2011-05-16 06:29:35 UTC
But what about comment #7? Patch from attachment 273001 [details, diff] is not in portage.
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2011-05-16 07:25:00 UTC
reopening per comment 11.
Comment 13 SpanKY gentoo-dev 2011-05-16 19:02:27 UTC
ugh, dont do that crap in the future.  unrelated issue -> new bug.
Comment 14 SpanKY gentoo-dev 2011-05-16 22:37:00 UTC
Comment on attachment 273001 [details, diff]
Clean tests/build/ directory, run test with verbosity, respect CC

this doesnt fix the underlying problem.  the configure script is run manually without any of the user settings.  so just ignore it.

http://sources.gentoo.org/sys-apps/module-init-tools/module-init-tools-3.12-r1.ebuild?r1=1.3&r2=1.4