Subject: [Boost-bugs] [Boost C++ Libraries] #9766: boost >= 1.54 failes to compile with gcc-4.8.2 and LTO enabled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-10 12:59:04
#9766: boost >= 1.54 failes to compile with gcc-4.8.2 and LTO enabled
----------------------------+------------------------------
Reporter: steffen@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.54.0
Severity: Problem | Keywords:
----------------------------+------------------------------
I tried to compile boost on my gentoo systemd and it failes while linking
libboost_log.so with the following error:
gcc.link.dll bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-
off/threading-multi/libboost_log.so.1.55.0
"x86_64-pc-linux-gnu-g++" -o
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/libboost_log.so.1.55.0" -Wl,-h -Wl,libboost_log.so.1.55.0
-shared -Wl,--start-group "bin.v2/libs/log/build/gcc-4.8/gentoorelease
/log-api-unix/pch-off/threading-multi/dump_ssse3.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/dump_avx2.o" "bin.v2/libs/log/build/gcc-4.8/gentoorelease
/log-api-unix/pch-off/threading-multi/attribute_name.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/attribute_set.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/attribute_value_set.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/code_conversion.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/core.o" "bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-
api-unix/pch-off/threading-multi/record_ostream.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/severity_level.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/global_logger_storage.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/named_scope.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/process_name.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/process_id.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/thread_id.o" "bin.v2/libs/log/build/gcc-4.8/gentoorelease
/log-api-unix/pch-off/threading-multi/timer.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/exceptions.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/default_attribute_names.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/default_sink.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/text_ostream_backend.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/text_file_backend.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/syslog_backend.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/thread_specific.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/once_block.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/timestamp.o" "bin.v2/libs/log/build/gcc-4.8/gentoorelease
/log-api-unix/pch-off/threading-multi/threadsafe_queue.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/event.o" "bin.v2/libs/log/build/gcc-4.8/gentoorelease
/log-api-unix/pch-off/threading-multi/trivial.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/spirit_encoding.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/format_parser.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/date_time_format_parser.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/named_scope_format_parser.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/unhandled_exception_count.o"
"bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix/pch-off
/threading-multi/dump.o" "bin.v2/libs/thread/build/gcc-4.8/gentoorelease
/pch-off/threading-multi/libboost_thread.so.1.55.0"
"bin.v2/libs/filesystem/build/gcc-4.8/gentoorelease/pch-off/threading-
multi/libboost_filesystem.so.1.55.0"
"bin.v2/libs/date_time/build/gcc-4.8/gentoorelease/pch-off/threading-
multi/libboost_date_time.so.1.55.0"
"bin.v2/libs/chrono/build/gcc-4.8/gentoorelease/pch-off/threading-
multi/libboost_chrono.so.1.55.0"
"bin.v2/libs/system/build/gcc-4.8/gentoorelease/pch-off/threading-
multi/libboost_system.so.1.55.0" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl
,--end-group -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 -pthread -lrt -lpthread
/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 a lot more of these isa option errors]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/avx2intrin.h:585:23: error:
â__builtin_ia32_pshufb256â needs isa option -m32
(__v32qi)__Y);
^
make: /home/misc/gentoo/tmp/portage/dev-
libs/boost-1.55.0-r1/temp/ccobKVrF.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...
gcc.compile.c++ bin.v2/libs/log/build/gcc-4.8/gentoorelease/log-api-unix
/pch-off/threading-multi/filter_parser.o
I've attached the complete gentoo build.log. Here are some additional
details about my system environment:
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1,
3.13.5-HAUIHAU x86_64)
=================================================================
System uname: Linux-3.13.5-HAUIHAU-x86_64-Intel-R-_Core-TM-
_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem: 7974844 total, 2094852 free
KiB Swap: 8388604 total, 7620020 free
Timestamp of tree: Mon, 10 Mar 2014 10: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
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"
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"
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"
If you need further information, please let me know.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9766> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC