[Bug lto/53768] New: [4.7 Regression] Undefined references with boost 1.46/1.48/1.49

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:49:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53768

             Bug #: 53768
           Summary: [4.7 Regression] Undefined references with boost
                    1.46/1.48/1.49
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: hubicka@gcc.gnu.org


On Linux/x86-64, GCC 4.7.2 gave

[hjl@gnu-6 tmp]$ cat pr53572.cc 
#include <boost/exception/detail/exception_ptr.hpp>
int main(){return 0;}
[hjl@gnu-6 tmp]$ g++ pr53572.cc -m32 -O3 -g  -flto -fuse-linker-plugin
-rdynamic
...
/usr/local/bin/ld: a.out: hidden symbol `.LTHUNK75.4891' isn't defined
/usr/local/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

I am using binutils in CVS trunk. This is caused by revision 179424:

http://gcc.gnu.org/ml/gcc-cvs/2011-10/msg00017.html

and fixed by revision 186252:

http://gcc.gnu.org/ml/gcc-cvs/2012-04/msg00202.html



More information about the Gcc-bugs mailing list