use of undeclared identifier '__ATOMIC_ACQ_REL' when building llvm-3.1 on Fedora 17

Ilyes Gouta ilyes.gouta at gmail.com
Sat Sep 1 14:06:40 UTC 2012


Hi,

I'm getting the following errors, when attempting to build llvm-3.1
(from f18) on my Fedora 17 setup.

In file included from APInt.cpp:16:
In file included from
/home/ilyes/fedora-scm/llvm/llvm-3.1.src/include/llvm/ADT/APInt.h:18:
In file included from
/home/ilyes/fedora-scm/llvm/llvm-3.1.src/include/llvm/ADT/ArrayRef.h:13:
In file included from
/home/ilyes/fedora-scm/llvm/llvm-3.1.src/include/llvm/ADT/SmallVector.h:23:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/iterator:63:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/ostream:39:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/ios:42:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/bits/ios_base.h:40:
/usr/bin/../lib/gcc/x86_64-redhat-linux/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-redhat-linux/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); }

I've got also a bunch of these:

/usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/limits:1404:27:
error: use of undeclared identifier '__int128'; did you mean
'__int128_t'?

and this is with gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC).

Any ideas on how to fix this? Do I need an updated GCC?

Regards,

-Ilyes


More information about the devel mailing list