LFS 学习日记(第六章安装基本系统软件之 Mpfr 至 Gcc 安装 )

2010年08月19日 星期四

< Eee PC 900HA 上的虚拟机安装开始 >
file:///media/DATA/mdx/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/mpfr.html

time { ./configure --prefix=/usr --enable-thread-safe && make; } 2>&1 | tee /backup/installlogs/6mpfr.make.log
real    5m33.210s
user    4m4.303s
sys    4m21.520s

time { make check; } 2>&1 | tee /backup/installlogs/6mpfr.check.log
real    7m54.640s
user    6m3.339s
sys    5m33.261s

time { make install; } 2>&1 | tee /backup/installlogs/6mpfr.install.log
real    0m4.386s
user    0m1.908s
sys    0m3.132s

make html
mkdir -pv /usr/share/doc/mpfr-2.4.2
find . -name \*.html -type f -exec cp -v \{} /usr/share/doc/mpfr-2.4.2 \;

file:///media/DATA/mdx/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/file.html

6.15. File-5.04

time { ./configure --prefix=/usr && make; } 2>&1 | tee /backup/installlogs/6file.make.log
real    2m21.678s
user    1m7.900s
sys    2m9.116s

time { make check; } 2>&1 | tee /backup/installlogs/6file.check.log
real    0m3.771s
user    0m0.892s
sys    0m3.444s

time { make install; } 2>&1 | tee /backup/installlogs/6file.install.log
real    0m4.243s
user    0m1.032s
sys    0m4.236s

file:///media/DATA/mdx/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/gcc.html

6.16. GCC-4.4.3

time { ../gcc-4.4.3/configure --prefix=/usr \
    --libexecdir=/usr/lib --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-clocale=gnu --enable-languages=c,c++ \
    --disable-multilib --disable-bootstrap && make; } 2>&1 | tee /backup/installlogs/6gcc.make.log
real    52m15.495s
user    60m45.336s
sys    33m36.518s

time { ../gcc-4.4.3/configure --prefix=/usr \
    --libexecdir=/usr/lib --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-clocale=gnu --enable-languages=c,c++ \
    --disable-multilib --disable-bootstrap && make; } 2>&1 | tee /backup/installlogs/6gcc.make.single.log
real    112m53.771s
user    67m51.582s
sys     43m2.465s

time { make -k check; } 2>&1 | tee /backup/installlogs/6gcc.check.log
real    322m42.539s
user    297m2.966s
sys     309m23.076s
make[5]: *** [check-DEJAGNUnormal2] Error 1

2010年08月25日 星期三
因为前面在测试log中出现了 [check-DEJAGNUnormal2] Error 1 ,故在 900HA的虚拟机中再用一个编译进程进行编译,即去掉了 MAKEFLAGS='-j 2'的并行编译环境变量。

time { make -k check; } 2>&1 | tee /backup/installlogs/6gcc.check.single.log
real    6261m47.448s
user    201m21.167s
sys     284m30.887s
上面这个 SBU 数据如此大应该是 vmware 虚拟机中途保存状态休眠并在后来恢复运行的结果。
不知是不是去掉了 MAKEFLAGS='-j 2'的并行编译环境变量,上面的 check-DEJAGNUnormal2 的错误没有出现,与 http://www.linuxfromscratch.org/lfs/build-logs/6.6/core2duo/test-logs/076-gcc 的官方测试 log 对比,少了一个 [check-parallel-gcc] Error 1 (ignored) 错误。测试通过。
 

time { make install; } 2>&1 | tee /backup/installlogs/6file.install.log

< Eee PC 900HA 上的虚拟机安装结束 >

< E7400 上的虚拟机安装开始 >

注:这后面的安装均在 E7400 上的ubuntu 10.04 中的虚拟机进行。并且保证 E7400 的编译是始终连贯的,即不是把 900HA中的虚拟机的成果复制到其中。但 900HA 中的第6章zlib至gmp安装是直接复制了 E7400中的虚拟机。http://www.learndiary.com/home/space-1-do-blog-id-3809.html

2010年09月03日 星期五
/LFS6.6/LFS-BOOK-6.6-HTML/chapter06/gcc.html

question: cc dummy.c -v -Wl,--verbose &> dummy.log

http://tldp.org/LDP/abs/html/special-chars.html

question: Now make sure that we're setup to use the correct startfiles:

startfiles 是做什么的?
command &>filename redirects both the stdout  and the stderr of command  to filename.

