LinuxSir.cn,穿越时空的Linuxsir!

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

求助lfs6.3 gcc make -k check

[复制链接]
发表于 2008-10-29 20:37:23 | 显示全部楼层 |阅读模式
按照《手把手教你如何建立自己的Linux系统 第二版》,虚拟机vm5.5。第一次敲命令到编译目标机器GCC时出现错误,以为是手工输入在某个地方有误。第二次 用ssh登陆复制粘贴命令还是出现次错误,无法做下去了,本来做得好晚搞得昨晚难以入眠,求助高人这是什么问题。附上错误信息,万分感谢!

make[4]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libmudflap'
make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libmudflap'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libmudflap'
make[2]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libssp'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-O2 -g -O2  " "CXXFLAGS=-g -O2  -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-g -O2 " "CFLAGS_FOR_TARGET=-O2 -g -O2  " "INSTALL=/tools/bin/install -c" "INSTALL_DATA=/tools/bin/install -c -m 644" "INSTALL_PROGRAM=/tools/bin/install -c" "INSTALL_SCRIPT=/tools/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-O2 -g -O2  " "LIBCFLAGS_FOR_TARGET=-O2 -g -O2  " "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "ICFLAG=" "ICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/info" "libdir=/usr/lib" "prefix=/usr" "includedir=/usr/include" "AR=ar" "AS=/sources/gcc-build/./gcc/as" "CC=/sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "CXX=/sources/gcc-build/./gcc/g++ -B/sources/gcc-build/./gcc/ -nostdinc++ -nostdinc++ -I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include -I/sources/gcc-4.1.2/libstdc++-v3/libsupc++ -I/sources/gcc-4.1.2/libstdc++-v3/include/backward -I/sources/gcc-4.1.2/libstdc++-v3/testsuite -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "LD=/sources/gcc-build/./gcc/collect-ld" "LIBCFLAGS=-O2 -g -O2  " "NM=/sources/gcc-build/./gcc/nm" "ICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[3]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libssp'
if [ -z "" ]; then \
          true; \
        else \
          rootpre=`${PWDCMD-pwd}`/; export rootpre; \
          srcrootpre=`cd ../../../gcc-4.1.2/libssp; ${PWDCMD-pwd}`/; export srcrootpre; \
          lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
          compiler="/sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include"; \
          for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
            dir=`echo $i | sed -e 's/;.*$//'`; \
            if [ "${dir}" = "." ]; then \
              true; \
            else \
              if [ -d ../${dir}/${lib} ]; then \
                flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
                if (cd ../${dir}/${lib}; make  \
                                CFLAGS="-O2 -g -O2   ${flags}" \
                                FCFLAGS=" ${flags}" \
                                FFLAGS=" ${flags}" \
                                ADAFLAGS=" ${flags}" \
                                prefix="/usr" \
                                exec_prefix="/usr" \
                                GCJFLAGS=" ${flags}" \
                                CXXFLAGS="-g -O2  -D_GNU_SOURCE ${flags}" \
                                LIBCFLAGS="-O2 -g -O2   ${flags}" \
                                LIBCXXFLAGS="-g -O2  -D_GNU_SOURCE -fno-implicit-templates ${flags}" \
                                LDFLAGS=" ${flags}" \
                                MULTIFLAGS="${flags}" \
                                DESTDIR="" \
                                INSTALL="/tools/bin/install -c" \
                                INSTALL_DATA="/tools/bin/install -c -m 644" \
                                INSTALL_PROGRAM="/tools/bin/install -c" \
                                INSTALL_SCRIPT="/tools/bin/install -c" \
                                all); then \
                  true; \
                else \
                  exit 1; \
                fi; \
              else true; \
              fi; \
            fi; \
          done; \
        fi
make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libssp'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libssp'
make[2]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'
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.
root:/sources/gcc-build# echo $?
2
root:/sources/gcc-build#
发表于 2008-10-29 20:42:02 | 显示全部楼层
如果是 make -k check 的错误,跳过算了,继续往後做。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 20:51:22 | 显示全部楼层
这个错误不会造成其他的错误吧??如果make -k check有错误可以跳过去,那为什么还要做,这个指令花接近了两个小时啊!?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 22:29:07 | 显示全部楼层

继续做下去E2fsprogs-1.40.2 到make check错误,

./tst_ostype
0: Linux (0)
1: Hurd (1)
2: Masix (2)
3: FreeBSD (3)
4: Lites (4)
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build/lib/e2p'
making check in lib/ext2fs
make[1]: Entering directory `/sources/e2fsprogs-1.40.2/build/lib/ext2fs'
        CC ../../../lib/ext2fs/tst_bitops.c
        LD tst_bitops
        CC ../../../lib/ext2fs/tst_badblocks.c
        LD tst_badblocks
        CC ../../../lib/ext2fs/tst_iscan.c
        LD tst_iscan
        CC ../../../lib/ext2fs/tst_byteswap.c
        LD tst_byteswap
        CC ../../../lib/ext2fs/tst_types.c
        LD tst_types
        LD tst_icount
        CC ../../../lib/ext2fs/tst_super_size.c
        LD tst_super_size
LD_LIBRARY_PATH=../../lib DYLD_LIBRARY_PATH=../../lib ./tst_bitops
ext2fs_test_bit appears to be correct
ext2fs_set_bit test succeeded.
ext2fs_clear_bit test succeed.
Failed to allocate scratch memory!
make[1]: *** [check] Error 1
make[1]: Leaving directory `/sources/e2fsprogs-1.40.2/build/lib/ext2fs'
make: *** [check-recursive] Error 1
root:/sources/e2fsprogs-1.40.2/build#
大伙,新人就是这么弱,有一个小错误都是致命的,无法做了,又看不懂怎么解它,帮帮忙啊!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 22:57:31 | 显示全部楼层
One of the E2fsprogs tests will attempt to allocate 256 MB of memory. If you do not have significantly more RAM
than this, it is recommended to enable sufficient swap space for the test. See Section 2.3, “Creating a File System on
the Partition” and Section 2.4, “Mounting the New Partition” for details on creating and enabling swap space.

手册是内功心法啊!没有错,退到root用swapon /dev/hda1把swap打开make check pass!嘿嘿,继续~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-31 00:55:17 | 显示全部楼层
root:/sources/sysklogd-1.4.1# make install
/usr/bin/install -o root -g root -m 644 sysklogd.8 /usr/share/man/man8/sysklogd.8
/usr/bin/install: invalid group `root'
make: *** [install_man] Error 1
root:/sources/sysklogd-1.4.1#
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-31 00:56:51 | 显示全部楼层
记录我编译的出错过程,希望遇到同样情况的怎么解掉了,把方法告诉我
回复 支持 反对

使用道具 举报

发表于 2009-7-31 08:36:19 | 显示全部楼层
楼上的birdsir,我也碰到了你第4帖和第六帖碰到了的问题了,你第4帖的解决说的能不能再清楚的一点呀,我也是新手我看不懂你说的"退回到root。。。"我没有办法解决啊我的QQ是342096581,麻烦你教我一下,谢谢
回复 支持 反对

使用道具 举报

发表于 2009-9-23 12:18:48 | 显示全部楼层
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.

这样的提示好像是因为你少执行了一步,少了   make   这一步
回复 支持 反对

使用道具 举报

发表于 2009-9-23 12:46:16 | 显示全部楼层
请详细阅读 LFS 手册关於 make check 之类的说明
回复 支持 反对

使用道具 举报

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

本版积分规则

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