Subject: Re: [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-04-23 12:41:10
#9766: boost >= 1.54 failes to compile with gcc-4.8.2 and LTO enabled
-------------------------------+---------------------
Reporter: steffen@⦠| Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Comment (by anonymous):
I can see you're using LTO. That may be the source of the problem. There
are several source files in Boost.Log which are compiled with different
compiler flags. In particular, it's dump_avx2.cpp, which contains the
failing function you seen in the compiler errors. To verify that try
disabling LTO and rebuilding the library.
I have no experience with GCC LTO, but from what I know I can't use all
the flags on the linking stage since that would make the whole resulting
binary AVX2-only instead of only just the optimized part in dump_avx2.cpp.
I could try adding attributes to the particular functions in dump_avx2.cpp
so that they contain the required compiler options. But really, this has
to be done by the compiler since I already pass the options on the
compilation stage.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9766#comment:5> 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:16 UTC