Compiling errors on Fedora 17

Compiling errors on Fedora 17

I've just upgraded to Fedora 17. There are some warnings and errors when compiling the simplest hello world codes. The errors are below:

Warning #2928: the __GXX_EXPERIMENTAL_CXX0X__ macro is disabled when using GNU version 4.6 with the c++0x option/usr/include/c++/4.7.0/ext/atomicity.h(48): error: identifier "__ATOMIC_ACQ_REL" is undefined { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^/usr/include/c++/4.7.0/ext/atomicity.h(48): error: identifier "__atomic_fetch_add" is undefined { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^/usr/include/c++/4.7.0/ext/atomicity.h(52): error: identifier "__ATOMIC_ACQ_REL" is undefined { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^/usr/include/c++/4.7.0/ext/atomicity.h(52): error: identifier "__atomic_fetch_add" is undefined { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^compilation aborted for main.cpp (code 2)

Any suggestions?

15 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Could you give the versions you have.
? gcc -v
? icc -v

Well, it is just a plain hello world program. My command was $ icpc main.cpp. [bash]#include
using namespace std;

int main(int argc, char *argv[])
cout<<"Hello, World!"<

you have not understand my question
load shell bash
and use two command for give result
gcc -v
/otp/intel..... icc -v
with update you have probably now wrong headers to icc compiler...


Best Reply

If your g++ has back-ported the g++ 4.7 headers, that is not supported under icpc 12.1. It works with icpc 13 beta2.
The public versions of g++ 4.6 shouldn't have made such a change.

Thanks bustaf and TimP. My previous gcc version is 4.7, the icpc version was 12.1. Now with the 13.0 beta, I can compile files as usual.

You have listen the bad sound of the parrot and
You have installed beta icc 13 with your default gcc-4.7, but you could also install
previous GCC/G++ version 4.6.x, after
make link (ln) short name /usr/bin/gcc-4.6.3 on gcc and /usr/bin/g++-4.6.3 on g++
icc(12) would understand that 4.6.3 is by default as that operational.

And when you want use also gnu 4.7 you use name complete
gcc4.7 & g++-4.7

It was object of my precedent question about your versions ...

It seem to me that icpc 13 beta2 working enough well..
but you must work now on an beta with referring too speedily to the information
repeated incomplete.

I can only test this when I have time in, say, three weeks at least. I have also Intel compilers on my super computers, which are more conservative.Many thanks again.

Dear all,

can i ask everyone? because i have just installed fedora 17 (64bit), but

Step no: 1 of 6 | Options > Missing Optional Pre-requisite(s)
There are one or more optional unresolved issues. It is highly recommended to
resolve them all before you continue the installation. You can fix them without
exiting from
the installation and re-check. Or you can quit from the installation, fix them
and run the installation again.
Missing optional pre-requisites
-- unsupported OS
1. Skip missing optional pre-requisites [default]
2. Show the detailed info about issue(s)
3. Re-check the pre-requisites

h. Help
b. Back to the previous menu
q. Quit

and i don't how to do to solve this issue

can you help me? sorry because i use this topic.

thanks for all

best regards,

Your post does not belong in this thread.

Fedora 17 was released after the latest update of Intel C. Install after accepting "Unsupported OS" and see if it works. If it does not work, wait for the next update of Intel C which states that it is supported on Fedora 17.

Validation of ICC depend essentially only version Gnu compileronly version Gnu compiler and
(libtool,binutils,IA32 etc ..) installed in your linux distribution.
Icc is only an fronted compiler that require obligatory Gnu compiler.
Only with version 12 you must install gnu_4.6.x, and with the default 4.7 that you have
The beta 13 must work also correctly.
As you can install several version of Gnu compiler with your choice of distribution linux
The validation by Intel is not real value of reference..
If your thread have no place here I don't know where it could be placed.
Here C/++ first,you are welcome regardless your choice linux distribution or your version
gnu compiler ..
Finish your installation without take account this advertisement

when some essential packages required are absent, the install will aborted before.

Council (download the Intel 13 beta it working very well)




using namespace std;

cout << "Hello World" << endl;


this is my hello world i compile with parallel studio xe 2013 Beta 64 Bit on openSUSE 12.2 Beta 2 64 Bit Linux
no problems

How can I downloadparallel studio xe 2013 Beta 64 Bit. As I have fedora 17.

Yes using Intel 12.1 with the g++ 4.6 or later C++ librarysystemheadersin -std=c++0x/c++11 mode is going to lead to problems. There is a release note about this.

If you upgrade to version 13.0 (still in beta)then g++ 4.6 and 4.7 headersshouldcompilefine.


FYI. The 13.0 compiler initial release, which contains the fix for this issue, is available for download at .


Leave a Comment

Please sign in to add a comment. Not a member? Join today