LinuxSir.cn,穿越时空的Linuxsir!

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

chroot之后安装GCC出现下列问题,是否能继续安装?

[复制链接]
发表于 2004-1-19 11:43:41 | 显示全部楼层 |阅读模式
以下是执行TEST套件产生的错误:

../gcc-3.3.1/contrib/test_summary
cat <<'EOF' |
tail: ../gcc-3.3.1/LAST_UPDATED: No such file or directory
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
/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          65
# of unsupported tests          85
/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/messages_byname.cc execution test
XPASS: 22_locale/messages_members_char.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       26
# of expected failures          2

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 /sources/gcc-build/./gcc/testsuite/g++.sum /sources/gcc-build/./gcc/testsuite/g++.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc.sum /sources/gcc-build/./gcc/testsuite/gcc.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3-abi.sum /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3-abi.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.sum /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/g++.log /sources/gcc-build/./gcc/testsuite/g++.log.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc.log /sources/gcc-build/./gcc/testsuite/gcc.log.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.log /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-v3.log.sent &&
true

我在/lfs/source/下建立了gcc-3.3.1和gcc-build两个文件夹

在后者之下(即chroot之后的/source/gcc-build)执行的configure和make
make check
之后执行ln -s ../usr/bin/cpp /lib

但是我的../usr之下没有/usr文件夹

然后我检查编译和连接是否正常
运行以下命令
root:/sources/gcc-build# echo 'main(){}' > dummy.c
root:/sources/gcc-build# gcc dummy.c
root:/sources/gcc-build# readelf -l a.out
执行结果如下


Elf file type is EXEC (Executable file)
Entry point 0x8048250
There are 6 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4
  INTERP         0x0000f4 0x080480f4 0x080480f4 0x00019 0x00019 R   0x1
      [Requesting program interpreter: /tools/lib/ld-linux.so.2]
  LOAD           0x000000 0x08048000 0x08048000 0x003f4 0x003f4 R E 0x1000
  LOAD           0x0003f4 0x080493f4 0x080493f4 0x00100 0x00104 RW  0x1000
  DYNAMIC        0x000404 0x08049404 0x08049404 0x000c8 0x000c8 RW  0x4
  NOTE           0x000110 0x08048110 0x08048110 0x00020 0x00020 R   0x4

Section to Segment mapping:
  Segment Sections...
   00
   01     .interp
   02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata
   03     .data .eh_frame .dynamic .ctors .dtors .jcr .got .bss
   04     .dynamic
   05     .note.ABI-tag

与检测标准不符
请问该怎么调整


离春节越来越近了。。。
惨。。。。
发表于 2004-1-19 12:23:08 | 显示全部楼层
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
这个结果是第六章再次调整工具链以前的还是以后的?如果是以前的,就是对的,如果调整工具链以后,还是这结果,就不行了。
 楼主| 发表于 2004-1-19 13:46:54 | 显示全部楼层
在chroot进/lfs分区,安装GCC之后

我想知道的是
最终的动态连接器应该处在哪个目录之下?

另外,如果上述结果不正确的话
最大的可能是哪个地方出了问题?
发表于 2004-1-19 13:47:58 | 显示全部楼层
最终的当然是在/lib下了。最大的可能就是你再次调整工具链时输入命令错了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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