[Tile-serving] [openstreetmap/osm2pgsql] Compilation error while building (Issue #1692)
Omer717
notifications at github.com
Tue Jul 12 13:57:00 UTC 2022
Hey, I'm trying to build Nominatim using make and get the following error:
[ 2%] Building CXX object osm2pgsql/src/CMakeFiles/osm2pgsql_lib.dir/db-copy.cpp.o
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp: In member function ‘void db_copy_thread_t::sync_and_wait()’:
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:108:16: error: ‘make_unique’ is not a member of ‘std’
add_buffer(std::make_unique<db_cmd_sync_t>(std::move(barrier)));
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:108:46: error: expected primary-expression before ‘>’ token
add_buffer(std::make_unique<db_cmd_sync_t>(std::move(barrier)));
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp: In member function ‘void db_copy_thread_t::finish()’:
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:115:20: error: ‘make_unique’ is not a member of ‘std’
add_buffer(std::make_unique<db_cmd_finish_t>());
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:115:52: error: expected primary-expression before ‘>’ token
add_buffer(std::make_unique<db_cmd_finish_t>());
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:115:54: error: expected primary-expression before ‘)’ token
add_buffer(std::make_unique<db_cmd_finish_t>());
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp: In member function ‘void db_copy_thread_t::thread_t::operator()()’:
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:127:18: error: ‘make_unique’ is not a member of ‘std’
m_conn = std::make_unique<pg_conn_t>(m_conninfo);
^
/srv/nominatim/Nominatim-4.0.1/osm2pgsql/src/db-copy.cpp:127:44: error: expected primary-expression before ‘>’ token
m_conn = std::make_unique<pg_conn_t>(m_conninfo);
^
make[2]: *** [osm2pgsql/src/CMakeFiles/osm2pgsql_lib.dir/db-copy.cpp.o] Error 1
make[1]: *** [osm2pgsql/src/CMakeFiles/osm2pgsql_lib.dir/all] Error 2
make: *** [all] Error 2
Tried making using different gcc versions but to no success
GCC version 7.3.1
Make version 4.2.1
Thanks for the help.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1692
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/issues/1692 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220712/ef6697cf/attachment.htm>
More information about the Tile-serving
mailing list