[cfe-dev] Problem with gcc 4.7 C++ headers

İsmail Dönmez ismail at namtrac.org
Thu Mar 22 07:11:09 PDT 2012


Hi;

GCC 4.7 was out today and looks like clang has some problems parsing the
new C++ headers, I hit two problems while bootstrapping llvm itself:

In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/lib/Support/Allocator.cpp:16:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/Support/Recycler.h:18:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/ADT/ilist.h:44:
In file included from
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/iterator:63:
In file included from
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/ostream:39:
In file included from
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/ios:42:
In file included from
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/bits/ios_base.h:40:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/ext/atomicity.h:48:45:
error: use of undeclared identifier '__ATOMIC_ACQ_REL'
  { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }

also

In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/lib/Support/APSInt.cpp:15:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/ADT/APSInt.h:18:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/ADT/APInt.h:19:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/Support/MathExtras.h:17:
In file included from
/home/abuild/rpmbuild/BUILD/llvm-3.0/include/llvm/Support/SwapByteOrder.h:20:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/limits:1404:27:
error: use of undeclared identifier '__int128'; did you mean '__int128_t'?
    struct numeric_limits<__int128>

Would be nice to get these fixed/workarounded before 3.1 release.

Regards,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120322/d0863fee/attachment.html>


More information about the cfe-dev mailing list