LinuxSir.cn,穿越时空的Linuxsir!

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

到第六章,编译gcc错误了

[复制链接]
发表于 2005-4-27 07:28:08 | 显示全部楼层 |阅读模式
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 61
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/i386/cygming.h gcc-3.4.1/gcc/config/i386/cygming.h
|--- gcc-3.4.1.orig/gcc/config/i386/cygming.h   2004-06-08 06:30:13.000000000 +0000
|+++ gcc-3.4.1/gcc/config/i386/cygming.h        2004-08-20 16:44:53.359740592 +0000
--------------------------
File to patch:
Skip this patch? [y] Y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 72
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/i386/i386-interix.h gcc-3.4.1/gcc/config/i386/i386-interix.h
|--- gcc-3.4.1.orig/gcc/config/i386/i386-interix.h      2004-01-31 06:18:20.000000000 +0000
|+++ gcc-3.4.1/gcc/config/i386/i386-interix.h   2004-08-20 16:44:25.168026384 +0000
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/ip2k/ip2k.c gcc-3.4.1/gcc/config/ip2k/ip2k.c
|--- gcc-3.4.1.orig/gcc/config/ip2k/ip2k.c      2004-01-31 06:18:25.000000000 +0000
|+++ gcc-3.4.1/gcc/config/ip2k/ip2k.c   2004-08-20 16:42:54.505809136 +0000
--------------------------
File to patch:
Skip this patch? [y] [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 96
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/mcore/mcore.c gcc-3.4.1/gcc/config/mcore/mcore.c
|--- gcc-3.4.1.orig/gcc/config/mcore/mcore.c    2004-01-31 06:18:29.000000000 +0000
|+++ gcc-3.4.1/gcc/config/mcore/mcore.c 2004-08-20 16:42:02.558706296 +0000
--------------------------
File to patch:
root:/gcc-build#cd /
root:/#patch -Np1 -i /sources/gcc-3.4.1-no_fixincludes-1.patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Zack Winkles <winkie AT linuxfromscratch DOT org>
|Date: 2004-04-06
|Initial Package Version: 3.4.0
|Origin: Originally developed for GCC 3.2 by Greg Schafer
|Description: Prevent fixincludes script from running.
|
|diff -Naur gcc-3.4.0.orig/gcc/Makefile.in gcc-3.4.0/gcc/Makefile.in
|--- gcc-3.4.0.orig/gcc/Makefile.in     2004-04-05 14:24:51.298169000 -0400
|+++ gcc-3.4.0/gcc/Makefile.in  2004-04-05 14:24:59.824872888 -0400
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
root:/#patch -Np1 -i /sources/gcc-3.4.1-linkonce-1.patch
can't find file to patch at input line 13
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Jim Gifford (patches at jg555 dot com)
|Date: 2004-08-20
|Initial Package Version: 3.4.1
|Origin: GCC - CVS
|Upstream Status: Applied
|Description: Fixes linkone/comdat issue
|            Details of this patch can be found on the following link
|            http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00653.html
|
|diff -Naur gcc-3.4.1.orig/gcc/config/alpha/alpha.c gcc-3.4.1/gcc/config/alpha/alpha.c
|--- gcc-3.4.1.orig/gcc/config/alpha/alpha.c    2004-03-15 23:22:48.000000000 +0000
|+++ gcc-3.4.1/gcc/config/alpha/alpha.c 2004-08-20 16:43:55.555528168 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/arm/pe.h gcc-3.4.1/gcc/config/arm/pe.h
|--- gcc-3.4.1.orig/gcc/config/arm/pe.h 2004-02-24 14:25:22.000000000 +0000
|+++ gcc-3.4.1/gcc/config/arm/pe.h      2004-08-20 16:45:14.710494784 +0000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur gcc-3.4.1.orig/gcc/config/avr/avr.c gcc-3.4.1/gcc/config/avr/avr.c
|--- gcc-3.4.1.orig/gcc/config/avr/avr.c        2004-03-13 06:38:12.000000000 +0000
|+++ gcc-3.4.1/gcc/config/avr/avr.c     2004-08-20 16:45:48.609341376 +0000
-------------------------
发表于 2005-4-30 13:06:07 | 显示全部楼层
是不是patch命令用得有问题。或者是gcc的patch放的地方不对呀?
回复 支持 反对

使用道具 举报

发表于 2005-8-12 00:54:05 | 显示全部楼层
赫赫!
你在哪个目录里执行的patch??
应该是在gcc的tar.bz2解包后的源码目录$LFS/sources/gcc3.1.4/ 里执行patch才能正确地打上补丁。

我想你一定是在gcc-build里面吧!^_^
回复 支持 反对

使用道具 举报

发表于 2005-8-12 09:31:36 | 显示全部楼层
Post by zlex
赫赫!
你在哪个目录里执行的patch??
应该是在gcc的tar.bz2解包后的源码目录$LFS/sources/gcc3.1.4/ 里执行patch才能正确地打上补丁。

我想你一定是在gcc-build里面吧!^_^

正解
回复 支持 反对

使用道具 举报

发表于 2005-8-12 10:46:32 | 显示全部楼层
  1. # tar xvf ...
  2. # cd gcc3.1.4
  3. # patch ...
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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