~ $ sudo efibootmgr No BootOrder is set; firmware will attempt recovery ------- ~ $ sudo efibootmgr -V version unknown (fix Makefile!) ------- ~ $ emerge --info efibootmgr Portage 2.3.0 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r2, 4.7.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.7.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 16084344 total, 181748 free KiB Swap: 16777212 total, 16777212 free sh bash 4.3_p46 ld GNU gold (Gentoo 2.26.1 p1.0 2.26.1) 1.11 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.3_p46::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.5.2::gentoo dev-util/cmake: 3.6.1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2-r1::gentoo sys-apps/openrc: 0.21.3::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 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.26.1::gentoo sys-devel/gcc: 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: 1 kde location: /usr/portage/proj/kde sync-type: git sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 3 x11 location: /usr/portage/proj/x11 sync-type: git sync-uri: git://anongit.gentoo.org/proj/x11.git masters: gentoo priority: 3 pg_overlay location: /usr/local/overlay sync-type: git sync-uri: git://github.com/perfect7gentleman/pg_overlay.git masters: gentoo priority: 7 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/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" CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j7" 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 --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="X acl acpi amd64 bash-completion branding bzip2 cairo cli consolekit cracklib custom-cflags cxx dbus dri dts exif fam ffmpeg flac fontconfig gif gmp gzip iconv icu introspection jabber jit jpeg lcms libass libnotify lm_sensors lua lzma lzo matroska minimal mmap mmx mmxext mng modules multilib ncurses nls nptl nsplugin ntpl opengl openmp orc pam pango pcre pdf png policykit ppds pulseaudio readline seccomp session smp sox spell sse sse2 ssl svg symlink tcmalloc threads tiff truetype udev udisks udisks2 unicode usb v4l vaapi wavpack webp wxwidgets x264 xattr xcb xml xmpp xv xvid zlib" ABI_X86="64" ALSA_CARDS="emu10k1" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="roccat_kovaplus roccat_ryosmk" KERNEL="linux" L10N="en en-US ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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="3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-boot/efibootmgr-13::gentoo was built with the following: USE="" ABI_X86="64"
https://github.com/rhinstaller/efibootmgr/issues/54
Same problem here. Also, tried downgrading to efibootmgr-0.12, which resulted in >>> Emerging (1 of 1) sys-boot/efibootmgr-0.12::gentoo * efibootmgr-0.12.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking efibootmgr-0.12.tar.bz2 to /var/tmp/portage/sys-boot/efibootmgr-0.12/work >>> Source unpacked in /var/tmp/portage/sys-boot/efibootmgr-0.12/work >>> Preparing source in /var/tmp/portage/sys-boot/efibootmgr-0.12/work/efibootmgr-0.12 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-boot/efibootmgr-0.12/work/efibootmgr-0.12 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-boot/efibootmgr-0.12/work/efibootmgr-0.12 ... make -j8 x86_64-pc-linux-gnu-gcc -O3 -march=native -pipe -DEFIBOOTMGR_VERSION=\"0.12\" -Wsign-compare -Wall -g -D_FILE_OFFSET_BITS=64 -I/usr/include/efivar -Isrc/lib -Isrc/include -c -o src/lib/efi.o src/lib/efi.c x86_64-pc-linux-gnu-gcc -O3 -march=native -pipe -DEFIBOOTMGR_VERSION=\"0.12\" -Wsign-compare -Wall -g -D_FILE_OFFSET_BITS=64 -I/usr/include/efivar -Isrc/lib -Isrc/include -c -o src/lib/unparse_path.o src/lib/unparse_path.c src/lib/efi.c: In function ‘get_extra_args’: src/lib/efi.c:427:7: warning: pointer targets in passing argument 3 of ‘efi_loadopt_args_as_ucs2’ differ in signedness [-Wpointer-sign] opts.argv[i]); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/lib/efi.c:26: /usr/include/efivar/efiboot-loadopt.h:64:16: note: expected ‘uint8_t * {aka unsigned char *}’ but argument is of type ‘char *’ extern ssize_t efi_loadopt_args_as_ucs2(uint16_t *buf, ssize_t size, ^ src/lib/efi.c:439:7: warning: pointer targets in passing argument 3 of ‘efi_loadopt_args_as_utf8’ differ in signedness [-Wpointer-sign] opts.argv[i]); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/lib/efi.c:26: /usr/include/efivar/efiboot-loadopt.h:60:16: note: expected ‘uint8_t * {aka unsigned char *}’ but argument is of type ‘char *’ extern ssize_t efi_loadopt_args_as_utf8(uint8_t *buf, ssize_t size, ^ x86_64-pc-linux-gnu-gcc -O3 -march=native -pipe -DEFIBOOTMGR_VERSION=\"0.12\" -Wsign-compare -Wall -g -D_FILE_OFFSET_BITS=64 -I/usr/include/efivar -Isrc/lib -Isrc/include -Wl,-O1 -Wl,--as-needed src/efibootmgr/efibootmgr.c src/lib/efi.o src/lib/unparse_path.o -lefivar -lefiboot -o src/efibootmgr/efibootmgr src/efibootmgr/efibootmgr.c: In function ‘warn_duplicate_name’: src/efibootmgr/efibootmgr.c:224:10: error: too few arguments to function ‘efi_loadopt_desc’ desc = efi_loadopt_desc(load_option); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/efibootmgr/efibootmgr.c:49: /usr/include/efivar/efiboot-loadopt.h:35:36: note: declared here extern const unsigned char const * efi_loadopt_desc(efi_load_option *opt, ^ src/efibootmgr/efibootmgr.c: In function ‘make_boot_var’: src/efibootmgr/efibootmgr.c:307:7: error: too few arguments to function ‘efi_set_variable’ rc = efi_set_variable(boot->guid, boot->name, boot->data, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘set_boot_u16’: src/efibootmgr/efibootmgr.c:363:9: error: too few arguments to function ‘efi_set_variable’ return efi_set_variable(EFI_GLOBAL_GUID, name, (uint8_t *)&num, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘add_to_boot_order’: src/efibootmgr/efibootmgr.c:401:7: error: too few arguments to function ‘efi_set_variable’ rc = efi_set_variable(EFI_GLOBAL_GUID, "BootOrder", boot_order->data, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘remove_dupes_from_boot_order’: src/efibootmgr/efibootmgr.c:455:7: error: too few arguments to function ‘efi_set_variable’ rc = efi_set_variable(EFI_GLOBAL_GUID, "BootOrder", boot_order->data, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘remove_from_boot_order’: src/efibootmgr/efibootmgr.c:504:7: error: too few arguments to function ‘efi_set_variable’ rc = efi_set_variable(EFI_GLOBAL_GUID, "BootOrder", boot_order->data, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘set_boot_order’: src/efibootmgr/efibootmgr.c:802:7: error: too few arguments to function ‘efi_set_variable’ rc = efi_set_variable(EFI_GLOBAL_GUID, "BootOrder", data, data_size, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘show_boot_vars’: src/efibootmgr/efibootmgr.c:824:17: error: too few arguments to function ‘efi_loadopt_desc’ description = efi_loadopt_desc(load_option); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/efibootmgr/efibootmgr.c:49: /usr/include/efivar/efiboot-loadopt.h:35:36: note: declared here extern const unsigned char const * efi_loadopt_desc(efi_load_option *opt, ^ src/efibootmgr/efibootmgr.c:825:8: error: too few arguments to function ‘efi_loadopt_path’ dp = efi_loadopt_path(load_option); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/efibootmgr/efibootmgr.c:49: /usr/include/efivar/efiboot-loadopt.h:33:14: note: declared here extern efidp efi_loadopt_path(efi_load_option *opt, ssize_t limit) ^ src/efibootmgr/efibootmgr.c:838:23: error: too few arguments to function ‘efi_loadopt_pathlen’ uint16_t pathlen = efi_loadopt_pathlen(load_option); ^ In file included from /usr/include/efivar/efiboot.h:36:0, from src/efibootmgr/efibootmgr.c:49: /usr/include/efivar/efiboot-loadopt.h:48:17: note: declared here extern uint16_t efi_loadopt_pathlen(efi_load_option *opt, ssize_t limit) ^ src/efibootmgr/efibootmgr.c: In function ‘set_active_state’: src/efibootmgr/efibootmgr.c:934:13: error: too few arguments to function ‘efi_set_variable’ return efi_set_variable(boot->guid, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c:948:13: error: too few arguments to function ‘efi_set_variable’ return efi_set_variable(boot->guid, ^ In file included from src/efibootmgr/efibootmgr.c:48:0: /usr/include/efivar/efivar.h:78:12: note: declared here extern int efi_set_variable(efi_guid_t guid, const char *name, ^ src/efibootmgr/efibootmgr.c: In function ‘set_boot_u16’: src/efibootmgr/efibootmgr.c:367:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [src/efibootmgr/module.mk:23: src/efibootmgr/efibootmgr] Error 1
(In reply to PM from comment #2) > Same problem here. Also, tried downgrading to efibootmgr-0.12, which the efibootmgr-0.12 won't compile against new efivar-27, old efivar is needed.
please attach strace -fe trace=file efibootmgr
i think bug can be closed as it resolved in upstream https://github.com/vathpela/efivar-devel/commit/a8112584c727daef8a3742f0098988a5fae8ee69
*it was