betatoy 发表于 2006-4-24 23:12:17

第一遍編譯完成的GCC編譯程序出現問題!

按照LFS幫助文檔的提示http://lfs.linuxsir.org/doc/lfs6.1zh/chapter05/glibc.html我完成了LFS的第一邊編譯. 所有的步驟全部按照幫助文檔的步驟嚴格執行. 黨我用第一遍的GCC編譯Tcl-8.4.9的時候出現了大規模的頭文件錯誤信息. 我用宿主系統的GCC編譯沒有出現任何問題. 各位誰能幫我看看

In file included from /mnt/hda6/lfs-temptools/include/_G_config.h:44,
               from /mnt/hda6/lfs-temptools/include/libio.h:32,
               from /mnt/hda6/lfs-temptools/include/stdio.h:72,
               from ./../generic/tcl.h:158,
               from ./../generic/tclInt.h:32,
               from ./../generic/regcustom.h:30,
               from ./../generic/regguts.h:38,
               from ./../generic/regcomp.c:33:
/mnt/hda6/lfs-temptools/include/gconv.h:72: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/gconv.h:88: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/gconv.h:97: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/gconv.h:174: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/gconv.h:177: error: parse error before '}' token
In file included from /mnt/hda6/lfs-temptools/include/libio.h:32,
               from /mnt/hda6/lfs-temptools/include/stdio.h:72,
               from ./../generic/tcl.h:158,
               from ./../generic/tclInt.h:32,
               from ./../generic/regcustom.h:30,
               from ./../generic/regguts.h:38,
               from ./../generic/regcomp.c:33:
/mnt/hda6/lfs-temptools/include/_G_config.h:47: error: field `__cd' has incomplete type
/mnt/hda6/lfs-temptools/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /mnt/hda6/lfs-temptools/include/stdio.h:72,
               from ./../generic/tcl.h:158,
               from ./../generic/tclInt.h:32,
               from ./../generic/regcustom.h:30,
               from ./../generic/regguts.h:38,
               from ./../generic/regcomp.c:33:
/mnt/hda6/lfs-temptools/include/libio.h:354: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/libio.h:363: error: parse error before "size_t"
/mnt/hda6/lfs-temptools/include/libio.h:479: error: parse error before "_IO_sgetn"
/mnt/hda6/lfs-temptools/include/libio.h:479: error: parse error before "size_t"

......

linky_fan 发表于 2006-4-25 14:36:11

做宿主的是什么系统? 推荐是使用lfs的livecd进行安装.

另: toolschain安装完的make check有没有问题

betatoy 发表于 2006-4-25 19:57:18

我用的就是LFS的LiveCD編譯的...

linky_fan 发表于 2006-4-25 20:58:10

那第六章开始那三个软件包的check怎么样? binutils, gcc glibc?
页: [1]
查看完整版本: 第一遍編譯完成的GCC編譯程序出現問題!