From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32689 invoked by alias); 26 Jan 2012 22:27:16 -0000 Received: (qmail 32679 invoked by uid 22791); 26 Jan 2012 22:27:15 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Jan 2012 22:27:03 +0000 From: "mjw at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/13626] New: gcc 4.7 doesn't compile sdt.h with -std=c++0x Date: Thu, 26 Jan 2012 22:27:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mjw at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00047.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13626 Bug #: 13626 Summary: gcc 4.7 doesn't compile sdt.h with -std=c++0x Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime AssignedTo: systemtap@sourceware.org ReportedBy: mjw@redhat.com Classification: Unclassified With gcc 4.7 prerelease, gcc (GCC) 4.7.0 20120123 (Red Hat 4.7.0-0.9) as found in Fedora Rawhide, sdt.h doesn't compile with g++ -std=c++0x FAIL: compiling sdt.c c++0x uprobe FAIL: compiling sdt.c c++0x -pedantic uprobe FAIL: compiling sdt.c gnu++0x uprobe FAIL: compiling sdt.c gnu++0x -pedantic uprobe FAIL: sdt_misc compiling types V3_uprobe c++0x FAIL: sdt_misc compiling types V3_uprobe c++0x -pedantic FAIL: sdt_misc compiling types V3_uprobe gnu++0x FAIL: sdt_misc compiling types V3_uprobe gnu++0x -pedantic FAIL: compiling sdt_va_args.c c++0x Other -std settings work fine. Error look like: Executing on host: g++ /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c -g -isystem/home/mark/src/systemtap/testsuite -isystem/usr/local/install/systemtap/include -Wall -Wextra -Werror -std=c++0x -x c++ -lm -o sdt.c.exe.7 (timeout = 300) spawn -ignore SIGHUP g++ /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c -g -isystem/home/mark/src/systemtap/testsuite -isystem/usr/local/install/systemtap/include -Wall -Wextra -Werror -std=c++0x -x c++ -lm -o sdt.c.exe.7 /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c: In function 'void call0()': /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c:5:3: error: unable to find string literal operator 'operator"" _SDT_S' /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c:5:1: error: unable to find string literal operator 'operator"" _SDT_S' /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c: In function 'void call1(int)': /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c:10:3: error: unable to find string literal operator 'operator"" _SDT_S' /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c:10:1: error: unable to find string literal operator 'operator"" _SDT_S' /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c: At global scope: /home/mark/src/systemtap/testsuite/systemtap.base/sdt.c:8:13: error: unused parameter 'a' [-Werror=unused-parameter] [...] I think this is a g++ bug since sdt.h contains: # define _SDT_S(x) #x Or is there a reason that doesn't work with c++0x? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.