[Bug lto/60964] New: boost >= 1.54 failes to compile with LTO enabled
steffen at hauihau dot de
gcc-bugzilla@gcc.gnu.org
Fri Apr 25 12:44:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60964
Bug ID: 60964
Summary: boost >= 1.54 failes to compile with LTO enabled
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: steffen at hauihau dot de
Created attachment 32682
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32682&action=edit
Output of boost-1.55 build
I tried to compile boost 1.55 on my gentoo system and it the log library failed
with:
/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);
There are a lot more of these lines with other builtin. I've attached the build
log.
To command to reproduce the isse is:
bjam -j3 -q -d+2 --user-config=user-config.jam -sICU_PATH=/usr
--boost-build=tools/build/v2/ --prefix="../boost-1.55-build" --layout=system
threading=multi link=shared --with-log
And the conent of the user-config.jam is (all in one line):
using gcc : 4.8 : g++ : <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" <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 -std=gnu++98" <linkflags>"-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" ;
The error occurs under Gentoo (GCC 4.8.2) as well as under OpenSUSE 13.1 (GCC
4.8.1), both systems equipped with Core i7 Sandy Bridge. On an older AMD Athlon
X2 with Ubuntu 14.04 I get an internal compiler error instead of the wrong isa
error.
Please let me know if you need further information.
More information about the Gcc-bugs
mailing list