boost icon indicating copy to clipboard operation
boost copied to clipboard

lboost_system is not getting built

Open C1Ron opened this issue 6 months ago • 5 comments

I'm trying to build boost 1.87 from source on Debian 12.2.0

git checkout boost-1.87.0
./bootstrap.sh --with-libraries=system,thread
sudo ./b2 install

I've also tried

sudo ./b2 install --with-system --with-thread

Then

find /usr/local/lib -name "libboost_thread*"
  /usr/local/lib/libboost_thread.so.1.87.0
  /usr/local/lib/cmake/boost_thread-1.87.0/libboost_thread-variant-static.cmake
  /usr/local/lib/cmake/boost_thread-1.87.0/libboost_thread-variant-shared.cmake
  /usr/local/lib/libboost_thread.so
  /usr/local/lib/libboost_thread.a
find /usr/local/lib -name "libboost_system*"
# returns nothing

C1Ron avatar Aug 06 '25 11:08 C1Ron

it's header-only since Boost 1.69

Nekto89 avatar Aug 07 '25 08:08 Nekto89

Make sure to update git submodules after checking out tag.

Boost.System 1.87 should have a stub library. Boost.System 1.89 (e.g. master branch submodules) will only install headers (EDIT: see https://github.com/boostorg/system/commit/7a495bb46d7ccd808e4be2a6589260839b0fd3a3)

cho-m avatar Aug 13 '25 14:08 cho-m

i confirm that boost 1.89 not build "libboost_system" and 1.88 works well

dacorsa avatar Aug 15 '25 07:08 dacorsa

Looks like this issue can be closed then?

nigels-com avatar Aug 31 '25 04:08 nigels-com

Yes sure, but does the with-system flag do nothing then ?

C1Ron avatar Sep 04 '25 13:09 C1Ron