LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2006-4-24 23:16:00 | 显示全部楼层 |阅读模式
按照LFS幫助文檔的提示http://lfs.linuxsir.cn/doc/lfs6. ... S的第一邊編譯. 所有的步驟全部按照幫助文檔的步驟嚴格執行. 黨我用第一遍的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 00:26:25 | 显示全部楼层
为啥是 lfs-temptools 这个目录,好奇怪。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-25 19:54:50 | 显示全部楼层
lfs-temptools是我自己起的名字
回复 支持 反对

使用道具 举报

发表于 2006-4-25 20:41:58 | 显示全部楼层
/tools 那里去了呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-25 23:37:17 | 显示全部楼层
/mnt/hda6/lfs-temptools就是/tools 我只是換了個名字
回复 支持 反对

使用道具 举报

发表于 2006-4-25 23:56:02 | 显示全部楼层
别换,tools目录是不能换的。
回复 支持 反对

使用道具 举报

发表于 2006-4-25 23:57:35 | 显示全部楼层
好象有补丁里面是写着固定的/tools目录的,改了估计有些会出问题.
回复 支持 反对

使用道具 举报

发表于 2006-4-26 00:38:14 | 显示全部楼层
没错。是这个原因。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-26 21:19:16 | 显示全部楼层
謝謝 各位的幫助 我馬上去改了試試
回复 支持 反对

使用道具 举报

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

本版积分规则

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