安装 boost_1_54 时出错

安装 boost_1_54 时出错

尝试安装 boost 时,我在配置检查期间收到此错误。谷歌搜索没有给出任何提示。

[root@heracles boost_1_54_0]# ./b2 install
Performing configuration checks

    - 32-bit                   : no  (cached)
    - 64-bit                   : yes (cached)
    - arm                      : no  (cached)
    - mips1                    : no  (cached)
    - power                    : no  (cached)
    - sparc                    : no  (cached)
    - x86                      : yes (cached)
error: No best alternative for libs/coroutine/build/allocator_sources
    next alternative: required properties: <link>static <target-os>windows <threading>multi
        not matched
    next alternative: required properties: <link>static <segmented-stacks>on <threading>multi
        not matched
    next alternative: required properties: <link>static <threading>multi
        not matched
    - has_icu builds           : no  (cached)
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - zlib                     : yes (cached)
    - iconv (libc)             : yes (cached)
    - icu                      : no  (cached)
    - icu (lib64)              : no  (cached)
    - compiler-supports-ssse3  : yes (cached)
    - compiler-supports-avx2   : no  (cached)
    - gcc visibility           : yes (cached)
    - long double support      : yes (cached)
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
error: No best alternative for libs/coroutine/build/allocator_sources
    next alternative: required properties: <link>static <target-os>windows <threading>multi
        not matched
    next alternative: required properties: <link>static <segmented-stacks>on <threading>multi
        not matched
    next alternative: required properties: <link>static <threading>multi
        not matched
    - zlib                     : yes (cached)

如何找到分配器源的替代方案?

谢谢。

答案1

这是 boost 中的一个错误。要修复它,请打开文件lib/coroutine/build/Jamfile.v2并替换此行:

explicit yield_sources ;

有了这个:

explicit allocator_sources ;

或者等待错误修复版本。

相关内容