Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635388 - dev-qt/qtcore-5.9.2 fails to build: ../../include/QtCore/../../src/corelib/global/qfloat16.h:120:5: error: _m128 was not declared in this scope
Summary: dev-qt/qtcore-5.9.2 fails to build: ../../include/QtCore/../../src/corelib/gl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 06:00 UTC by Leonid Kopylov
Modified: 2017-12-24 07:31 UTC (History)
0 users

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


Attachments
build.log (build.log,267.97 KB, text/plain)
2017-10-25 06:01 UTC, Leonid Kopylov
Details
build.log (build.log,267.16 KB, text/plain)
2017-10-26 11:26 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2017-10-25 06:00:43 UTC
# emerge --info '=dev-qt/qtcore-5.9.2::gentoo'
Portage 2.3.12 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r8, 4.13.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:     4050980 total,   1867012 free
KiB Swap:    4194300 total,   4177660 free
Timestamp of repository gentoo: Wed, 25 Oct 2017 05:30:01 +0000
Head commit of repository gentoo: 409c4a9c8042b92f9bbe7d5f6150d1e2ffc72dee
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.1::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome PUEL RAR Nero-EULA-US OPERA-2014 skype-4.0.0.7-copyright TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-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="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi afp alsa amd64 anacron archive aspell audit avahi berkdb bluetooth bluray branding bzip2 cairo ccache cdda cddb cdr cli client colord conntrack cracklib creds crypt cryptsetup cscope cups curl cxx dbus device-mapper dri dts dvd dvdr eds egl emacs emboss encode equalizer evo examples exif experimental fam firefox flac fontconfig fortran fuse games gconf gd gdbm gegl geoip gif gimp glamor gles gnome gnome-keyring gnome-online-accounts go google gpg gpm gstreamer gtk gtk3 highlight html http iconv icu idn introspection ios ipv6 java jpeg jpeg2k kerberos lcms ldap libcaca libkms libnotify libsecret logrotate lvm mad math mdadm messages minizip mng modules mount mp3 mp4 mpeg mpx mtp multilib nas natspec nautilus ncurses net netlink networkmanager nfs nftables nls nptl nscd nsplugin offensive ogg opengl openmp pam pango pcap pcre pdf perl playlist plugins plymouth png policykit ppds pulseaudio python qrcode qt3support qt4 raw readline samba sasl sdl seccomp sendto session slp smi smp smtp sndfile sound speex spell spoof-source sqlite ssl startup-notification svg symlink sync-plugin-portage systemd tcpd threads thunderbird tiff tk tools tracker truetype tty-helpers udev udisks unicode upnp upnp-av upower usb utils v4l vim vim-pager vim-syntax vnc vorbis wayland webkit wininst wps wxwidgets x264 xattr xcb xemacs xinerama xkb xml xv xvid xvmc zeroconf zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" LINGUAS="en he ru en_US he_IL ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="virtualbox" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge -pqv '=dev-qt/qtcore-5.9.2::gentoo'
[ebuild  NS   ] dev-qt/qtcore-5.9.2 [4.8.7-r2] USE="icu systemd -debug {-test}"
Comment 1 Leonid Kopylov 2017-10-25 06:01:16 UTC
Created attachment 500010 [details]
build.log
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-10-26 11:26:10 UTC
Created attachment 500188 [details]
build.log

stripped ansi
Comment 3 Ostashevskyi Viktor 2017-11-28 08:35:44 UTC
Fixed upstream:

https://github.com/qt/qtbase/commit/d813c66bfcfac1837814ec4d174d0389172f0d4c.patch

Builds fine with this patch in /etc/portage/patches.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-11-28 10:56:20 UTC
Thanks for finding the patch!
Comment 5 Larry the Git Cow gentoo-dev 2017-11-28 11:00:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0bbe689cf555a4b68cea32a5ba5d5f5b898641

commit 3e0bbe689cf555a4b68cea32a5ba5d5f5b898641
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-11-28 10:58:58 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-11-28 10:59:53 +0000

    dev-qt/qtcore: backport patch from upstream fixing build when AVX2 is enabled but __F16C__ isn't defined
    
    Closes: https://bugs.gentoo.org/635388
    Package-Manager: Portage-2.3.14, Repoman-2.3.6

 dev-qt/qtcore/files/qtcore-5.9.3-avx.patch | 69 ++++++++++++++++++++++++++++++
 dev-qt/qtcore/qtcore-5.9.3.ebuild          |  2 +
 2 files changed, 71 insertions(+)
Comment 6 Shunsuke Shimizu 2017-12-24 07:31:36 UTC
It seems I'm too late, but anyway...

I had the exactly same problem before the proposed patch was applied, and it turned out the problem was VirtualBox wrongly reports CPU features. Changing `-march=native` to `-march=skylake` fixed the issue for me. The CPU (even inside VirtualBox) actually supports f16c and fma, but VirtualBox reports they aren't supported.