我想用 gcc 4.5.2 在 Ubuntu 11.04 上构建所有的Boost库。所以我开始下载 tar.bz2 文件。我扩展了它。我运行 bootstrap.sh 并注意到它抱怨 unicode,所以我安装了:
sudo apt-get install libicu-dev
现在它似乎正在愉快地使用 unicode 构建。问题是我还想链接到 OpenMPI。哦哦。所以我添加using mpi ;
并./tools/build/v2/user-config.jam
运行了我的构建命令:
./bjam --layout=versioned --build-type=complete
并且 boost 打印出错误(我已经缩写了大段):
error: Duplicate name of actual target: <pstage/lib>mpi.so
error: previous virtual target { common%common.copy-mpi.so.PYTHON_EXTENSION {
...然后几页...
error: created from ./stage-proper
error: another virtual target { common%common.copy-mpi.so.PYTHON_EXTENSION {
...然后再多几页...
error: created from ./stage-proper
error: added properties: <debug-symbols>off <define>NDEBUG <inlining>full <library>object(file-target)@3501 <library>object(file-target)@3568 <library>object(file-target)@4171 <library>object(file-target)@4184 <library>object(searched-lib-target)@4066 <library>object(searched-lib-target)@4072 <library>object(searched-lib-target)@4078 <optimization>speed <runtime-debugging>off <variant>release <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/mpi/build/gcc-4.5.2/release/threading-multi <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/python/build/gcc-4.5.2/release/threading-multi <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/serialization/build/gcc-4.5.2/release/threading-multi
error: removed properties: <debug-symbols>on <inlining>off <library>object(file-target)@1244 <library>object(file-target)@1350 <library>object(file-target)@2378 <library>object(file-target)@2393 <library>object(searched-lib-target)@2217 <library>object(searched-lib-target)@2223 <library>object(searched-lib-target)@2229 <optimization>off <runtime-debugging>on <variant>debug <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/mpi/build/gcc-4.5.2/debug/threading-multi <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/python/build/gcc-4.5.2/debug/threading-multi <xdll-path>/home/mtibbits/src/boost_1_46_1/bin.v2/libs/serialization/build/gcc-4.5.2/debug/threading-multi
/home/mtibbits/src/boost_1_46_1/tools/build/v2/build/virtual-target.jam:490: in actualize-no-scanner from module object(file-target)@4661
/home/mtibbits/src/boost_1_46_1/tools/build/v2/build/virtual-target.jam:135: in object(file-target)@4661.actualize from module object(file-target)@4661
/home/mtibbits/src/boost_1_46_1/tools/build/v2/build-system.jam:748: in load from module build-system
/home/mtibbits/src/boost_1_46_1/tools/build/v2/kernel/modules.jam:283: in import from module modules
/home/mtibbits/src/boost_1_46_1/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/home/mtibbits/src/boost_1_46_1/boost-build.jam:17: in module scope from module
这似乎是一个可以追溯到 Boost 1.40的错误??但我知道其他人已经让这个工作。有谁知道让 Boost 1.46.1 与 openmpi 配合得很好所需的巫术?
注意:我一直在谷歌搜索,这似乎不是 Ubuntu 特有的问题——它出现在gentoo和其他地方。但是除了没有 mpi 的构建之外,我还没有找到任何具体的解决方案......我不能。
我很乐意发布整个日志、包版本等。