Skip to content

BOOST 1.87 (And 1.88.0 beta1) Context: Removed support for building with ucontext? #297

Open
@flarren1

Description

@flarren1

Hi,

I am currently using boost 1.84 in an application were I use boost context + boost fibers to achieve userland threading. This project also uses gcc sanitizers to check for vulnerabilities. Therefore I follow the instructions provided:
"Sanitizers (GCC/Clang) are confused by the stack switches. The library (and Boost.Context too) is required to be compiled with property (b2 command-line) context-impl=ucontext and compilers santizer options. Users must define BOOST_USE_ASAN before including any Boost.Context headers when linking against Boost binaries" (https://live.boost.org/doc/libs/1_87_0/libs/fiber/doc/html/fiber/stack/sanitizers.html)

This works fine for 1.84, but after trying to uplift to boost 1.87 i get the following issue:

./b2 -j8 define=BOOST_USE_UCONTEXT context-impl=ucontext
xxx/boost_1_87_0/tools/build/src/build/feature.jam:327: in validate-feature from module feature
error: unknown feature context-impl
xxx/boost_1_87_0/tools/build/src/build/feature.jam:361: in expand-subfeatures-aux from module feature
xxx/boost_1_87_0/tools/build/src/build/feature.jam:422: in feature.expand-subfeatures from module feature
xxx/ in apply-to-property-set from module build-request
(builtin):-1: in sequence.transform from module sequence
xxx/boost_1_87_0/tools/build/src/build/build-request.jam:32: in build-request.expand-no-defaults from module build-request
xxx/boost_1_87_0/tools/build/src/build-system.jam:778: in module scope from module build-system

The same command worked fine with 1.84 and I cannot see any differences in the documentation that says the feature flag has changed.
Any ideas?

Thanks and best regards
Anders

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