[OSM-dev] Compilation error of libosmium

Hongyu Zhang hzhangic at gmail.com
Thu May 26 21:58:33 UTC 2016


Hi All,

I am trying to install (the latest) libosmium on a server running CentOS
6.7. When I compile the program using intel/15.0.6 and the make command, an
error occurred:

---------------------------------------------------------------------------------------------------------------------------------------------------
$ make
[  1%] Built target testlib
[  3%] Building CXX object
test/CMakeFiles/area_test_area_id.dir/t/area/test_area_id.cpp.o
icpc: command line warning #10159: invalid argument for option '-std'
/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/ext/atomicity.h(49): error:
identifier "__ATOMIC_ACQ_REL" is undefined
    { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
                                              ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/ext/atomicity.h(49): error:
identifier "__atomic_fetch_add" is undefined
    { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/ext/atomicity.h(53): error:
identifier "__ATOMIC_ACQ_REL" is undefined
    { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
                                       ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/ext/atomicity.h(53): error:
identifier "__atomic_fetch_add" is undefined
    { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
      ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/cstdlib(178): error: identifier
"__int128" is undefined
    inline __int128
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/cstdlib(179): error: identifier
"__int128" is undefined
    abs(__int128 __x) { return __x >= 0 ? __x : -__x; }
        ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1405): error: identifier
"__int128" is undefined
      struct numeric_limits<__int128>
                            ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1409): error: identifier
"__int128" is undefined
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1412): error: identifier
"__int128" is undefined
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1421): error: identifier
"__int128" is undefined
         = __glibcxx_digits (__int128);
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1421): error: function
call is not allowed in a constant expression
         = __glibcxx_digits (__int128);
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1423): error: function
call is not allowed in a constant expression
         = __glibcxx_digits10 (__int128);
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1432): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1435): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1450): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1454): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1458): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1462): error: "__int128"
is not a type name
        static _GLIBCXX_CONSTEXPR __int128
                                  ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1410): error: expected a
")"
        min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (__int128); }
                                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1410): error: expected a
")"
        min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (__int128); }
                                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1410): error: expected a
")"
        min() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_min (__int128); }
                                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1413): error: expected a
")"
        max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (__int128); }
                                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1413): error: expected a
")"
        max() _GLIBCXX_USE_NOEXCEPT { return __glibcxx_max (__int128); }
                                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1452): error: "__int128"
is not a type name
        { return static_cast<__int128>(0); }
                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1456): error: "__int128"
is not a type name
        { return static_cast<__int128>(0); }
                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1460): error: "__int128"
is not a type name
        { return static_cast<__int128>(0); }
                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1464): error: "__int128"
is not a type name
        { return static_cast<__int128>(0); }
                             ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1479): error: expected a
">"
      struct numeric_limits<unsigned __int128>
                                     ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1484): error: expected a
";"
        min() _GLIBCXX_USE_NOEXCEPT { return 0; }
        ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1497): error: expected a
")"
         = __glibcxx_digits10 (unsigned __int128);
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1497): error: expected a
")"
         = __glibcxx_digits10 (unsigned __int128);
           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1506): error: "__int128"
has already been declared in the current scope
        static _GLIBCXX_CONSTEXPR unsigned __int128
                                           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1507): error: expected a
";"
        epsilon() _GLIBCXX_USE_NOEXCEPT { return 0; }
        ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1524): error: "__int128"
has already been declared in the current scope
        static _GLIBCXX_CONSTEXPR unsigned __int128
                                           ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/limits(1525): error: expected a
";"
        infinity() _GLIBCXX_USE_NOEXCEPT
        ^

/opt/sharcnet/gcc/4.9.3/include/c++/4.9.3/bits/c++0x_warning.h(32):
catastrophic error: #error directive: This file requires compiler and
library support for the ISO C++ 2011 standard. This support is currently
experimental, and must be enabled with the -std=c++11 or -std=gnu++11
compiler options.
  #error This file requires compiler and library support for the \
   ^

compilation aborted for
/home/hzhan338/libosmium/test/t/area/test_area_id.cpp (code 4)
make[2]: ***
[test/CMakeFiles/area_test_area_id.dir/t/area/test_area_id.cpp.o] Error 4
make[1]: *** [test/CMakeFiles/area_test_area_id.dir/all] Error 2
make: *** [all] Error 2
---------------------------------------------------------------------------------------------------------------------------------------------------

Could someone help me solve this issue? Thanks!


*Hongyu Zhang *
MSc Candidate | University of Western Ontario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20160526/2dec5a9d/attachment.html>


More information about the dev mailing list