LinuxSir.cn,穿越时空的Linuxsir!

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

求救,安装 GCC-3.2 时出错!!

[复制链接]
发表于 2002-12-30 01:56:53 | 显示全部楼层 |阅读模式
patch -Np1 -i ../gcc-3.2.patch &&
patch -Np1 -i ../gcc-3.2-nofixincludes-2.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.2/configure --prefix=/static \
   --disable-nls --disable-shared &&
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
make BOOT_LDFLAGS=-static bootstrap &&
make prefix=$LFS/static install &&
ln -s gcc $LFS/static/bin/cc

patching file gcc/calls.c
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file gcc/calls.c.rej
patching file gcc/calls.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file gcc/calls.c.rej
patching file gcc/config/i386/i386.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file gcc/config/i386/i386.h.rej
patching file gcc/expr.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file gcc/expr.c.rej

请教各位,大家都是怎么编译通过的???到底哪里有问题啊
:confused:
发表于 2002-12-30 09:09:04 | 显示全部楼层
1.你先将原来解压的目录删除后重新解压。
2.安装之前要把gcc和glibc的devel包全装上。
发表于 2002-12-30 16:47:54 | 显示全部楼层
你没有在gcc目录下运行这些命令吧?
发表于 2002-12-30 17:00:43 | 显示全部楼层
显然啊,patch都没找到代码
最初由 pandajohn 发布
你没有在gcc目录下运行这些命令吧?
 楼主| 发表于 2002-12-30 17:22:18 | 显示全部楼层
我是在 gcc 目录下运行的啊,我在试试了
发表于 2002-12-30 17:25:17 | 显示全部楼层
你先按kj说的,把gcc和gcc-build两个目录都删了,再重新解压。我觉得你可能是第五章的那个目录没删,又在第六章里打patch
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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