From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15813 invoked by alias); 10 Apr 2012 18:46:09 -0000 Received: (qmail 15798 invoked by uid 22791); 10 Apr 2012 18:46:08 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW 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; Tue, 10 Apr 2012 18:45:55 +0000 From: "os at xeviox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52929] New: use of undeclared identifier '__ATOMIC_ACQ_REL' Date: Tue, 10 Apr 2012 18:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: os at xeviox 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: 2012-04/txt/msg00666.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52929 Bug #: 52929 Summary: use of undeclared identifier '__ATOMIC_ACQ_REL' Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: os@xeviox.com The error occurs on Archlinux x64 with everything updated. The project uses Qt 4.8.x which was installed using the package manager. I also tried compiling with clang, which came up with the same error. The following error breaks the compile: In file included from /usr/include/QtCore/qstring.h:54: In file included from /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/string:53: In file included from /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/basic_string.h:40: /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:48:45: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:52:38: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ 2 errors generated. make[1]: *** [../bin/debug/obj/main.o] Error 1 make[1]: Leaving directory `/tmp/qirk/src' make: *** [sub-src-make_default-ordered] Error 2 I also tried to find the define using grep: # grep -r __ATOMIC_ACQ_REL /usr/include/ /usr/include/c++/4.7.0/bits/shared_ptr_base.h: true, __ATOMIC_ACQ_REL, /usr/include/c++/4.7.0/ext/atomicity.h: { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } /usr/include/c++/4.7.0/ext/atomicity.h: { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } /usr/include/c++/4.7.0/profile/impl/profiler_state.h: &inv, __s, false, __ATOMIC_ACQ_REL, /usr/include/c++/4.7.0/parallel/compatibility.h: return __atomic_fetch_add(__ptr, __addend, __ATOMIC_ACQ_REL); /usr/include/c++/4.7.0/parallel/compatibility.h: return __atomic_fetch_add(__ptr, __addend, __ATOMIC_ACQ_REL); /usr/include/c++/4.7.0/parallel/compatibility.h: return __atomic_fetch_add(__ptr, __addend, __ATOMIC_ACQ_REL); /usr/include/c++/4.7.0/parallel/compatibility.h: false, __ATOMIC_ACQ_REL, /usr/include/c++/4.7.0/parallel/compatibility.h: false, __ATOMIC_ACQ_REL, /usr/include/c++/4.7.0/parallel/compatibility.h: false, __ATOMIC_ACQ_REL, /usr/include/c++/4.7.0/tr1/shared_ptr.h: true, __ATOMIC_ACQ_REL, Greetings Ben