Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703536 - =sys-libs/efivar-37-r1 failed to compile with unrecognized command line option "-march=native"
Summary: =sys-libs/efivar-37-r1 failed to compile with unrecognized command line optio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2019-12-22 13:40 UTC by Émeric Maschino
Modified: 2019-12-23 16:30 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,1.70 KB, text/x-log)
2019-12-22 13:40 UTC, Émeric Maschino
Details
environment (environment,86.44 KB, text/plain)
2019-12-22 13:40 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2019-12-22 13:40:00 UTC
Created attachment 600400 [details]
build.log

Hi,

=sys-libs/efivar-37-r1 fails to emerge on ia64. From build.log:

make[1]: Entering directory '/var/tmp/portage/sys-libs/efivar-37-r1/work/efivar-37/src'
ia64-unknown-linux-gnu-gcc -O2 -pipe -I/var/tmp/portage/sys-libs/efivar-37-r1/work/efivar-37/src/include/   -specs=/var/tmp/portage/sys-libs/efivar-37-r1/work/efivar-37/gcc.specs  -L.  -Wl,-O1 -Wl,--as-needed -Wl,-z,muldefs     -DEFIVAR_BUILD_ENVIRONMENT -march=native -o makeguids makeguids.c guid.c -ldl 
[01m[Kcc1:[m[K [01;31m[Kerror: [m[Kunrecognized command line option ‘[01m[K-march=native[m[K’

I *think* that the equivalent to -march is -mtune on ia64 but the settings are different too, i.e. -mtune=native is invalid. -mtune=itanium2 is OK but I don't know if this is what you want in the present context.

This is a regression from =sys-libs/efivar-37 and I think it comes from efivar-37-makguids_fix_host_compile.patch

Please let me know if/how I can help further.

Thanks,

     Émeric
Comment 1 Émeric Maschino 2019-12-22 13:40:59 UTC
Created attachment 600402 [details]
environment
Comment 2 Émeric Maschino 2019-12-22 13:41:40 UTC
emerge --info output:

Portage 2.3.79 (python 3.6.9-final-0, default/linux/ia64/17.0/desktop/gnome, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo ia64)
=================================================================
System uname: Linux-4.19.86-gentoo-ia64-Madison-with-gentoo-2.6
KiB Mem:    24982256 total,  16569328 free
KiB Swap:     499696 total,    499696 free
Timestamp of repository gentoo: Fri, 20 Dec 2019 20:00:01 +0000
Head commit of repository gentoo: fe7cd2cd1ab3fef99e8d61e938a150c6b6193a79
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::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-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="@FREE"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-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 pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3"
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 a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvdr eds elogind encode evo exif fam flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc mad mng mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl spell split-usr ssl startup-notification svg tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2018" ALSA_CARDS="fm801" 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" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev radeon r300" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Émeric Maschino 2019-12-22 13:42:06 UTC
emerge -pqv output:

[ebuild     U ] sys-libs/efivar-37-r1 [37]
Comment 4 Larry the Git Cow gentoo-dev 2019-12-23 16:30:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54816fed63de0f99741f8e38b1a3f8748a02515c

commit 54816fed63de0f99741f8e38b1a3f8748a02515c
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-12-23 16:28:01 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-12-23 16:30:23 +0000

    Revert "sys-libs/efivar: fix compiling makeguids on older hosts"
    
    This reverts commit e380cf8427ba5f3c073491bdf88488c04beeff6b, which
    broke compilation on ia64.
    
    Bug: https://bugs.gentoo.org/702584
    Closes: https://bugs.gentoo.org/703536
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../{efivar-37-r1.ebuild => efivar-37.ebuild}      |  4 ---
 .../efivar-37-makeguids_fix_host_compile.patch     | 36 ----------------------
 2 files changed, 40 deletions(-)