scons: Configure: Checking if std::atomic<int64_t> works with libatomic...
|
build/scons/sconf_temp/conftest_53.cpp <-
|
|
|
|#include <atomic>
|
|
|
|int main() {
|
| std::atomic<int64_t> x;
|
|
|
| x.store(0);
|
| int64_t y = 1;
|
| x.fetch_add(y);
|
| x.fetch_sub(y);
|
| x.exchange(y);
|
| x.compare_exchange_strong(y, x);
|
| return x.load();
|
|}
|
|
|
Compiling build/scons/sconf_temp/conftest_53.o
|
In file included from /opt/mongodbtoolchain/v2/include/c++/5.3.0/x86_64-mongodb-linux/bits/os_defines.h:39:0,
|
from /opt/mongodbtoolchain/v2/include/c++/5.3.0/x86_64-mongodb-linux/bits/c++config.h:482,
|
from /opt/mongodbtoolchain/v2/include/c++/5.3.0/bits/atomic_base.h:35,
|
from /opt/mongodbtoolchain/v2/include/c++/5.3.0/atomic:41,
|
from build/scons/sconf_temp/conftest_53.cpp:2:
|
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
|
^
|
cc1plus: all warnings being treated as errors
|
scons: Configure: no
|