LinuxSir.cn,穿越时空的Linuxsir!

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

痛苦ing。。。。。。。

[复制链接]
发表于 2009-2-27 15:33:04 | 显示全部楼层 |阅读模式
先说下~~本帖是水。。。表打我。。。


今天编译svn版lfs。。。。。到了构建最终系统  6.15 编译gcc 4.3.3这里。。。

一系列 设置编译。。。最后检查  完了没出错。。。刚要make install的时候  我脑子里当时不知在想啥,。,,,,给执行了 一条 make distclean。,。。。。。。尽管当时第一反应 马上按下了ctrl+c,,,但好像已经晚了。。。直接rm -rf  gcc-build从头来把~~


T-T.....我的机器太烂了。。编译需要 45分钟左右。。。测试需要 80分钟。。。。(我用time 命令)



想哭阿~~~现在需要在编译一次













现在 给了个教训。。。。在作你认为很重要的工作时。。不要三心二意。。例如听着音乐。。。想着美女(当然我可没^-^)









结果一条命令 时间就浪费了。。。。。
 楼主| 发表于 2009-2-27 15:38:11 | 显示全部楼层
ok...现在编译也完成了。。。接下来还要经过80分钟的测试



3/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -O2 -g -g -O2 -MT affinity.lo -MD -MP -MF .deps/affinity.Tpo -c ../../../gcc-4.3.3/libgomp/config/linux/affinity.c  -fPIC -DPIC -o .libs/affinity.o
libtool: compile:  /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 -DHAVE_CONFIG_H -I. -I../../../gcc-4.3.3/libgomp -I. -I../../../gcc-4.3.3/libgomp/config/linux/x86 -I../../../gcc-4.3.3/libgomp/config/linux -I../../../gcc-4.3.3/libgomp/config/posix -I../../../gcc-4.3.3/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -O2 -g -g -O2 -MT affinity.lo -MD -MP -MF .deps/affinity.Tpo -c ../../../gcc-4.3.3/libgomp/config/linux/affinity.c -o affinity.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC --mode=link /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 -Wall -Werror -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread -O2 -g -g -O2     -Wl,-O1   -o libgomp.la -rpath /usr/lib -version-info 1:0:0 -Wl,--version-script,../../../gcc-4.3.3/libgomp/libgomp.map alloc.lo barrier.lo critical.lo env.lo error.lo iter.lo loop.lo ordered.lo parallel.lo sections.lo single.lo team.lo work.lo lock.lo mutex.lo proc.lo sem.lo bar.lo time.lo fortran.lo affinity.lo  -lrt
libtool: link: /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 -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o .libs/error.o .libs/iter.o .libs/loop.o .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o .libs/bar.o .libs/time.o .libs/fortran.o .libs/affinity.o   -lrt  -march=i486 -mtune=i686 -pthread -Wl,-O1 -Wl,--version-script -Wl,../../../gcc-4.3.3/libgomp/libgomp.map -Wl,-soname -Wl,libgomp.so.1 -o .libs/libgomp.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libgomp.so.1" && ln -s "libgomp.so.1.0.0" "libgomp.so.1")
libtool: link: (cd ".libs" && rm -f "libgomp.so" && ln -s "libgomp.so.1.0.0" "libgomp.so")
libtool: link: /usr/i686-pc-linux-gnu/bin/ar rc .libs/libgomp.a  alloc.o barrier.o critical.o env.o error.o iter.o loop.o ordered.o parallel.o sections.o single.o team.o work.o lock.o mutex.o proc.o sem.o bar.o time.o fortran.o affinity.o
libtool: link: /usr/i686-pc-linux-gnu/bin/ranlib .libs/libgomp.a
libtool: link: creating libgomp.la
libtool: link: ( cd ".libs" && rm -f "libgomp.la" && ln -s "../libgomp.la" "libgomp.la" )
true  DO=all multi-do # make
make[4]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libgomp'
make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libgomp'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libgomp'
make[1]: Leaving directory `/sources/gcc-build'

real        45m34.496s
user        37m20.878s
sys        2m36.080s
root:/sources/gcc-build# time make -k check
make[1]: Entering directory `/sources/gcc-build'
make[2]: Entering directory `/sources/gcc-build/fixincludes'
autogen -T ../../gcc-4.3.3/fixincludes/check.tpl ../../gcc-4.3.3/fixincludes/inclhack.def
make[2]: autogen: Command not found
make[2]: *** [check] Error 127
make[2]: Leaving directory `/sources/gcc-build/fixincludes'
make[1]: *** [check-fixincludes] Error 2
make[2]: Entering directory `/sources/gcc-build/gcc'
Making a new config file...
echo "set tmpdir /sources/gcc-build/gcc/testsuite" >> ./tmp0
make[3]: Entering directory `/sources/gcc-build/gcc'
test -d testsuite || mkdir testsuite
test -d testsuite/gcc || mkdir testsuite/gcc
(rootme=`${PWDCMD-pwd}`; export rootme; \
        srcdir=`cd ../../gcc-4.3.3/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
        cd testsuite/gcc; \
        rm -f tmp-site.exp; \
        sed '/set tmpdir/ s|testsuite|testsuite/gcc|' \
                < ../../site.exp > tmp-site.exp; \
        /bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \
        EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
        if [ -f ${rootme}/../expect/expect ] ; then  \
           TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
            export TCL_LIBRARY ; fi ; \
        GCC_EXEC_PREFIX="/usr/lib/gcc/" ; export GCC_EXEC_PREFIX ; \
        runtestflags= ; \
        if [ -n "" ] ; then \
          runtestflags=""; \
        elif [ -n "" ] ; then \
          parts="`echo '  ' \
                  | sed 's/=[^ ]* / /g'`"; \
          for part in `find $srcdir/testsuite/gcc* -name \*.exp` ; do \
            part=`basename $part` ; \
            case " $parts $runtestflags " in \
              *" $part "*) ;; \
              *) runtestflags="$runtestflags $part" ;; \
            esac ; \
          done ; \
        fi ; \
        `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc  $runtestflags)
WARNING: Couldn't find the global config file.
Test Run By root on Fri Feb 27 07:26:34 2009
Native configuration is i686-pc-linux-gnu

                === gcc tests ===

Schedule of variations:
    unix

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /sources/gcc-4.3.3/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /sources/gcc-4.3.3/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
回复 支持 反对

使用道具 举报

发表于 2009-2-27 16:41:54 | 显示全部楼层
其实可以不测试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-27 17:05:32 | 显示全部楼层
不亲自看到测试结果顺利~~心理始终不踏实。。。。。


还有好像svn版的lfs 编译gcc 最后测试的时候 好像有个lib啥的error了。。。。。但我觉得问题不大。。。。。。

(gnome 终端 回滚行 没了。。。记不清了。)汗。。忘记记下来了。。
回复 支持 反对

使用道具 举报

发表于 2009-3-24 02:40:49 | 显示全部楼层
呵呵,在.bashrc里加上 alias emerge="emerge -av",就安全多了
回复 支持 反对

使用道具 举报

发表于 2009-3-24 19:34:41 | 显示全部楼层
emerge?啥意思?

踩场???:beat
回复 支持 反对

使用道具 举报

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

本版积分规则

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