作者 主題: [求助]新手提問關於patch時遇到的問題...  (閱讀 2163 次)

0 會員 與 1 訪客 正在閱讀本文。

linuxk

  • 懷疑的國中生
  • **
  • 文章數: 42
    • 檢視個人資料
http://ai.ee.ccu.edu.tw/arm_linux/toolchain.htm

我用以上網址做編譯toolchain練習,步驟跟內容所描述的一模一樣
前面Butils已成功建立,打算做Gcc部分時,再第六步驟遇到問題
    到下列網站下載gcc的source file及其ARM patch,在本論文採用的是gcc-2.95.2.tar.gz,ARM patch則是gcc-2.95.2-diff-991022.gz及:  

    ·         ftp:///gcc.gnu.org/

    ·        
ftp://ftp.netwinder.org/users/p/philb/

下載至/tmp後將gcc source file解開並以patch檔更新:

   $tar zxvf gcc-2.95.2.tar.gz

   $cd gcc-2.95.2

   $ zcat ../gcc-2.95.2-diff-991022.gz | patch -p1 -s -E
[/list]

下了zcat...後出現如現訊息:
代碼: [選擇]

missing header for unified diff at line 8 of patch
The text leading up to this was:
--------------------------
|Index: ChangeLog
|===================================================================
|RCS file: /cvs/gcc/egcs/ChangeLog,v
|retrieving revision 1.136.4.8
|diff -u -p -r1.136.4.8 ChangeLog
|--- ChangeLog 1999/08/16 08:29:34 1.136.4.8
|+++ ChangeLog 1999/10/22 14:11:49
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
missing header for unified diff at line 23 of patch
The text leading up to this was:
--------------------------
|Index: config.guess
|===================================================================
|RCS file: /cvs/gcc/egcs/config.guess,v
|retrieving revision 1.28.4.1
|diff -u -p -r1.28.4.1 config.guess
|--- config.guess 1999/05/30 16:04:33 1.28.4.1
|+++ config.guess 1999/10/22 14:11:52
--------------------------
File to patch:
Skip this patch? [y]
40 out of 40 hunks ignored
missing header for unified diff at line 737 of patch
The text leading up to this was:
--------------------------
|Index: config.sub
|===================================================================
|RCS file: /cvs/gcc/egcs/config.sub,v
|retrieving revision 1.30.4.1
|diff -u -p -r1.30.4.1 config.sub
|--- config.sub 1999/08/04 08:09:26 1.30.4.1
|+++ config.sub 1999/10/22 14:11:56
--------------------------
File to patch:
Skip this patch? [y]
34 out of 34 hunks ignored
1 out of 1 hunk FAILED -- saving rejects to file ChangeLog.rej
66 out of 66 hunks FAILED -- saving rejects to file configure.rej
1 out of 1 hunk FAILED -- saving rejects to file configure.in.rej
The text leading up to this was:
--------------------------
|Index: gcc/function.c
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/function.c,v
|retrieving revision 1.90.4.2
|diff -u -p -r1.90.4.2 function.c
|--- gcc/function.c 1999/09/07 07:34:04 1.90.4.2
|+++ gcc/function.c 1999/10/22 14:12:46
--------------------------
File to patch:
Skip this patch? [y]
3 out of 3 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/reload1.c
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/reload1.c,v
|retrieving revision 1.145.4.1
|diff -u -p -r1.145.4.1 reload1.c
|--- gcc/reload1.c 1999/07/07 01:05:39 1.145.4.1
|+++ gcc/reload1.c 1999/10/22 14:13:05
--------------------------
File to patch:
Skip this patch? [y]
3 out of 3 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/arm.c
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/arm.c,v
|retrieving revision 1.43.4.5
|diff -u -p -r1.43.4.5 arm.c
|--- gcc/config/arm/arm.c 1999/06/19 06:34:36 1.43.4.5
|+++ gcc/config/arm/arm.c 1999/10/22 14:13:12
--------------------------
File to patch:
Skip this patch? [y]
2 out of 2 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/arm.h
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/arm.h,v
|retrieving revision 1.34.4.3
|diff -u -p -r1.34.4.3 arm.h
|--- gcc/config/arm/arm.h 1999/06/19 05:37:07 1.34.4.3
|+++ gcc/config/arm/arm.h 1999/10/22 14:13:15
--------------------------
File to patch:
Skip this patch? [y]
4 out of 4 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/arm.md
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/arm.md,v
|retrieving revision 1.27.4.2
|diff -u -p -r1.27.4.2 arm.md
|--- gcc/config/arm/arm.md 1999/06/02 06:43:14 1.27.4.2
|+++ gcc/config/arm/arm.md 1999/10/22 14:13:20
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/elf.h
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/elf.h,v
|retrieving revision 1.7.4.2
|diff -u -p -r1.7.4.2 elf.h
|--- gcc/config/arm/elf.h 1999/05/31 08:21:53 1.7.4.2
|+++ gcc/config/arm/elf.h 1999/10/22 14:13:20
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/linux-elf.h
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/linux-elf.h,v
|retrieving revision 1.7.4.1
|diff -u -p -r1.7.4.1 linux-elf.h
|--- gcc/config/arm/linux-elf.h 1999/09/15 09:09:04 1.7.4.1
|+++ gcc/config/arm/linux-elf.h 1999/10/22 14:13:21
--------------------------
File to patch:
Skip this patch? [y]
3 out of 3 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/linux-elf26.h
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/linux-elf26.h,v
|retrieving revision 1.2
|diff -u -p -r1.2 linux-elf26.h
|--- gcc/config/arm/linux-elf26.h 1998/12/16 21:01:40 1.2
|+++ gcc/config/arm/linux-elf26.h 1999/10/22 14:13:21
--------------------------
File to patch:
Skip this patch? [y]
2 out of 2 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/config/arm/t-linux
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/config/arm/t-linux,v
|retrieving revision 1.5
|diff -u -p -r1.5 t-linux
|--- gcc/config/arm/t-linux 1999/03/26 15:30:20 1.5
|+++ gcc/config/arm/t-linux 1999/10/22 14:13:21
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|Index: gcc/cp/parse.c
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/cp/parse.c,v
|retrieving revision 1.113.4.1
|diff -u -p -r1.113.4.1 parse.c
|--- gcc/cp/parse.c 1999/08/19 23:23:12 1.113.4.1
|+++ gcc/cp/parse.c 1999/10/22 14:13:32
--------------------------
File to patch:
Skip this patch? [y]
15 out of 15 hunks ignored
The text leading up to this was:
--------------------------
|Index: gcc/cp/parse.h
|===================================================================
|RCS file: /cvs/gcc/egcs/gcc/cp/parse.h,v
|retrieving revision 1.9
|diff -u -p -r1.9 parse.h
|--- gcc/cp/parse.h 1999/04/22 17:37:35 1.9
|+++ gcc/cp/parse.h 1999/10/22 14:13:32
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored


意思我大概看的懂,但是由於我對patch實際過程不熟析[成功patch後應該是如何??],以至於不知如何處理,這部份在該網頁內也未提及,不過前面一點的內容也有類似patch作法,但未出現要球我輸入file to patch:的結果,想請教學長們該如何處理?

對patch小弟是第一次測試,不過該網頁的內容對我來說是很重要參考資訊,目前在實作ARM-toolchain的建立,希望學長們幫忙   感激感激