LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.3安装gcc-4.1.2时出错!

[复制链接]
发表于 2008-10-22 06:31:36 | 显示全部楼层 |阅读模式
哪位帮忙看看。
版本:LFS6.3
在安装第6章的gcc-4.1.2时,执行
make -k check
出现以下信息后就退出了。

make[3]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[1]: Target `check-target' not remade because of errors.
make[1]: Leaving directory `/sources/gcc-build'
make: *** [do-check] Error 2
make: Target `check' not remade because of errors.

执行../gcc-4.1.2/contrib/test_summary后显示:

root:/sources/gcc-build# ../gcc-4.1.2/contrib/test_summary
cat <<'EOF' |
LAST_UPDATED: Obtained from SVN: tags/gcc_4_1_2_release revision 121944

Native configuration is i686-pc-linux-gnu

                === g++ tests ===


Running target unix
XPASS: g++.dg/tree-ssa/pr14814.C scan-tree-dump-times &this 0
XPASS: g++.old-deja/g++.other/init5.C execution test

                === g++ Summary ===

# of expected passes            12408
# of unexpected successes       2
# of expected failures          66
# of unsupported tests          69
/sources/gcc-build/gcc/testsuite/g++/../../g++  version 4.1.2

                === gcc tests ===


Running target unix
XPASS: gcc.dg/cpp/cmdlne-dI-M.c scan-file (^|\\\\n)cmdlne-dI-M.*:[^\\\\n]*cmdlne-dI-M.c
XPASS: gcc.dg/cpp/cmdlne-dM-M.c scan-file (^|\\\\n)cmdlne-dM-M[^\\\\n]*:[^\\\\n]*cmdlne-dM-M.c

                === gcc Summary ===

# of expected passes            38985
# of unexpected successes       2
# of expected failures          99
# of untested testcases         28
# of unsupported tests          246
/sources/gcc-build/gcc/xgcc  version 4.1.2

                === libmudflap tests ===


Running target unix

                === libmudflap Summary ===

# of expected passes            1799
                === libstdc++ tests ===


Running target unix
XPASS: 26_numerics/cmath/c99_classification_macros_c.cc (test for excess errors)

                === libstdc++ Summary ===

# of expected passes            3398
# of unexpected successes       1
# of expected failures          12
# of unsupported tests          324

Compiler version: 4.1.2
Platform: i686-pc-linux-gnu
configure flags: --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
EOF
Mail -s "Results for 4.1.2 testsuite on i686-pc-linux-gnu" gcc-testresults@gcc.gnu.org &&
mv /sources/gcc-build/./gcc/testsuite/g++/g++.sum /sources/gcc-build/./gcc/testsuite/g++/g++.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc/gcc.sum /sources/gcc-build/./gcc/testsuite/gcc/gcc.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libmudflap/testsuite/libmudflap.sum /sources/gcc-build/./i686-pc-linux-gnu/libmudflap/testsuite/libmudflap.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/g++/g++.log /sources/gcc-build/./gcc/testsuite/g++/g++.log.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc/gcc.log /sources/gcc-build/./gcc/testsuite/gcc/gcc.log.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libmudflap/testsuite/libmudflap.log /sources/gcc-build/./i686-pc-linux-gnu/libmudflap/testsuite/libmudflap.log.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.log /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.log.sent &&
true
发表于 2008-10-22 07:04:50 | 显示全部楼层
跳过继续,可以不理
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-22 07:11:59 | 显示全部楼层
你的意思是可以继续下面的安装吗?我已经进行到系统安装了,不是前面的环境搭建。
回复 支持 反对

使用道具 举报

发表于 2008-10-22 19:16:14 | 显示全部楼层
Go on, don't stop ;)
回复 支持 反对

使用道具 举报

发表于 2009-3-29 14:51:18 | 显示全部楼层
我的结果和楼主一样,继续进行安装后:
root:/sources/gcc-build# grep -o '/usr/lib.*/crt[1in].* .*' dummy.log
/usr/lib/crt1.o /usr/lib/crti.o /tools/lib/gcc/i686-pc-linux-gnu/4.1.2/crtbegin.o -L/tools/lib/gcc/i686-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2 -L/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/lib /tmp/ccbHfgRA.o --verbose -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /tools/lib/gcc/i686-pc-linux-gnu/4.1.2/crtend.o /usr/lib/crtn.o
/usr/lib/crt1.o succeeded
/usr/lib/crti.o succeeded
/usr/lib/crtn.o succeeded

root:/sources/gcc-build# grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
SEARCH_DIR("/tools/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/lib")
SEARCH_DIR("/lib");

发现SEARCH路径中不包括/usr/i686-pc-linux-gnu/lib,这个是由于spec造成的吗?该如何修正这个错误?安装两次了都是这样。这次安装gcc的时候需要打补丁吗?
回复 支持 反对

使用道具 举报

发表于 2009-3-31 23:10:40 | 显示全部楼层
第 6 章编译 gcc 不用打补丁
回复 支持 反对

使用道具 举报

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

本版积分规则

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