This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/81004] [7/8 Regression] linking failed with -flto and static libboost_program_options


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]