http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51361
Bug #: 51361 Summary: [4.7 Regression] 471.omnetpp of SPEC2006 fails to build with -fprofile-generate Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: gcov-profile AssignedTo: unassig...@gcc.gnu.org ReportedBy: venkataramanan.kumar....@gmail.com When we build SPEC2006 benchmark omnetpp with -fprofile-generate, it fails with lot of undefined references to instrumented sysmbols. (Snip) 1322659317.41: EtherAppSrv.o:(.data+0x2a0): undefined reference to `__gcov___ZNK7cModule13numInitStagesEv' 1322659317.41: EtherAppSrv.o:(.data+0x2a4): undefined reference to `__gcov___ZN7cModule10initializeEi' 1322659317.41: EtherApp_m.o:(.data+0xdcc): undefined reference to `__gcov___ZNK12EtherAppResp3dupEv' 1322659317.41: EtherApp_m.o:(.data+0xdd0): undefined reference to `__gcov___ZNK11EtherAppReq3dupEv' 1322659317.41: EtherBus.o:(.data+0x260): undefined reference to `__gcov___ZNK7cModule13numInitStagesEv' 1322659317.41: EtherBus.o:(.data+0x264): undefined reference to `__gcov___ZN7cModule10initializeEi' 1322659317.41: EtherBus.o:(.data+0x26c): undefined reference to `__gcov___ZNK8cMessage3dupEv' (Snip ends) I am trying to make a reduced test case. The build error started in revision 181105 Also reproduced in revison 181838