QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1357|回复: 3

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

[复制链接]
发表于 2006-4-24 23:12:17 | 显示全部楼层 |阅读模式
按照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"

......
发表于 2006-4-25 14:36:11 | 显示全部楼层
做宿主的是什么系统? 推荐是使用lfs的livecd进行安装.

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

使用道具 举报

 楼主| 发表于 2006-4-25 19:57:18 | 显示全部楼层
我用的就是LFS的LiveCD編譯的...
回复

使用道具 举报

发表于 2006-4-25 20:58:10 | 显示全部楼层
那第六章开始那三个软件包的check怎么样? binutils, gcc glibc?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-7-3 13:55 , Processed in 0.109501 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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