LinuxSir.cn,穿越时空的Linuxsir!

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

帮忙看看gcc 编译出错

[复制链接]
发表于 2004-2-7 08:36:50 | 显示全部楼层 |阅读模式
在第六章的第二遍安装gcc的时候make出的错误:
In file included from ../../gcc-3.3.2/gcc/crtstuff.c:62:
../../gcc-3.3.2/gcc/tsystem.h:72:19: stdio.h: No such file or directory
../../gcc-3.3.2/gcc/tsystem.h:75:23: sys/types.h: No such file or directory
../../gcc-3.3.2/gcc/tsystem.h:78:19: errno.h: No such file or directory
../../gcc-3.3.2/gcc/tsystem.h:85:20: string.h: No such file or directory
../../gcc-3.3.2/gcc/tsystem.h:89:20: stdlib.h: No such file or directory
../../gcc-3.3.2/gcc/tsystem.h:90:20: unistd.h: No such file or directory
In file included from /sources/gcc-build/gcc/include/syslimits.h:7,
                 from /sources/gcc-build/gcc/include/limits.h:11,
                 from ../../gcc-3.3.2/gcc/tsystem.h:93,
                 from ../../gcc-3.3.2/gcc/crtstuff.c:62:
/sources/gcc-build/gcc/include/limits.h:122:75: limits.h: No such file or directory
In file included from ../../gcc-3.3.2/gcc/crtstuff.c:62:
../../gcc-3.3.2/gcc/tsystem.h:96:18: time.h: No such file or directory
../../gcc-3.3.2/gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc-3.3.2/gcc/crtstuff.c:277: warning: passing arg 1 of `__deregister_frame_info_bases' discards qualifiers from pointer target type
../../gcc-3.3.2/gcc/crtstuff.c: In function `frame_dummy':
../../gcc-3.3.2/gcc/crtstuff.c:313: warning: passing arg 1 of `__register_frame_info_bases' discards qualifiers from pointer target type
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2

已经打过了gcc-3.3.2-no_fixinclude-1.patch,gcc-3.3.2-posix-head-tail.patch,gcc-3.3.2-specs-1.patch
 楼主| 发表于 2004-2-7 09:18:36 | 显示全部楼层
有鬼,我刚刚不打补丁,然后从新装了一遍,竟然一点问题都没有的就通过了编译……
那位大虾知道原因的能指点一下么?

免得以后又发生打补丁出问题的事。
什么补丁一定要打,什么补丁不能打??
发表于 2004-2-8 19:33:21 | 显示全部楼层
帮忙看看gcc 编译出错

在第六章的第二遍安装gcc的时候make出的错误:
是第5章的第二遍吧?
第6章就是已经在安装基本系统了呀。只有一次的编译的gcc吧。
如果是第5章的第二次你安装完之后,还得使用那个检测方法检测一下比较保险一点呀。
发表于 2004-2-8 21:59:53 | 显示全部楼层
在第五章的编译中gcc打了补钉gcc-3.3.2-specs-1.patch
把/usr/include从GCC的头文件搜索路径里删掉
在第六章显然不应该打这个补钉,否则在/usr/include中的头文件是不会被找到的,当然就出错了,我想是这个原因

看书要仔细看:-D
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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