LinuxSir.cn,穿越时空的Linuxsir!

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

出错了,这是为什么呢?

[复制链接]
发表于 2003-5-22 21:53:20 | 显示全部楼层 |阅读模式
第二次编译GCC时,如下:

前面是重复的一大段的“
../../gcc-3.2/libiberty/regex.c:1422: warning: traditional C rejects string concatenation”这类的东西

../../gcc-3.2/libiberty/regex.c:1424: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1425: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1427: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c: In function `xregcomp':
../../gcc-3.2/libiberty/regex.c:8099: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: In function `xregerror':
../../gcc-3.2/libiberty/regex.c:8234: warning: unused parameter `preg'
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:325: storage class specified for parameter `wchar_t'
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stddef.h:354: 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-5-22 22:02:27 | 显示全部楼层
我用的是lfs-4.0rc1
发表于 2003-5-22 23:15:38 | 显示全部楼层
有没有解压gcc和g++两个包?
4.0rc1好像没分吧?我记不太清了。
 楼主| 发表于 2003-5-23 12:39:44 | 显示全部楼层
4.0只有一个包。解压以后,有libstdc++-v3的目录。

我下了另外的一个包,分gcc-core-3.2和gcc-g++-3.2,解了,仍然有错误。

我的LFS的第五章都没有出错。

编glibc的时候也没有错。

gcc的时候就不行了。
 楼主| 发表于 2003-5-23 12:40:31 | 显示全部楼层
我下了另外的一个包,分gcc-core-3.2和gcc-g++-3.2,解了,仍然有错误。
错误与一个包的相同。
我的系统使MDK-9.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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