LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2009, 12:20 AM   #1
firmlyjin
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
can you help me ?


when i install the gcov, use patch command to fail,genrate below error message,need you help。

can't find file to patch at input line 33
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|#
|# gcov-kernel-2.6.24-1 (2008-01-30)
|#
|# anderson.lizardo@gmail.com:
|# The following parts of the kernel code had coverage disabled by
|# default for now (on ARM platform only) because they consistently cause
|# kernel problems:
|#
|# arch/arm/nwfpe/: make FP operations results go wrong
|# fs/: soft lockup at the end of kernel boot
|# fs/nfs/: generates BUG_ON() in net/sunrpc/xdr.c when mounting NFS root
|# lib/: kernel hangs right after decompression
|# mm/: many commands fail with "File size limit exceeded"
|# net/ipv4/: NFS root mount fails
|#
|# TODO: find the specific problematic .c files files in these
|# directories and either (a) fix the buggy code or (b) disable coverage
|# for those specific file(s) using "CFLAGS_file.o".
|#
|# arch/arm/nwfpe/Makefile | 3 +++
|# arch/arm/nwfpe/Makefile | 3 +++
|# fs/Makefile | 3 +++
|# fs/nfs/Makefile | 3 +++
|# lib/Makefile | 3 +++
|# mm/Makefile | 3 +++
|# net/ipv4/Makefile | 3 +++
|# 6 files changed, 18 insertions(+)
|#
|
|diff -Naurp linux-2.6.24-gcov/arch/arm/nwfpe/Makefile linux-2.6.24-gcov-arm-hack/arch/arm/nwfpe/Makefile
|--- linux-2.6.24-gcov/arch/arm/nwfpe/Makefile 2008-01-24 23:58:37.000000000 +0100
|+++ linux-2.6.24-gcov-arm-hack/arch/arm/nwfpe/Makefile 2008-01-30 10:51:45.000000000 +0100
 
Old 05-24-2009, 04:49 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Post the exact commands you're using to implement the patch.

Should be something like:
Code:
$ cd /path/to/Makefile/
$ patch < /path/to/patch.txt
---

edit: BTW, try to make your thread subjects more descriptive than "can you help me".

Last edited by anomie; 05-24-2009 at 04:50 PM.
 
Old 05-25-2009, 08:55 PM   #3
firmlyjin
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
anomie,I used this command:
#cd /lib/modules/2.6.16.26-kernel
#patch -p1< {path }/2.6.16-gcov-kernel.patch

I have consulted the installation introduction to this article
http://lwn.net/2002/0214/a/gcov.php3
there said:
Installing GCOV support on the kernel
-------------------------------------
To provide the coverage support infrastructure to the kernel,
install the gcov patch
(2.5.2-gcov-kernel.patch OR 2.4.17-gcov-kernel.patch) from the root
level of the kernel source path, as

patch -p1< {path}/2.5.2-gcov-kernel.patch
 
Old 05-26-2009, 12:19 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Do you have a -

/lib/modules/<kernel version>/kernel/arch/arm/nwfpe/

- directory?
 
Old 05-26-2009, 01:51 AM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Also, can you explain what it is you're trying to accomplish by doing this exactly?

From the URL you mentioned: http://lwn.net/2002/0214/a/gcov.php3

Quote:
Installing GCOV support on the kernel
-------------------------------------
To provide the coverage support infrastructure to the kernel,
install the gcov patch
(2.5.2-gcov-kernel.patch OR 2.4.17-gcov-kernel.patch) from the root
level of the kernel source path, as

...

Tested Environment
------------------
We have tested this on RedHat 7.0 and 7.2 under gcc versions 2.91.66 and
3.0.3.
Uh...

Add to that the fact that you're trying to install a patch for the ARM platform (are you sure about that?), and I'm not sure this has been thoroughly considered.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration