QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1530|回复: 5

LFS第二遍編譯GCC的時候出了大問題! 天崩地裂!

[复制链接]
发表于 2006-5-3 16:27:25 | 显示全部楼层 |阅读模式
我是按照http://lfs.linuxsir.org/doc/lfs6.1zh/chapter05/gcc-pass2.html嚴格操作的, 不知道這是什麽問題. 請各位不吝賜教. 我的第一編編譯已經完成

checking for the document directory.
Links are now set up to build a native compiler for i686-pc-linux-gnu.
In file included from ../../01-gcc-source/libiberty/../include/xregex.h:26,
                 from ../../01-gcc-source/libiberty/regex.c:195:
../../01-gcc-source/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `static' or type qualifiers in parameter array declarators
In file included from ../../01-gcc-source/libiberty/regex.c:649:
../../01-gcc-source/libiberty/regex.c: In function `byte_compile_range':
../../01-gcc-source/libiberty/regex.c:4548: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c: In function `xregcomp':
../../01-gcc-source/libiberty/regex.c:8043: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c: At top level:
../../01-gcc-source/libiberty/regex.c:8178: warning: unused parameter 'preg'
In file included from ../../01-gcc-source/libiberty/../include/xregex.h:26,
                 from ../../01-gcc-source/libiberty/regex.c:195:
../../01-gcc-source/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `static' or type qualifiers in parameter array declarators
In file included from ../../01-gcc-source/libiberty/regex.c:649:
../../01-gcc-source/libiberty/regex.c: In function `byte_compile_range':
../../01-gcc-source/libiberty/regex.c:4548: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c:4558: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c: In function `xregcomp':
../../01-gcc-source/libiberty/regex.c:8043: warning: signed and unsigned type in conditional expression
../../01-gcc-source/libiberty/regex.c: At top level:
../../01-gcc-source/libiberty/regex.c:8178: warning: unused parameter 'preg'
../../01-gcc-source/libiberty/concat.c: In function `concat_length':
../../01-gcc-source/libiberty/concat.c:112: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat_copy':
../../01-gcc-source/libiberty/concat.c:127: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat_copy2':
../../01-gcc-source/libiberty/concat.c:146: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat':
../../01-gcc-source/libiberty/concat.c:157: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `reconcat':
../../01-gcc-source/libiberty/concat.c:194: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat_length':
../../01-gcc-source/libiberty/concat.c:112: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat_copy':
../../01-gcc-source/libiberty/concat.c:127: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat_copy2':
../../01-gcc-source/libiberty/concat.c:146: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `concat':
../../01-gcc-source/libiberty/concat.c:157: warning: traditional C rejects ISO C style function definitions
../../01-gcc-source/libiberty/concat.c: In function `reconcat':
../../01-gcc-source/libiberty/concat.c:194: warning: traditional C rejects ISO C style function definitions
warning: structure `reg_info_def' used but not defined
warning: structure `basic_block_def' used but not defined
warning: structure `answer' used but not defined
warning: structure `cpp_macro' used but not defined
warning: structure `reg_info_def' used but not defined
warning: structure `basic_block_def' used but not defined
warning: structure `answer' used but not defined
warning: structure `cpp_macro' used but not defined
insn-conditions.c:753: warning: string length `534' is greater than the length `509' ISO C89 compilers are required to support
insn-conditions.c:1031: warning: string length `533' is greater than the length `509' ISO C89 compilers are required to support
insn-conditions.c:1553: warning: string length `597' is greater than the length `509' ISO C89 compilers are required to support
/usr/share/bison/bison.simple: In function `yyparse':
/usr/share/bison/bison.simple:923: warning: label `yyoverflowlab' defined but not used

