Re: [Boost-bugs] [Boost C++ Libraries] #9766: boost >= 1.54 failes to compile with gcc-4.8.2 and LTO enabled

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-25 12:45:33


#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 andysem):

 Replying to [comment:8 steffen@…]:
>
> Then I tried to compile it on my older computer under Ubuntu 14.04 (AMd
 Athlon X2 4600), and it failed with an internal compiler error, I guess
 due to the lack of AVX support in that old CPU:

 Host CPU features should not influence the code generation, unless you use
 -march=native. BTW, you shouldn't really use -march and similar flags, b2
 has instruction-set property, which has the same meaning but may also be
 picked up by Boost libraries build scripts.

> Did you use my user-config.jam?

 Yes, I only had to change the compiler executable name and correct
 directories and similar stuff in the command line. I'll try experimenting
 more though.

> Then bjam should have called g++ with "-flto=5" option. You can see the
 compiler options in the output lines of bjam.

 Yes, all options were there, both at compilation and linking stages. I
 wonder if it could be related to -march=native flag since I tried this on
 a Haswell machine. I'll try on another machine when I have time.

> I'll file a bug report for this to GCC and give you the id.

 Thanks, I appreciate that.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9766#comment:9>
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