执行测试命令: make -k check 后,执行 "../gcc-4.4.3/contrib/test_summary | grep -A7 Summ" 的结果如下(与http://www.linuxfromscratch.org/lfs/build-logs/6.6/core2duo/test-logs/076-gcc 中的相应结果比较好像failures 的数目还少点,没有仔细对比详细的log,继续进行下一节的内容。 ):

        === g++ Summary ===

# of expected passes        20139
# of expected failures        156
# of unsupported tests        99
/sources/gcc-build/gcc/testsuite/g++/../../g++  version 4.4.3 (GCC)

        === gcc tests ===
--
        === gcc Summary ===

# of expected passes        57700
# of unexpected failures    1
# of expected failures        191
# of unsupported tests        443
/sources/gcc-build/gcc/xgcc  version 4.4.3 (GCC)

--
        === libgomp Summary ===

# of expected passes        1009
        === libmudflap tests ===

Running target unix
FAIL: libmudflap.c++/pass41-frag.cxx execution test
--
        === libmudflap Summary ===

# of expected passes        1890
# of unexpected failures    4
        === libstdc++ tests ===

Running target unix
--
        === libstdc++ Summary ===

# of expected passes        5874
# of unexpected successes    1
# of expected failures        79
# of unsupported tests        336

Compiler version: 4.4.3 (GCC)

2010年09月06日 星期一

上面的 Gcc 安装没有生成log,这次恢复之前的备份,重复安装 GCC。

root:/sources/gcc-build# time { ../gcc-4.4.3/configure --prefix=/usr     --libexecdir=/usr/lib --enable-shared     --enable-threads=posix --enable-__cxa_atexit     --enable-clocale=gnu --enable-languages=c,c++     --disable-multilib --disable-bootstrap && make; } 2>&1 | tee /backup/installlogs/6gcc.make.log
real    8m7.708s
user    9m56.929s
sys     4m31.209s

root:/sources/gcc-build# time { make -k check; } 2>&1 | tee /backup/installlogs/6gcc.check.log
real    53m0.732s
user    33m41.510s
sys     41m50.489s

                === g++ Summary ===

# of expected passes            20139
# of expected failures          156
# of unsupported tests          99
/sources/gcc-build/gcc/testsuite/g++/../../g++  version 4.4.3 (GCC)

                === gcc tests ===
--
                === gcc Summary ===

# of expected passes            57699
# of unexpected failures        2
# of expected failures          191
# of unsupported tests          443
/sources/gcc-build/gcc/xgcc  version 4.4.3 (GCC)

--
                === libgomp Summary ===

# of expected passes            1009
                === libmudflap tests ===

Running target unix
FAIL: libmudflap.c++/pass41-frag.cxx execution test
--
                === libmudflap Summary ===

# of expected passes            1886
# of unexpected failures        8
                === libstdc++ tests ===

Running target unix
--
                === libstdc++ Summary ===

# of expected passes            5874
# of unexpected successes       1
# of expected failures          79
# of unsupported tests          336

Compiler version: 4.4.3 (GCC)
其中出现的两处 unexpected failures分别为:
gcc Summary
# of unexpected failures    2
FAIL: gcc.c-torture/compile/limits-structnest.c  -O3 -g  (test for excess errors)
FAIL: gcc.c-torture/compile/limits-structnest.c  -Os  (test for excess errors)

和:
libmudflap Summary
# of unexpected failures    8
FAIL: libmudflap.c++/pass41-frag.cxx execution test
FAIL: libmudflap.c++/pass41-frag.cxx (-static) execution test
FAIL: libmudflap.c++/pass41-frag.cxx (-O2) execution test
FAIL: libmudflap.c++/pass41-frag.cxx (-O3) execution test
Running /sources/gcc-4.4.3/libmudflap/testsuite/libmudflap.c++/ctors.exp ...
Running /sources/gcc-4.4.3/libmudflap/testsuite/libmudflap.cth/cthfrags.exp ...
WARNING: program timed out.
FAIL: libmudflap.cth/pass40-frag.c execution test
FAIL: libmudflap.cth/pass40-frag.c output pattern test
WARNING: program timed out.
FAIL: libmudflap.cth/pass40-frag.c (-static -DSTATIC) execution test
FAIL: libmudflap.cth/pass40-frag.c (-static -DSTATIC) output pattern test

按照 LFS BOOK 6.6 的提到的比较 http://gcc.gnu.org/ml/gcc-testresults/ 上的结果均有据可查,故略过。后面的dummy.c 编译测试通过。

另,[check-DEJAGNUnormal2] Error 1 的错误仍然出现在 E7400 虚拟机中的并行编译模式下,鉴于在前面的 900HA 中的虚拟机在并行编译编译时也出现,但在单进程编译中消失的情况来看,忽略这个错误。

One thought on “LFS 学习日记(第六章安装基本系统软件之 Mpfr 至 Gcc 安装 )”

Comments are closed.