LinuxSir.cn,穿越时空的Linuxsir!

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

gcc make install erroe

[复制链接]
发表于 2002-12-26 11:30:36 | 显示全部楼层 |阅读模式
make [1]bootstrap error2

不知道怎么回事,可以忽略吗?
发表于 2002-12-26 11:51:27 | 显示全部楼层
出错了,当然不能忽略
多贴出几行来
发表于 2002-12-26 11:52:02 | 显示全部楼层
详细一点,就是前面的一页,看是在安装什么的时候出了错?
 楼主| 发表于 2002-12-26 14:41:53 | 显示全部楼层
哦,gcc编译的时候好多内容,没办法知道哪里错了.
 楼主| 发表于 2002-12-26 14:51:24 | 显示全部楼层
/mnt/lfs/static/src/gcc-build/gcc/xgcc -shared-libgcc -B/mnt/lfs/static/src/gcc-build/gcc/ -nostdinc++ -L/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -L/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/static/i686-pc-linux-gnu/bin/ -B/static/i686-pc-linux-gnu/lib/ -isystem /static/i686-pc-linux-gnu/include -nostdinc++ -I/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include -I../../../../gcc-3.2/libstdc++-v3/libsupc++ -I../../../../gcc-3.2/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../gcc-3.2/libstdc++-v3/src/locale.cc -o locale.o
In file included from ../../../../gcc-3.2/libstdc++-v3/src/locale.cc:406:
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   static member function `static const short unsigned int*
   std::ctype<char>::classic_table()':
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: `
   __ctype_b' undeclared (first use this function)
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(int*, const short unsigned int*, bool,
   unsigned int)':
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:61: `
   __ctype_toupper' undeclared (first use this function)
/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:61: `
   __ctype_tolower' undeclared (first use this function)
make[4]: *** [locale.lo] Error 1
make[4]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/mnt/lfs/static/src/gcc-build'
make: *** [bootstrap] Error 2
 楼主| 发表于 2002-12-26 14:58:07 | 显示全部楼层
[lfs@LFS src]$ patch -Np1 -i ./gcc-3.2.patch
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|2002-08-18  H.J. Lu <hjl@gnu.org>
|
|       * calls.c (store_one_arg): Remove ATTRIBUTE_UNUSED on
|       variable_size. Mark any slots used for the argument as in-use
|       only if we can't pass all arguments to a library call in
|       registers.
|
|diff -uNr gcc-3.2.orig/gcc/calls.c gcc-3.2/gcc/calls.c
|--- gcc-3.2.orig/gcc/calls.c   2002-04-05 09:28:47.000000000 +1000
|+++ gcc-3.2/gcc/calls.c        2002-08-23 20:51:29.000000000 +1000
--------------------------
File to patch:

在patch的时候出来这个信息,先前我已经编译过一次,参数没设置好,出错的.所以,是不是因为已经patch过了的原因,所以不能patch第二次 ?
 楼主| 发表于 2002-12-26 14:59:42 | 显示全部楼层
这个解决了.
是我路径没弄好,呵呵.

最初由 pandajohn 发布
[lfs@LFS src]$ patch -Np1 -i ./gcc-3.2.patch
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|2002-08-18  H.J. Lu <hjl@gnu.org>
|
|       * calls.c (store_one_arg): Remove ATTRIBUTE_UNUSED on
|       variable_size. Mark any slots used for the argument as in-use
|       only if we can't pass all arguments to a library call in
|       registers.
|
|diff -uNr gcc-3.2.orig/gcc/calls.c gcc-3.2/gcc/calls.c
|--- gcc-3.2.orig/gcc/calls.c   2002-04-05 09:28:47.000000000 +1000
|+++ gcc-3.2/gcc/calls.c        2002-08-23 20:51:29.000000000 +1000
--------------------------
File to patch:

在patch的时候出来这个信息,先前我已经编译过一次,参数没设置好,出错的.所以,是不是因为已经patch过了的原因,所以不能patch第二次 ?
发表于 2002-12-26 15:20:31 | 显示全部楼层
你怎么在src下打patch??
打好patch后再编译一次看。(记得make clean或最好删来再解压)
 楼主| 发表于 2002-12-26 15:31:56 | 显示全部楼层
patch的问题我解决了,按照上面写的,已经显示patch了几个文件.
现在我又做了一遍,
把gcc-build和gcc-3.2.2的目录都删除了,重新解压缩,打patch,现在在configure和make中,不知道是make还是make install 错了,所以我把这两步分开了.上面的错误看不懂是什么.
可能是locale.lo有问题.
 楼主| 发表于 2002-12-26 16:22:59 | 显示全部楼层
唉,又编译了一遍,还是这个文体,出错信息和上面的一样.
我该怎么办>?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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