Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581296 - sys-libs/efivar-0.23 fails to link
Summary: sys-libs/efivar-0.23 fails to link
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
Depends on:
Reported: 2016-04-26 19:36 UTC by Robin Johnson
Modified: 2016-04-26 21:39 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-04-26 19:36:38 UTC
* Package:    sys-libs/efivar-0.23
 * Repository: gentoo
 * Maintainer:
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking efivar-0.23.tar.bz2 to /dev/shm/portage/sys-libs/efivar-0.23/work
>>> Source unpacked in /dev/shm/portage/sys-libs/efivar-0.23/work
>>> Preparing source in /dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23 ...
 * Applying 0.21-nvme_ioctl.h.patch ...
 [ ok ]
 * Applying 0.23-sysmacros.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23 ...
>>> Source configured.
>>> Compiling source in /dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23 ...
make[1]: Entering directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -I/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src/include/efivar/  -specs=/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/gcc.specs  -L.  -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed    -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl 
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: Cannot create section, --build-id ignored.
collect2: error: ld returned 1 exit status
/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/Make.rules:13: recipe for target 'makeguids' failed
make[1]: *** [makeguids] Error 1
make[1]: Leaving directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sys-libs/efivar-0.23::gentoo failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=sys-libs/efivar-0.23::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/efivar-0.23::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-libs:efivar-0.23:20160426-193144.log'.
 * For convenience, a symlink to the build log is located at '/dev/shm/portage/sys-libs/efivar-0.23/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/sys-libs/efivar-0.23/temp/environment'.
 * Working directory: '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23'
 * S: '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23'

Portage 2.2.28 (python 2.7.11-final-0, default/linux/amd64/13.0/developer, gcc-5.3.0, glibc-2.23-r2, 4.5.0-rc6-00141-g6794402 x86_64)
System uname: Linux-4.5.0-rc6-00141-g6794402-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32913372 total,   3689572 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 10 Feb 2016 16:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.5 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r7::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.2.5::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          9999::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo

    location: /code/gentoo/gentoo-git/repo/gentoo
    sync-type: git
    sync-uri: git+ssh://
    priority: -1000

    location: /usr/local/portage
    masters: gentoo
    priority: 0

    location: /code/gentoo/gentoo-git/robbat2
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/openjms/config /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.0/conf /usr/share/maven-bin-2.1/conf /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb /var/spool/munin-async/.ssh"
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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/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="-march=native -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles lmirror merge-sync mirror multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l10"
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 --exclude=/.git"
USE="a52 aac aalib acl acpi adns adplug agg aio alsa amd64 amr animgif ares arts audiofile audit avahi avx bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdaudio cdda cddb cdio cdparanoia cdr chardet chm clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx d3d daap dbus dc1394 designer-plugin dia diskio djbfft djvu dri dts dv dvb dvd dvdr dvdread ebook emf encode exif expat fam ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran gd gdbm geoip gif gimp glamor glut gmp gnokii gnutls gps graphviz gsm gstreamer hal ical iconv id3tag idea ieee1394 imagemagick imlib inkjar ipod ipv6 jack java5 java6 javacomm jbig jingle jpeg jpeg2k lash lcms ldap libgcrypt libnotify libsamplerate llvm llvm-shared-libs lm_sensors logitech-mouse lzma lzo mad maildir mhash midi mikmod mmap mmx mmxext mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer mudflap multilib multitarget musepack nas ncurses nls nocd nptl nptlonly nsplugin offensive ofx ogg openal opencl openexr opengl openmp oss otr pam pango pccntl pch pcre pda pdf perl plotutils png policykit posix postscript povray ppds pulseaudio python qt3support quicktime raw rdesktop readline reflection rpc rss ruby savedconfig scanner sdl seccomp semantic-desktop semantic-destkop session sid simplexml slp smp sms smux sndfile snmp sockets socks5 solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs syslog sysvipc taglib theora threads tidy tiff timidity truetype tta twolame udev udisks unicode upower urandom usb v4l v4l2 vcd vcdx videos vim-syntax vnc vorbis vorbis-psy wavpack webkit wideband wifi win32codecs wma wmf wxwidgets x264 xanim xattr xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio usb-usx2y ad1816a ad1848 ad1848-lib ad1889 serial-u16550 virmidi seq-dummy dummy" 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 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 asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http cern_meta cgi cgid dbd dumpio ident proxy_scgi reqtimeout substitute version authn_dbd" APACHE2_MPMS="worker" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" 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 efi-32 efi-64" INPUT_DEVICES="evdev keyboard mouse void wacom" KERNEL="linux" LCD_DEVICES="g15 glk graphlcd iowarrior ncurses null png ppm text usbhub usblcd X xosd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_CA en_GB en_ZA en_US en af" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm i386 mips mips64 mips64el mipsel ppc ppc64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev ati radeon v4l vga vesa radeonhd r600 nouveau" 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-04-26 19:48:19 UTC
Removing the --build-id option from the spec file does allow further progress, but then it fails at:
make[1]: Entering directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
make -f /dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src/Make.deps deps SOURCES="crc32.c creator.c disk.c gpt.c linux.c loadopt.c dp.c dp-acpi.c dp-hw.c dp-media.c dp-message.c efivarfs.c export.c guid.c guids.S guid-symbols.c lib.c vars.c makeguids.c guid.c include/efivar/efivar-guids.h include/efivar/efivar.h include/efivar/efiboot.h include/efivar/efiboot-loadopt.h include/efivar/efivar-dp.h include/efivar/efiboot-creator.h include/efivar/efivar-guids.h guid-symbols.c efivar.c"
make[2]: Entering directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
make[2]: Nothing to be done for 'deps'.
make[2]: Leaving directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
gcc -O2 -g -I/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src/include/efivar/  -specs=/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/gcc.specs  -L.      -static  -o efivar-static efivar.c dp.static.o dp-acpi.static.o dp-hw.static.o dp-media.static.o dp-message.static.o efivarfs.static.o export.static.o guid.static.o guids.static.o guid-symbols.static.o lib.static.o vars.static.o -ldl -lpopt 
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpopt
collect2: error: ld returned 1 exit status
/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/Make.rules:17: recipe for target 'efivar-static' failed
make[1]: *** [efivar-static] Error 1
make[1]: Leaving directory '/dev/shm/portage/sys-libs/efivar-0.23/work/efivar-0.23/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-04-26 19:50:14 UTC
efivar-0.21 DOES work
Comment 3 Mike Gilbert gentoo-dev 2016-04-26 21:39:31 UTC
Per IRC, the error in comment 1 is due to running make manually without the BINTARGETS and STATICLIBTARGETS from the ebuild.

I am currently unable to reproduce the original failure from comment 0.