windows - 在 Windows "#error "上构建 boost 时出错 Not ARM ""& "错误 : No best alternative for"

标签 windows boost mingw boost-build

我正在使用 mingw 在 Windows 上构建 boost 并收到诸如“#error“Not ARM””或“错误:没有最佳选择...”之类的错误。这些错误是我应该担心的,还是只是在测试它所构建的系统?默认输出中有很多噪音,但将输出的压缩版本放在下面。谢谢

...found 13 targets...
...updating 5 targets...
common.mkdir bbuild\boost\bin.v2\libs\context
common.mkdir bbuild\boost\bin.v2\libs\context\config
common.mkdir bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1
common.mkdir bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug
gcc.compile.c++ bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug\32.o
...updated 5 targets...
Performing configuration checks

    - 32-bit                   : yes
...found 2 targets...
...updating 1 target...
gcc.compile.c++ bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug\arm.o
E:\boost_1_54_0_win\libs\context\config\arm.cpp:12:2: error: #error "Not ARM"
 #error "Not ARM"
  ^

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g  -DBOOST_ALL_NO_LIB=1  -I"." -c -o "bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug\arm.o" "E:\boost_1_54_0_win\libs\context\config\arm.cpp"

...failed gcc.compile.c++ bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug\arm.o...
...failed updating 1 target...
    - arm                      : no
...found 2 targets...
...updating 1 target...
gcc.compile.c++ bbuild\boost\bin.v2\libs\context\config\gcc-mingw-4.8.1\debug\mips1.o
E:\boost_1_54_0_win\libs\context\config\mips1.cpp:10:2: error: #error "Not MIPS1"
 #error "Not MIPS1"
...
 #error "Not PPC"
...
 #error "Not SPARC"
...
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
...
libs\locale\src\..\build\has_icu_test.cpp:12:30: fatal error: unicode/uversion.h: No such file or directory
 #include <unicode/uversion.h>
                              ^
compilation terminated.
...
gcc.compile.c++ bbuild\boost\bin.v2\libs\locale\build\gcc-mingw-4.8.1\debug\has_icu64_obj.o
libs\locale\src\..\build\has_icu_test.cpp:12:30: fatal error: unicode/uversion.h: No such file or directory
 #include <unicode/uversion.h>
                              ^
compilation terminated.
...
g++: error: unrecognized command line option '-shared-libstdc++'
...
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)
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)
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)
...
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)
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)
    - zlib                     : yes (cached)
    - zlib                     : 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
    - zlib                     : 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
    - zlib                     : yes (cached)
...

Component configuration:

    - atomic                   : building
    - chrono                   : building
    - context                  : building
    - coroutine                : building
    - date_time                : building
    - exception                : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - locale                   : building
    - log                      : building
    - math                     : building
    - mpi                      : building
...

最佳答案

这是 boost-1.54 中的一个错误。您可以打开文件 lib/coroutine/build/Jamfile.v2 并替换此行:

    explicit yield_sources ;

    explicit allocator_sources ;

或者等待boost-1.55

关于windows - 在 Windows "#error "上构建 boost 时出错 Not ARM ""& "错误 : No best alternative for",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19276955/

相关文章:

c - 如何改进 Windows 中此 C open 调用的错误报告?

windows - 使用适用于 Windows 的 VBScript 刷新 Windows 任务栏?

windows - MFC-- 遇到致命的死亡钻石

c++ - 使用 MinGW GCC 4.5.0 配置 NetBeans 6.9 时遇到问题

c - 使用MinGW编译C代码,但报错liblto_plugin-0.dll not found?

c++ - 关闭一个窗口后如何防止Win32应用程序其他窗口变为非事件状态

c++ - boost 指针容器插入(ptr_list)

c++ boost format float - 如何指定我不想要 .和以下零

c++ - 在 Visual Studio 2008 中使用 Boost 1.40.0 的 boost::shared_ptr 的 Intellisense 失败

c++ - 找不到过程入口点 __gxx_personality_v0