LinuxSir.cn,穿越时空的Linuxsir!

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

在gcc3.2中make bootstrap时出错

[复制链接]
发表于 2003-4-19 12:47:40 | 显示全部楼层 |阅读模式
root:/static/src/gcc-build# make bootstrap
make[1]: Entering directory `/static/src/gcc-build/libiberty'
if [ x"-fpic" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
In file included from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:55: syntax error before "typedef"
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:60: parse error before "__USING_NAMESPACE_STD"
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h: In function `__USING_NAMESPACE_STD':
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:71: storage class specified for parameter `__FILE'
In file included from /usr/include/_G_config.h:14,
                 from /usr/include/libio.h:32,
                 from /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
                 from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stddef.h:294: storage class specified for parameter `wchar_t'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stddef.h:321: storage class specified for parameter `wint_t'
In file included from /usr/include/_G_config.h:24,
                 from /usr/include/libio.h:32,
                 from /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
                 from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/usr/include/wchar.h:72: parse error before "wint_t"
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:71: parm types given both in parmlist and separately
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:60: parameter name omitted
In file included from /usr/include/libio.h:32,
                 from /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
                 from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/usr/include/_G_config.h:29: `__mbstate_t' undeclared (first use in this function)
/usr/include/_G_config.h:29: (Each undeclared identifier is reported only once
/usr/include/_G_config.h:29: for each function it appears in.)
/usr/include/_G_config.h:29: parse error before "__state"
/usr/include/_G_config.h: At top level:
/usr/include/_G_config.h:30: ISO C forbids data definition with no type or storage class
/usr/include/_G_config.h:34: parse error before "__mbstate_t"
/usr/include/_G_config.h:35: ISO C forbids data definition with no type or storage class
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
                 from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/usr/include/gconv.h:158: parse error before "__mbstate_t"
/usr/include/gconv.h:159: ISO C forbids data definition with no type or storage
class
/usr/include/gconv.h:164: parse error before '}' token
/usr/include/gconv.h:172: field `__data' has incomplete type
/usr/include/gconv.h:173: confused by earlier errors, bailing out
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/static/src/gcc-build/libiberty'
make: *** [all-libiberty] Error 2
发表于 2003-4-19 13:06:49 | 显示全部楼层
你安装的是20021023么?
里面要打一个补丁,解压俩包,然后unset优化参数。还有就是build的那个目录要是空。
 楼主| 发表于 2003-4-19 13:13:04 | 显示全部楼层
那俩个包??
unset那优化参数-----它的变量名是什么?
发表于 2003-4-19 13:16:45 | 显示全部楼层
unset CFLAGS CXXFLAGS
还有一个包是linux-threads,要进到glibc-2.x的目录下解压。
 楼主| 发表于 2003-4-19 13:16:59 | 显示全部楼层
我没用什么优化参数啊?
它默认有吗?
 楼主| 发表于 2003-4-19 13:18:48 | 显示全部楼层
好象没有这两个变量.
root:/static/src/gcc-3.2# echo $CFLAGS

root:/static/src/gcc-3.2# echo $CXXFLAGS
发表于 2003-4-19 13:19:06 | 显示全部楼层
预防为主
 楼主| 发表于 2003-4-19 13:23:41 | 显示全部楼层
?都不存在了,预防也就没郊了?
那我的问题就不是在这两个变量上了?
发表于 2003-4-19 13:57:03 | 显示全部楼层
那你到底有没有解压linux-threads?
 楼主| 发表于 2003-4-19 14:15:40 | 显示全部楼层
只发现在glibc-linuxthreads.
在编译glibc时把它解压了。
现在是编译gcc
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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