LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1218|回复: 10

求助:安装kde-4过程中boost安装失败[已解决]

[复制链接]
发表于 2008-6-16 15:35:49 | 显示全部楼层 |阅读模式
我实在vm上装的gentoo,在emerge kde-4的过程中编译boost出错,大家帮忙看看我应该怎么解决
make.conf
##########################################
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

GENTOO_MIRRORS="http://61.135.158.199"
SYNC="rsync://61.135.158.199/gentoo-portage"

LINGUAS="zh_CN"

MAKEOPTS="-j5"
ACCEPT_KEYWORDS="~x86"
USE="unicode -qt3 -cups cjk -eds -esd -gnome -games -dlloader -firefox opengl en zh_CN nls"
##########################################
build.log:

Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-libs/boost-1.35.0-r1 to /
* boost_1_35_0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                       [ ok ]
* boost-patches-1.35.0-2.tbz2 RMD160 SHA1 SHA256 size ;-) ...                                                                [ ok ]
* checking ebuild checksums ;-) ...                                                                                          [ ok ]
* checking auxfile checksums ;-) ...                                                                                         [ ok ]
* checking miscfile checksums ;-) ...                                                                                        [ ok ]
* checking boost_1_35_0.tar.bz2 ;-) ...                                                                                      [ ok ]
* checking boost-patches-1.35.0-2.tbz2 ;-) ...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking boost_1_35_0.tar.bz2 to /var/tmp/portage/dev-libs/boost-1.35.0-r1/work
>>> Unpacking boost-patches-1.35.0-2.tbz2 to /var/tmp/portage/dev-libs/boost-1.35.0-r1/work
* Applying various patches (bugfixes/updates) ...
*   01_all_1.35.0-gcc-4.3-fixes-pulled_from_trunk.patch ...                                                                  [ ok ]
*   02_all_1.35.0-0001-serialization-gcc-4.3-compile-fixes.bug-1616-included.patch ...                                       [ ok ]
*   03_all_1.35.0-0001-spirit-gcc-4.3-fixes.bug-1617-not_included.patch ...                                                  [ ok ]
*   04_all_1.35.0-0001-mpl-g-4.3-fix.bug-1528-not-included.patch ...                                                         [ ok ]
*   05_all_1.35.0-0001-date_time-gcc-4.3-fix.bug-1615-not_included.patch ...                                                 [ ok ]
*   06_all_1.35.0-0002-serialisation-utility-include.bug-1822-not_included.patch ...                                         [ ok ]
*   07_all_1.35.0-fix_mpi_installation.patch ...                                                                             [ ok ]
*   08_all_1.35.0-use_shared_expat.patch ...                                                                                 [ ok ]
* Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/boost-1.35.0-r1/work/boost_1_35_0 ...
* Writing new user-config.jam
* Using the following options to build:
*   gentoorelease --without-mpi --user-config=/var/tmp/portage/dev-libs/boost-1.35.0-r1/work/boost_1_35_0/user-config.jam --boost-build=/usr/share/boost-build
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
Skipping build of:  ./headers  <build>no in common properties
Skipping build of:  ./stage-unversioned  <build>no in common properties
Skipping build of:  ./install-unversioned  <build>no in common properties
Skipping build of:  ./build_all  <build>no in common properties
Skipping build of:  ./headers  <build>no in common properties
Skipping build of:  ./stage-unversioned  <build>no in common properties
Skipping build of:  ./install-unversioned  <build>no in common properties
Skipping build of:  ./build_all  <build>no in common properties
...patience...
...patience...
...found 4867 targets...
...updating 1162 targets...
MkDir1 bin.v2
MkDir1 bin.v2/libs
MkDir1 bin.v2/libs/serialization
MkDir1 bin.v2/libs/signals
MkDir1 bin.v2/libs/test
MkDir1 bin.v2/libs/thread
MkDir1 bin.v2/libs/thread/build
MkDir1 bin.v2/libs/test/build
MkDir1 bin.v2/libs/signals/build
MkDir1 bin.v2/libs/wave
MkDir1 bin.v2/libs/wave/build
MkDir1 bin.v2/libs/signals/build/gcc-4.1
MkDir1 bin.v2/libs/test/build/gcc-4.1
MkDir1 bin.v2/libs/serialization/build
MkDir1 bin.v2/libs/serialization/build/gcc-4.1
MkDir1 bin.v2/libs/test/build/gcc-4.1/gentoorelease
MkDir1 bin.v2/libs/thread/build/gcc-4.1
MkDir1 bin.v2/libs/thread/build/gcc-4.1/gentoorelease
MkDir1 bin.v2/libs/signals/build/gcc-4.1/gentoorelease
MkDir1 bin.v2/libs/wave/build/gcc-4.1
MkDir1 bin.v2/libs/wave/build/gcc-4.1/gentoorelease
gcc.compile.c++ bin.v2/libs/signals/build/gcc-4.1/gentoorelease/connection.o
gcc.compile.c++ bin.v2/libs/test/build/gcc-4.1/gentoorelease/execution_monitor.o
gcc.compile.c++ bin.v2/libs/signals/build/gcc-4.1/gentoorelease/trackable.o
gcc.compile.c++ bin.v2/libs/test/build/gcc-4.1/gentoorelease/debug.o


gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_exprgrammar.o
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.

    "i686-pc-linux-gnu-g++"  -ftemplate-depth-128 -march=prescott -O2 -pipe -fomit-frame-pointer -finline-functions -Wno-inline -Wall -fPIC  -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_exprgrammar.o" "libs/wave/src/instantiate_cpp_exprgrammar.cpp"

...failed gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_exprgrammar.o...
...removing bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_exprgrammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_defined_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_predef_macros.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_literalgrs.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1/gentoorelease/instantiate_cpp_grammar.o
...failed updating 1 target...
...updated 23 targets...
*
* ERROR: dev-libs/boost-1.35.0-r1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2982:  Called die
* The specific snippet of code:
*       bjam ${NUMJOBS} -q ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared,static --prefix="${D}/usr" --layout=system || die "building boost failed";
*  The die message:
*   building boost failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/environment'.
*

* Messages for package dev-libs/boost-1.35.0-r1:

* Using the following options to build:
*   gentoorelease --without-mpi --user-config=/var/tmp/portage/dev-libs/boost-1.35.0-r1/work/boost_1_35_0/user-config.jam --boost-build=/usr/share/boost-build
*
* ERROR: dev-libs/boost-1.35.0-r1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2982:  Called die
* The specific snippet of code:
*       bjam ${NUMJOBS} -q ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared,static --prefix="${D}/usr" --layout=system || die "building boost failed";
*  The die message:
*   building boost failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/environment'
发表于 2008-6-16 19:09:58 | 显示全部楼层
Gentoo  的 Bugzilla 上没有找到。这里如果不能解决,您可以在 Gentoo 的 Bugzilla(http://bugs.gentoo.org/)上提交。还有就是,比起提供 /etc/make.conf,给出 emerge --info 中的信息可能更好。
回复 支持 反对

使用道具 举报

发表于 2008-6-17 03:31:43 | 显示全部楼层
如果你用的gcc-4.3 改成gcc-4.2试试能不能过。boost 1.35主要支持的编译器是gcc-4.2.x。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-17 09:30:51 | 显示全部楼层
哦,谢谢。我正在emerge gcc4.3.1
回复 支持 反对

使用道具 举报

发表于 2008-6-17 11:29:22 | 显示全部楼层
编译这个家伙,可以让我的系统资源耗尽
回复 支持 反对

使用道具 举报

发表于 2008-6-17 13:22:34 | 显示全部楼层
Post by 三翻领;1862928
编译这个家伙,可以让我的系统资源耗尽

记忆犹新!我也被搞死过一次……
回复 支持 反对

使用道具 举报

发表于 2008-6-17 13:51:53 | 显示全部楼层
好像已经解决了这个问题,现在boost-1.35-r1应该可以编译的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-17 15:01:42 | 显示全部楼层
我现在装了gcc4.2.4,gcc4.3.1。然后每个都试了几次,发现每次到了
gcc.archive bin.v2/libs/thread/build/gcc-(version)/gentoorelease/link-static/runtime-link-static/threading-multi/libboost_thread-mt-s.a这一步,机器就像死了一样。反映奇慢无比,VM的硬盘指示灯一直是亮的。这个持续很长时间。。。。持续到什么时候我没等到过,有时候等半个小时我就reboot了==!
回复 支持 反对

使用道具 举报

发表于 2008-6-17 15:42:11 | 显示全部楼层
内存不足(凑字数)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-17 15:54:32 | 显示全部楼层
真的么。。。我现在划分给我的wm的内存是768M。。。。改到1.5G试试--!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表