This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/81004] [7/8 Regression] linking failed with -flto and static libboost_program_options
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Jun 2017 16:37:06 +0000
- Subject: [Bug lto/81004] [7/8 Regression] linking failed with -flto and static libboost_program_options
- Auto-submitted: auto-generated
- References: <bug-81004-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81004
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |lto
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-06-07
CC| |trippels at gcc dot gnu.org
Summary|linking failed with -flto |[7/8 Regression] linking
| |failed with -flto and
| |static
| |libboost_program_options
Ever confirmed|0 |1
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Confirmed. I'm currently trying to reduce the issue:
% g++ -w -Wl,--no-demangle -flto lines.ii options.ii -O1 -std=c++1z -o options
/usr/lib/libboost_program_options.a
/usr/lib/libboost_program_options.a(value_semantic.o):value_semantic.cpp:function
_GLOBAL__sub_I__ZNK5boost15program_options29value_semantic_codecvt_helperIcE5parseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EEb:
error: undefined reference to
'_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
the symbol should have been defined by a plugin
collect2: error: ld returned 1 exit status