Skip to content

[bug] Boost 1.89.0 always build Serialization module #335

@uilianries

Description

@uilianries

Greetings!

This bug was originally reported by @stevenwdv on the issue conan-io/conan-center-index#28801.

When building Boost 1.89.0 from source, Boost Serialization is always built, even when configured not to be built. The same is not true for Boost 1.88.0, it works as expected: It does not generate boost_serialization when disabled;

BTW, I see no changes from 1.88.0 to 1.89.0: boost-1.88.0...boost-1.89.0 So it seems related to a transitive module.

Environment

OS: Linux (Ubuntu 22.04)
Compiler: GCC 11
Arch: AMD64
Build Type: Release
B2 Options: --without-serialization --without-graph --without-wave link=static

Steps to Reproduce

wget https://archives.boost.io/release/1.89.0/source/boost_1_89_0.tar.bz2
tar jxf boost_1_89_0.tar.bz2
cd boost_1_89_0/
./bootstrap.sh
./b2 --without-serialization --without-graph --without-wave  link=static install --prefix=/tmp/install-boost
find /tmp/install-boost/lib -type f -name "*serialization*"
/tmp/install-boost/lib/libboost_serialization.a

Build Log

Full build log shows disabled serialization, but installs libboost_serialization.a.

boost-1.89.0-no-serialization.log

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions