Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783123 - sys-apps/fwupd-1.4.7 fails to build with uefi flag
Summary: sys-apps/fwupd-1.4.7 fails to build with uefi flag
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
: 807295 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-16 10:20 UTC by Wojciech Arabczyk
Modified: 2022-07-27 13:16 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge--info.txt,6.36 KB, text/plain)
2021-08-09 11:29 UTC, Oriol D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Arabczyk 2021-04-16 10:20:33 UTC
[307/368] x86_64-pc-linux-gnu-gcc  -o plugins/tpm-eventlog/fwupdtpmevlog plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog.c.o plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-parser.c.o-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,defs -Wl,-z,now -O2 -pipe -march=native -mtune=native -fPIE -Wl,-O2 -Wl,--as-needed -Wl,--start-group libfwupd/libfwupd.so.2.0.0 libfwupdplugin/libfwupdplugin.so.1.0.0 /usr/lib64/libxmlb.so /usr/lib64/libgio-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so -pthread /usr/lib64/libgusb.so /usr/lib64/libusb-1.0.so /usr/lib64/libsoup-2.4.so /usr/lib64/libarchive.so /usr/lib64/libgudev-1.0.so /usr/lib64/libtss2-esys.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../libfwupd:$ORIGIN/../../libfwupdplugin' -Wl,-rpath-link,/var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7-build/libfwupd -Wl,-rpath-link,/var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7-build/libfwupdplugin
[308/368] /var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7/plugins/uefi/efi/generate_binary.py plugins/uefi/efi/fwup.so plugins/uefi/efi/fwupdx64.efi --arch x86_64 --objcopy objcopy
FAILED: plugins/uefi/efi/fwupdx64.efi 
/var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7/plugins/uefi/efi/generate_binary.py plugins/uefi/efi/fwup.so plugins/uefi/efi/fwupdx64.efi --arch x86_64 --objcopy objcopy
Traceback (most recent call last):
File "/var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7/plugins/uefi/efi/generate_binary.py", line 91, in <module>
_run_genpeimg(_args)
File "/var/tmp/portage/sys-apps/fwupd-1.4.7/work/fwupd-1.4.7/plugins/uefi/efi/generate_binary.py", line 63, in _run_genpeimg
subprocess.run(argv, check=True)
File "/usr/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'genpeimg'
Comment 1 Oriol D 2021-08-09 11:29:12 UTC
Created attachment 731809 [details]
emerge --info

This bug continues on version 1.5.9-r1. But my error is different to the original, but also happens when you compile with "uefi" flag only:

[364/426] x86_64-pc-linux-gnu-gcc -Iplugins/uefi-capsule/libfu_plugin_uefi_capsule.so.p -Iplugins/uefi-capsule -I../fwupd-1.5.9/plugins/uefi-capsule -I. -I../fwupd-1.5.9 -Ilibfwupd -I../fwupd-1.5.9/libfwupd -Ilibfwupdplugin -I../fwupd-1.5.9/libfwupdplugin -I/usr/include/libxmlb-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gudev-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gusb-1 -I/usr/include/libusb-1.0 -I/usr/include/efivar -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wdeclaration-after-statement -Wdiscarded-qualifiers -Wduplicated-branches -Wduplicated-cond -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wlogical-op -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-cast-function-type -Wno-address-of-packed-member -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wswitch-default -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wunused-variable -Wvla -Wwrite-strings -fstack-protector-strong -DFWUPD_COMPILATION -D_DEFAULT_SOURCE -DFWUPD_DISABLE_DEPRECATED -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -march=native -O2 -pipe -fPIC -pthread '-DG_LOG_DOMAIN="FuPluginUefiCapsule"' '-DEFI_OS_DIR="gentoo"' -MD -MQ plugins/uefi-capsule/libfu_plugin_uefi_capsule.so.p/fu-plugin-uefi-capsule.c.o -MF plugins/uefi-capsule/libfu_plugin_uefi_capsule.so.p/fu-plugin-uefi-capsule.c.o.d -o plugins/uefi-capsule/libfu_plugin_uefi_capsule.so.p/fu-plugin-uefi-capsule.c.o -c ../fwupd-1.5.9/plugins/uefi-capsule/fu-plugin-uefi-capsule.c
ninja: build stopped: subcommand failed.
Comment 2 Oriol D 2021-08-09 11:33:56 UTC
Comment on attachment 731809 [details]
emerge --info

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/selinux, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.52-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-8565U_CPU_@_1.80GHz-with-glibc2.33
KiB Mem:    16064256 total,   5467624 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 09 Aug 2021 08:30:01 +0000
Head commit of repository gentoo: b929fdb84659a63f997da4b67b903fa73401bb84
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

SwordArMor
    location: /var/lib/layman/SwordArMor
    masters: gentoo
    priority: 50

dargor
    location: /var/lib/layman/dargor
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.bytemark.co.uk/gentoo/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X X* a52 aac aalib acl acpi alsa amd64 aqbanking audit bluetooth branding bzip2 caps cli crypt cups curl dbus dga dri elogind emacs flac fortran gdbm gnome-keyring gtk iconv ipv6 javascript jpeg libglvnd libnotify libtirpc logrotate lzo midi mng mp3 mpeg2 multilib ncurses nfs nls nptl offensive ofx open_perms opengl openmp opus pam pcre peer_perms perl png postscript pulseaudio python qt5 readline scanner sdl seccomp selinux shadow split-usr sqlite ssl suid svg synaptics syslog systray tcpd theora tiff timidity truetype ubac udev unconfined unicode usb v4l vector-icons vim-syntax vorbis vulkan wifi x264 xattr xft xinerama xml xpm xscreensaver zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en-IE es es-ES ru ru-RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

sys-apps/fwupd-1.5.9-r1::gentoo was built with the following:
USE="agent amt archive bluetooth elogind flashrom gnutls gusb man nvme synaptics thunderbolt tpm -dell -gtk-doc -introspection -minimal -policykit (-systemd) -test -uefi" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
FEATURES="preserve-libs sfperms strict userfetch ipc-sandbox unmerge-orphans xattr usersandbox ebuild-locks network-sandbox binpkg-logs distlocks unknown-features-warn multilib-strict parallel-fetch qa-unresolved-soname-deps userpriv merge-sync fixlafiles binpkg-docompress unmerge-logs news config-protect-if-modified protect-owned usersync selinux binpkg-dostrip sandbox assume-digests sesandbox"
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-08-09 11:36:37 UTC
(In reply to Oriol Demaria from comment #1)
> Created attachment 731809 [details]
> emerge --info
> 
> This bug continues on version 1.5.9-r1. But my error is different to the
> original, but also happens when you compile with "uefi" flag only:

Please file a new bug with full build.log attached to it.
Comment 4 Marek Szuba archtester gentoo-dev 2022-07-27 13:15:04 UTC
*** Bug 807295 has been marked as a duplicate of this bug. ***
Comment 5 Marek Szuba archtester gentoo-dev 2022-07-27 13:16:45 UTC
Recent fwupd versions no longer depend on genpeimg, closing.