[SciPy-Dev] scipy build error

Martin Hofsäß m.hofsaess at gmail.com
Thu Mar 21 15:02:19 EDT 2013


Hi,

i have tried the code

#include <iostream>

using namespace std;

int main()
{
	cout << "Hello World!" << endl;
	return 0;
}

with icpc test.cpp and i get the following error:

/usr/include/c++/4.7/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/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/ext/atomicity.h(52): error: identifier
"__ATOMIC_ACQ_REL" is undefined
    { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
                                       ^

/usr/include/c++/4.7/ext/atomicity.h(52): error: identifier
"__atomic_fetch_add" is undefined
    { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
      ^

compilation aborted for test.cpp (code 2)


So the compiling failed.

What can I do?



2013/3/21 Pauli Virtanen <pav at iki.fi>:
> 21.03.2013 16:42, Martin Hofsäß kirjoitti:
>> I have a new fresh system with linux mint 14 (64bit) and had install
>> the intel compiler c and fortran successful.
>>
>> Setting the path to the mkl destination in the site.cfg was no problem
>> and building numpy worked without error.
> [clip]
>> compilation aborted for scipy/interpolate/src/_interpolate.cpp (code 2)
>> /usr/include/c++/4.7/ext/atomicity.h(48): error: identifier
>> "__ATOMIC_ACQ_REL" is undefined
>>     { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
>
> Looks like some problem in the installation of Intel C++ compiler. Those
> headers come from libstdc++ which I doubt is used by icc.
>
> Try checking that you can compile simple c++ programs first.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev



More information about the SciPy-Dev mailing list