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

Marc J. Driftmeyer mjd at reanimality.com
Tue Apr 3 12:35:15 PDT 2012


Ran into the same road block with Debian on LLVM/Clang trunk after 
fixing my dev installation.

I figure this will resolve itself sooner, rather than later.

- Marc

On 03/22/2012 07:11 AM, İsmail Dönmez wrote:
> 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
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-- 
Marc J. Driftmeyer
Email :: mjd at reanimality.com <mailto:mjd at reanimality.com>
Web :: http://www.reanimality.com
Cell :: (509) 435-5212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120403/c5ad53d8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mjd.vcf
Type: text/x-vcard
Size: 317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120403/c5ad53d8/attachment.vcf>


More information about the cfe-dev mailing list