compilation with -flto in CFLAGS fails

Bug #622348 reported by Karel vd Star
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Incomplete
Undecided
Christophe Dumez

Bug Description

gcc version 4.5.1

Tags: gcc lto
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Having the error message sure would help.

I have just installed g++ 4.5.1 and added -flto to CFLAGS and I got the following error:

I. -I. -o searchengine.o searchengine.cpp
In file included from //usr/include/boost/date_time/gregorian/formatters.hpp:17:0,
                 from //usr/include/boost/date_time/gregorian/gregorian.hpp:25,
                 from //usr/include/boost/date_time/posix_time/time_formatters.hpp:12,
                 from //usr/include/boost/date_time/posix_time/posix_time.hpp:24,
                 from //usr/include/libtorrent/create_torrent.hpp:55,
                 from createtorrent_imp.cpp:48:
//usr/include/boost/date_time/date_formatting.hpp: In static member function ‘static std::basic_string<charT> boost::date_time::ymd_formatter<ymd_type, format_type, charT>::ymd_to_string(ymd_type)’:
//usr/include/boost/date_time/date_formatting.hpp:87:36: error: cannot call constructor ‘std::locale::locale’ directly
//usr/include/boost/date_time/date_formatting.hpp:87:36: error: for a function-style cast, remove the redundant ‘::locale’

Are you having the exact same error? If so, please contact boost developers about it. The error is in their code, not mine.

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.