Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503602 - dev-libs/boost-1.55.0-r1 - /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/avx2intrin.h:737:62: error: ‘__builtin_ia32_psrlwi256’ needs isa option -m32
Summary: dev-libs/boost-1.55.0-r1 - /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/avx...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2014-03-06 11:38 UTC by Steffen Hau
Modified: 2014-06-19 09:03 UTC (History)
1 user (show)

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


Attachments
dev-libs/boost-1.55-r1 build.log (boost-1.55-r1_build.log,715.69 KB, text/plain)
2014-03-06 11:39 UTC, Steffen Hau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2014-03-06 11:38:19 UTC
Compiling of dev-libs/boost-1.55.0-r1 failed with the following error message:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/avx2intrin.h: In function ‘_ZN5boost3log11v2_mt_posix3aux20dump_data_wchar_avx2EPKvmRSt13basic_ostreamIwSt11char_traitsIwEE.part.4’:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/avx2intrin.h:737:62: error: ‘__builtin_ia32_psrlwi256’ needs isa option -m32
   return (__m256i)__builtin_ia32_psrlwi256 ((__v16hi)__A, __B);
[snip]
make: *** [/home/misc/gentoo/tmp/portage/dev-libs/boost-1.55.0-r1/temp/ccMJwFcL.ltrans0.ltrans.o] Error 1
make: *** Waiting for unfinished jobs....
lto-wrapper: make returned 2 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
...skipped <pstage/lib>libboost_log.so.1.55.0 for lack of <pbin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off/threading-multi>libboost_log.so.1.55.0...

A complete build.log is attached. I tried to add 

Reproducible: Always




Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.3-HAUIHAU x86_64)
=================================================================
System uname: Linux-3.13.3-HAUIHAU-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:     7974844 total,   2695324 free
KiB Swap:    8388604 total,   7906952 free
Timestamp of tree: Thu, 06 Mar 2014 11:30:01 +0000
ld GNU gold (GNU Binutils 2.24) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.4
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo x11 hauihau
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -fira-loop-pressure -ftree-vectorize -ftree-loop-linear -flto=5 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/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 -ggdb -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -fira-loop-pressure -ftree-vectorize -ftree-loop-linear -flto=5 -fuse-linker-plugin"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --quiet-build=y --quiet-fail=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync metadata-transfer news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O2 -pipe -ggdb -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -fira-loop-pressure -ftree-vectorize -ftree-loop-linear -flto=5 -fuse-linker-plugin -Wl,-znow -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
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"
PORTAGE_TMPDIR="/home/misc/gentoo/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/hauihau"
USE="X a52 aac aalib acl alsa amd64 apache2 avx bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt cups curl cxx dbus dga directfb doc dri dts dv dvd encode examples exif ffmpeg flac fontconfig fortran ftp gd gdbm gif gmp gnome gnome-keyring gphoto2 gstreamer gtk iconv icu imagemagick imlib ipv6 jpeg jpeg2k kde lame latex libcaca libnotify libsamplerate lzma lzo mad matroska mmx mmxext mng modemmanager modules mp3 mpeg mtp multilib musepack mysql mysqli ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp pam pcre pdf png policykit postscript pulseaudio qt4 quicktime readline samba sdl session sndfile spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg syslog systemd tcpd theora threads tiff truetype udev unicode usb v4l vcd vim-syntax vorbis wavpack webkit x264 xattr xcb xcomposite xinerama xml xmp xorg xosd xpm xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" GRUB_PLATFORMS="grub_platforms_efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" 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.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Steffen Hau 2014-03-06 11:39:00 UTC
Created attachment 371848 [details]
dev-libs/boost-1.55-r1 build.log
Comment 2 Steffen Hau 2014-03-06 13:15:55 UTC
dev-libs/boost-1.54-r1 also fails to compile with the same error.
Comment 3 Sergey Popov (RETIRED) gentoo-dev 2014-03-08 10:09:23 UTC
Try with safe CFLAGS[1], like "-O2 -march=native -pipe" for example.

[1] - https://wiki.gentoo.org/wiki/Safe_Cflags
Comment 4 Steffen Hau 2014-03-10 11:39:25 UTC
As you suggested, I tried compiling with safe CFLAGS and I can confirm boost did compile. I then tried to use my original flags but with "-fno-lto" added and it still compiled. It looks like a LTO issue. I was wondering because I was able to compile boost-1.53 with LTO enabled. 

Since LTO is enabled per default in GCC for some time and it isn't mentioned as not allowed to file bugs if used, it sounds like LTO is supported in gentoo. Is anybody able to reproduce the error by using my {C,CXX,LD}FLAGS? Should this reported to upstream gcc/boost developers?
Comment 5 Sergey Popov (RETIRED) gentoo-dev 2014-03-10 11:57:49 UTC
(In reply to Steffen Hau from comment #4)
> As you suggested, I tried compiling with safe CFLAGS and I can confirm boost
> did compile. I then tried to use my original flags but with "-fno-lto" added
> and it still compiled. It looks like a LTO issue. I was wondering because I
> was able to compile boost-1.53 with LTO enabled. 
> 
> Since LTO is enabled per default in GCC for some time and it isn't mentioned
> as not allowed to file bugs if used, it sounds like LTO is supported in
> gentoo. Is anybody able to reproduce the error by using my {C,CXX,LD}FLAGS?
> Should this reported to upstream gcc/boost developers?

Support for LTO enabled in toolchain since gcc 4.6, but usage of -flto in CFLAGS is not well supported.

Please, file a bug about this to Boost's upstream, if it has not done yet.
Comment 6 Sergey Popov (RETIRED) gentoo-dev 2014-06-19 09:03:17 UTC
As said in upstream bugreport, usage of -flto for boost is not supported now due to bug in gcc(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043)

Closing as UPSTREAM