Automaton `pentium'
       48 NDFA states,            138 NDFA arcs
       48 DFA states,             138 DFA arcs
       20 minimal DFA states,      82 minimal DFA arcs
      158 all insns         17 insn equivalence classes
   88 transition comb vector els,   340 trans table els: use comb vect
   88 state alts comb vector els,   340 state alts table els: use comb vect
  340 min delay table els, compression factor 2

Automaton `pentium_fpu'
       80 NDFA states,            172 NDFA arcs
       80 DFA states,             172 DFA arcs
       75 minimal DFA states,     162 minimal DFA arcs
      158 all insns          8 insn equivalence classes
  164 transition comb vector els,   600 trans table els: use comb vect
  164 state alts comb vector els,   600 state alts table els: use comb vect
  600 min delay table els, compression factor 1

Automaton `athlon'
      518 NDFA states,           1668 NDFA arcs
      518 DFA states,            1668 DFA arcs
       76 minimal DFA states,     328 minimal DFA arcs
      158 all insns         10 insn equivalence classes
  359 transition comb vector els,   760 trans table els: use simple vect
  359 state alts comb vector els,   760 state alts table els: use simple vect
  760 min delay table els, compression factor 2

Automaton `athlon_load'
      162 NDFA states,            855 NDFA arcs
      162 DFA states,             855 DFA arcs
      162 minimal DFA states,     855 minimal DFA arcs
      158 all insns         10 insn equivalence classes
1047 transition comb vector els,  1620 trans table els: use simple vect
1047 state alts comb vector els,  1620 state alts table els: use simple vect
1620 min delay table els, compression factor 2

Automaton `athlon_mult'
       16 NDFA states,             48 NDFA arcs
       16 DFA states,              48 DFA arcs
       16 minimal DFA states,      48 minimal DFA arcs
      158 all insns          4 insn equivalence classes
   50 transition comb vector els,    64 trans table els: use simple vect
   50 state alts comb vector els,    64 state alts table els: use simple vect
   64 min delay table els, compression factor 2

Automaton `athlon_fp'
    15522 NDFA states,          99908 NDFA arcs
    15522 DFA states,           99908 DFA arcs
      463 minimal DFA states,    3038 minimal DFA arcs
      158 all insns         21 insn equivalence classes
3057 transition comb vector els,  9723 trans table els: use comb vect
3057 state alts comb vector els,  9723 state alts table els: use comb vect
9723 min delay table els, compression factor 1

17012 all allocated states,     101385 all allocated arcs
20258 all allocated alternative states
4765 all transition comb vector els, 13107 all trans table els
4765 all state alts comb vector els, 13107 all state alts table els
13107 all min delay table els
    0 locked states num

  transformation: 0.024997, building DFA: 10.527400
  DFA minimization: 0.636903, making insn equivalence: 0.002000
all automaton generation: 11.315280, output: 0.154976
../../01-gcc-source/gcc/config/i386/i386.md:16257: warning: operand 1 missing mode?
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [insn-recog.o] Error 1
make: *** [all-gcc] Error 2
发表于 2006-5-4 00:00:28 | 显示全部楼层
./../01-gcc-source/gcc/config/i386/i386.md:16257: warning: operand 1 missing mode?


gcc版本和handbook里写的没有不同吧(建议参考一下lfs网站上的英文版本)?少了一个操作数, 改打的补丁打了没有, gcc的md5校验过没有?,编译的选项检查过没有?除此之外,似乎没什么更好的解释(我记得你以前说过你用的是lfs的livecd)
回复

使用道具 举报

 楼主| 发表于 2006-5-4 12:17:12 | 显示全部楼层
我LFS LiveCD的MD5值和LFS網站給的不一樣, 看來我還得從新下載ISO
回复

使用道具 举报

 楼主| 发表于 2006-5-4 18:28:10 | 显示全部楼层
我又重新下載了LFS LiveCD ISO 6.1.1-3這回MD5測試通過. 現在第二遍GCC能編譯了. 但我始終不明白爲什麽原來那個GCC會出錯.
回复

使用道具 举报

发表于 2006-5-4 23:33:26 | 显示全部楼层
但是我自己一般都不md5的

到现在都没啥大问题
回复

使用道具 举报

发表于 2006-5-5 16:30:51 | 显示全部楼层
电脑爆炸了么???
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-30 11:16 , Processed in 0.080569 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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