From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13502 invoked by alias); 30 Nov 2011 17:20:39 -0000 Received: (qmail 13477 invoked by uid 22791); 30 Nov 2011 17:20:37 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_TP X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Nov 2011 17:20:22 +0000 From: "venkataramanan.kumar.gnu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/51361] New: [4.7 Regression] 471.omnetpp of SPEC2006 fails to build with -fprofile-generate Date: Wed, 30 Nov 2011 17:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: venkataramanan.kumar.gnu at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg02871.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: venkataramanan.kumar.gnu@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