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

Jerry James loganjerry at gmail.com
Sat Sep 1 19:42:33 UTC 2012


On Sat, Sep 1, 2012 at 8:06 AM, Ilyes Gouta <ilyes.gouta at gmail.com> wrote:
> 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?

A little Google work turned up these discussions:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-March/020280.html
http://comments.gmane.org/gmane.comp.compilers.clang.devel/20438

Regards,
-- 
Jerry James
http://www.jamezone.org/


More information about the devel mailing list