LinuxSir.cn,穿越时空的Linuxsir!

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

howto save the information when we complie some package

[复制链接]
发表于 2003-11-21 17:19:53 | 显示全部楼层 |阅读模式
i am fresh to lfs, but now i decide to install it in some days. now i'm affraid about errors occurs. so who can tell me howto save the information  (of course, include errors information) when we compile some package?
 楼主| 发表于 2003-11-21 18:53:17 | 显示全部楼层
when i compile Glibc, it prints a lot of warnings, such as below. how can i do ........



programs/ld-time.c:1123: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1124: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1125: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1126: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1127: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1128: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1129: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1130: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1131: warning: called from here
programs/linereader.h:147: warning: inlining failed in call to `lr_ignore_rest'
programs/ld-time.c:1132: warning: called from here
发表于 2003-11-21 19:25:23 | 显示全部楼层
一般错误可以忽略。。。。。
 楼主| 发表于 2003-11-22 07:38:50 | 显示全部楼层
3ks
 楼主| 发表于 2003-11-22 08:59:00 | 显示全部楼层
第二遍编译gcc:在运行make -k check
结果为

                === g++ Summary ===

# of expected passes            8109
# of unexpected failures        1
# of unexpected successes       1
# of expected failures          94
# of untested testcases         9
# of unsupported tests          14
/mnt/lfs/sources/gcc-build/gcc/testsuite/../g++ version 3.3.1


make[2]: [check-g++] Error 1 (ignored)
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'

上面的Error是否可以忽略?
发表于 2003-11-22 09:08:02 | 显示全部楼层
你中间漏看了gcc和libstdc++的测试结果.
不过我觉得应该过了.
 楼主| 发表于 2003-11-22 11:47:59 | 显示全部楼层
谢谢,那我可以继续往下了?
 楼主| 发表于 2003-11-22 13:06:49 | 显示全部楼层
高手能不能帮我看看测试../gcc-3.3.1/contrib/test_summary | more的结果是否正常?我可以往下做吗,在线等。谢谢!

-bash-2.05b$ ../gcc-3.3.1/contrib/test_summary | more
tail: ../gcc-3.3.1/LAST_UPDATED: No such file or directory
cat <<'EOF' |
LAST_UPDATED:
Native configuration is i686-pc-linux-gnu

                === g++ tests ===


Running target unix
FAIL: g++.dg/tls/init-2.C (test for excess errors)
XPASS: g++.other/init5.C  Execution test

                === g++ Summary ===

# of expected passes            8109
# of unexpected failures        1
# of unexpected successes       1
# of expected failures          94
# of untested testcases         9
# of unsupported tests          14
/mnt/lfs/sources/gcc-build/gcc/testsuite/../g++ version 3.3.1

                === gcc tests ===


Running target unix
FAIL: gcc.dg/duff-2.c (test for excess errors)
FAIL: gcc.dg/uninit-C.c (test for excess errors)

                === gcc Summary ===

# of expected passes            21579
# of unexpected failures        2
# of expected failures          69
# of unsupported tests          85
/mnt/lfs/sources/gcc-build/gcc/xgcc version 3.3.1


                === libstdc++-v3 check-abi Summary ===

# of added symbols:              0
# of missing symbols:            0
# of incompatible symbols:       0
                === libstdc++-v3 tests ===


Running target unix
XPASS: 22_locale/collate_byname.cc execution test
XPASS: 22_locale/collate_members_char.cc execution test
XPASS: 22_locale/collate_members_wchar_t.cc execution test
XPASS: 22_locale/ctype_is_char.cc execution test
XPASS: 22_locale/ctype_is_wchar_t.cc execution test
XPASS: 22_locale/members.cc execution test
XPASS: 22_locale/money_get_members_char.cc execution test
XPASS: 22_locale/money_get_members_wchar_t.cc execution test
XPASS: 22_locale/money_put_members_char.cc execution test
XPASS: 22_locale/money_put_members_wchar_t.cc execution test
XPASS: 22_locale/moneypunct_byname.cc execution test
XPASS: 22_locale/moneypunct_members_char.cc execution test
XPASS: 22_locale/moneypunct_members_wchar_t.cc execution test
XPASS: 22_locale/num_get_members_char.cc execution test
XPASS: 22_locale/num_get_members_wchar_t.cc execution test
XPASS: 22_locale/num_put_members_char.cc execution test
XPASS: 22_locale/num_put_members_wchar_t.cc execution test
XPASS: 22_locale/numpunct_byname.cc execution test
XPASS: 22_locale/numpunct_members_char.cc execution test
XPASS: 22_locale/numpunct_members_wchar_t.cc execution test
XPASS: 22_locale/time_get_members_char.cc execution test
XPASS: 22_locale/time_get_members_wchar_t.cc execution test
XPASS: 22_locale/time_put_members_char.cc execution test
XPASS: 22_locale/time_put_members_wchar_t.cc execution test

                === libstdc++-v3 Summary ===

# of expected passes            453
# of unexpected successes       24
# of expected failures          4

Compiler version: 3.3.1
Platform: i686-pc-linux-gnu
configure flags: --host=i686-pc-linux-gnu --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
EOF
Mail -s "Results for 3.3.1 testsuite on i686-pc-linux-gnu" gcc-testresults@gcc.gnu.org &&
mv /mnt/lfs/sources/gcc-build/./gcc/testsuite/g++.sum /mnt/lfs/sources/gcc-build/./gcc/testsuite/g++.sum.sent &&
mv /mnt/lfs/sources/gcc-build/./gcc/testsuite/gcc.sum /mnt/lfs/sources/gcc-build/./gcc/testsuite/gcc.sum.sent &&
mv /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3-abi.sum /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3-abi.sum.sent &&
mv /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.sum /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.sum.sent &&
mv /mnt/lfs/sources/gcc-build/./gcc/testsuite/g++.log /mnt/lfs/sources/gcc-build/./gcc/testsuite/g++.log.sent &&
mv /mnt/lfs/sources/gcc-build/./gcc/testsuite/gcc.log /mnt/lfs/sources/gcc-build/./gcc/testsuite/gcc.log.sent &&
mv /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.log /mnt/lfs/sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.log.sent &&
true
-bash-2.05b$
发表于 2003-11-22 13:11:52 | 显示全部楼层
Just Go On
 楼主| 发表于 2003-11-22 13:25:32 | 显示全部楼层
呵呵,我狠狠心按下make install后,然后进行合理性检查,发现这个世界太美好了。

-bash-2.05b$ echo 'main(){}' > dummy.c
-bash-2.05b$ gcc dummy.c
-bash-2.05b$ readelf -l a.out | grep ': /tools'
      [Requesting program interpreter: /tools/lib/ld-linux.so.2]
-bash-2.05b$ rm dummy.c a.out
-bash-2.05b$

结果是正确的。太Happy了,我要继续往下做了。Go........
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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