osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Can't compile OSRM 6.0 for Debian 12 bookworm

Open simwin opened this issue 4 months ago • 0 comments

Issue

Can't compile OSRM 6.0 for Debian 12 bookworm

[ 66%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o In file included from /usr/include/boost/asio.hpp:23, from /home/sv/install/osrmLua5.3/osrm-backend/include/server/http/reply.hpp:6, from /home/sv/install/osrmLua5.3/osrm-backend/include/server/connection.hpp:5, from /home/sv/install/osrmLua5.3/osrm-backend/src/server/connection.cpp:1: /usr/include/boost/asio/awaitable.hpp: In constructor ‘boost::asio::awaitable<T, Executor>::awaitable(boost::asio::awaitable<T, Executor>&&)’: /usr/include/boost/asio/awaitable.hpp:68:19: error: ‘exchange’ is not a member of ‘std’; did you mean ‘std::atomic_impl::exchange’? 68 | : frame(std::exchange(other.frame, nullptr)) | ^~~~~~~~ In file included from /usr/include/c++/12/bits/shared_ptr_atomic.h:33, from /usr/include/c++/12/memory:78, from /usr/include/boost/asio/associated_allocator.hpp:19, from /usr/include/boost/asio.hpp:20: /usr/include/c++/12/bits/atomic_base.h:976:7: note: ‘std::__atomic_impl::exchange’ declared here 976 | exchange(_Tp* __ptr, _Val<_Tp> __desired, memory_order __m) noexcept | ^~~~~~~~ In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22, from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23, from /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14, from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42, from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25, from /usr/include/boost/smart_ptr/shared_ptr.hpp:29, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/date_time/time_clock.hpp:17, from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:10, from /usr/include/boost/asio/time_traits.hpp:23, from /usr/include/boost/asio/detail/timer_queue_ptime.hpp:22, from /usr/include/boost/asio/detail/deadline_timer_service.hpp:29, from /usr/include/boost/asio/basic_deadline_timer.hpp:25, from /usr/include/boost/asio.hpp:25: /usr/include/boost/bind.hpp: At global scope: /usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’ 36 | BOOST_PRAGMA_MESSAGE( | ^~~~~~~~~~~~~~~~~~~~ cc1plus: note: unrecognized command-line option ‘-Wno-ambiguous-reversed-operator’ may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option ‘-Wno-deprecated-comma-subscript’ may have been intended to silence earlier diagnostics gmake[2]: *** [CMakeFiles/SERVER.dir/build.make:104: CMakeFiles/SERVER.dir/src/server/connection.cpp.o] Ошибка 1 gmake[1]: *** [CMakeFiles/Makefile2:446: CMakeFiles/SERVER.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2

Steps to reproduce

sudo apt-get install git g++ cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-system-dev libboost-regex-dev libxml2-dev libsparsehash-dev libbz2-dev zlib1g-dev libzip-dev libgomp1 pkg-config libgdal-dev libboost-program-options-dev libboost-iostreams-dev libboost-test-dev libtbb-dev libexpat1-dev liblua5.4-dev libboost-all-dev

git clone https://github.com/Project-OSRM/osrm-backend.git cd osrm-backend/ mkdir -p build cd build cmake .. cmake --build .

Specifications

  • Operating system Debian 12 64 bit
  • Hardware CPU i7-6700k, 32 Gb RAM

simwin avatar Jun 13 '25 10:06 simwin