http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53470
Bug #: 53470 Summary: [4.8 LTO] ICE when linking with -g in splice_child_die, at dwarf2out.c:4264 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch Created attachment 27487 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27487 real-life code preprocessed file I encountered this while compiling with "-g" just few files in my project. make propagated the "-g" to the linking step that included also object files previously compiled without "-g". The example below reproduces the error with just one file c++ -flto -O2 -fPIC iceDebug.ii -shared -c -std=gnu++11 -msse3 [vocms123] /build/vin/newb/CMSSW_6_0_X_2012-05-14-1400 $ c++ -g -flto -O2 -fPIC iceDebug.o -shared -o bha.so -std=gnu++11 -msse3 In file included from /build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include/boost/checked_delete.hpp:51:0, from :322: /build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include/boost/smart_ptr/detail/sp_counted_impl.hpp: In member function 'get_deleter': /build/ge/new-binutils/a/slc5_amd64_gcc470/external/boost/1.49.0-cms3/include/boost/smart_ptr/detail/sp_counted_impl.hpp:84:5: internal compiler error: in splice_child_die, at dwarf2out.c:4264 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: c++ returned 1 exit status /afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status happens in many other contexts, always at dwarf2out.c:4264 cc version 4.8.0 20120524 (experimental) [trunk revision 187822] (GCC) GNU gold (GNU Binutils 2.22.52.20120515) 1.11