在尝试构建提升时未能更新58个目标,发生了什么?

时间:2012-10-16 02:45:46

标签: c++ gcc boost build

用命令构建
[mirror@hugemeow boost_1_51_0]$ ./b2 --prefix=$HOME/ins/ins-boost2

并因以下消息而失败,为什么?

common.copy stage/lib/libboost_timer.a
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_literalgrs.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_defined_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_predef_macros.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_re2c_lexer.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_re2c_lexer_str.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/token_ids.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/wave_config_constant.o
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex/aq.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
gcc.archive bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/libboost_wave.a
common.copy stage/lib/libboost_wave.a
...failed updating 58 targets...
...skipped 12 targets...
...updated 887 targets...
[mirror@hugemeow boost_1_51_0]$ echo $?
1

此问题与Failed to build boostUnable to build Boost libraries with GCC不一致,我遵循指示链接 http://www.boost.org/doc/libs/1_51_0/more/getting_started/unix-variants.html

1 个答案:

答案 0 :(得分:15)

Boost有一些不是独立的库,需要安装第三方库。这些是:

  • Boost.IOStreams Bzip2过滤器
  • Boost.IOStreams Zlib过滤器
  • Boost.MPI
  • Boost.Python的
  • Boost.Regex ICU支持

如果您不安装这些依赖项,Boost.Build将跳过它们来解释您的构建消息。如果您需要可选组件,那么您还有更多工作要做。这在answer中有详细解释。