Hi Peter,
I am the question owner. Thank you for you reply. Followed is the log.
 
1.Logs for file missing issue:
Suse-CQin:/mnt/hda8/study/kernel/linux-2.6.16_gcovt # env | grep CONFIG
XDG_CONFIG_DIRS=/usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig
Suse-CQin:/mnt/hda8/study/kernel/linux-2.6.16_gcovt #   Suse-CQin:/mnt/hda8/study/kernel/linux-2.6.16_gcovt #make O=../build
...
...
  CC [M]  drivers/acpi/thermal.o
  CC [M]  drivers/acpi/asus_acpi.o
  CC [M]  drivers/acpi/ibm_acpi.o
  CC [M]  drivers/acpi/toshiba_acpi.o
  LD      drivers/atm/built-in.o
  CC [M]  drivers/atm/zatm.o
  CC [M]  drivers/atm/uPD98402.o
  CC [M]  drivers/atm/nicstar.o
  CC [M]  drivers/atm/horizon.o
  CC [M]  drivers/atm/iphase.o
/mnt/hda8/study/kernel/linux-2.6.16_gcovt/drivers/atm/iphase.c:961: warning: `tcnter' defined but not used
/mnt/hda8/study/kernel/linux-2.6.16_gcovt/drivers/atm/iphase.c:963: warning: `xdump' defined but not used
  CC [M]  drivers/atm/suni.o
  CC [M]  drivers/atm/fore200e.o
objcopy -Iihex /mnt/hda8/study/kernel/linux-2.6.16_gcovt/drivers/atm/pca200e.data -Obinary drivers/atm/pca200e.bin.gz
gzip -n -df drivers/atm/pca200e.bin.gz
  HOSTCC  drivers/atm/fore200e_mkfirm
drivers/atm/fore200e_mkfirm -k -b _fore200e_pca_fw \
  -i drivers/atm/pca200e.bin -o drivers/atm/fore200e_pca_fw.c
  CC [M]  drivers/atm/fore200e_pca_fw.o
gcc: /mnt/hda8/study/kernel/linux- 2.6.16_gcovt/drivers/atm/fore200e_pca_fw.c: No such file or directory
gcc: no input files
make[3]: *** [drivers/atm/fore200e_pca_fw.o] Error 1
make[2]: *** [drivers/atm] Error 2
make[1]: *** [drivers] Error 2
make: *** [_all] Error 2
Suse-CQin:/mnt/hda8/study/kernel/linux-2.6.16_gcovt # ls drivers/atm/ | grep fore*
fore200e.c
fore200e_firmware_copyright
fore200e.h
fore200e_mkfirm.c
Suse-CQin:/mnt/hda8/study/kernel/linux- 2.6.16_gcovt # ls ../build/drivers/atm/ | grep fore*
fore200e_mkfirm
.fore200e_mkfirm.cmd
fore200e.o
.fore200e.o.cmd
fore200e_pca_fw.c
.tmp_fore200e.bb
.tmp_fore200e.bbg
Suse-CQin:/mnt/hda8/study/kernel/linux- 2.6.16_gcovt #       
 

2.logs for patch issue
Suse-CQin:/usr/src/linux-2.6.11.4-20a-gcovt # patch -p1 < /home/cqin/LTP/gcov-2.6.11.patch
patching file arch/i386/boot/compressed/Makefile
patching file arch/i386/Kconfig
Hunk #1 succeeded at 903 (offset 13 lines).
The next patch would create the file arch/i386/Kconfig.orig,
which already exists!  Assume -R? [n] R
Apply anyway? [n] y
patching file arch/i386/Kconfig.orig
Patch attempted to create file arch/i386/Kconfig.orig, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/Kconfig.orig.rej
patching file arch/i386/kernel/head.S
patching file arch/i386/kernel/head.S.orig
patching file arch/ia64/Kconfig
patching file arch/ia64/Kconfig.orig
patching file arch/ia64/Kconfig.rej
patching file arch/ia64/kernel/head.S
patching file arch/ia64/kernel/head.S.orig
patching file arch/ppc/boot/openfirmware/common.c
patching file arch/ppc/boot/simple/misc-prep.c
patching file arch/ppc/Kconfig
patching file arch/ppc/Kconfig.orig
patching file arch/ppc/kernel/head.S
patching file arch/ppc/kernel/Makefile
patching file arch/ppc/syslib/prom_init.c
patching file arch/ppc64/Kconfig
Hunk #1 succeeded at 384 (offset -1 lines).
The next patch would create the file arch/ppc64/Kconfig.orig,
which already exists!  Assume -R? [n] Ry
Apply anyway? [n] y
patching file arch/ppc64/Kconfig.orig
Patch attempted to create file arch/ppc64/Kconfig.orig, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file arch/ppc64/Kconfig.orig.rej
patching file arch/s390/Kconfig
patching file arch/s390/Kconfig.orig
patching file arch/s390/kernel/head64.S
patching file arch/s390/kernel/head.S
patching file arch/x86_64/Kconfig
patching file arch/x86_64/Kconfig.orig
patching file arch/x86_64/kernel/head.S
patching file arch/x86_64/kernel/head.S.orig
patching file drivers/gcov/gcov-core.c
patching file drivers/gcov/gcov-proc.c
patching file drivers/gcov/Kconfig
patching file drivers/gcov/Makefile
patching file drivers/Makefile
Hunk #1 succeeded at 60 (offset 1 line).
patching file include/linux/gcov.h
patching file include/linux/module.h
Hunk #1 succeeded at 308 (offset -10 lines).
The next patch would create the file include/linux/module.h.orig,
which already exists!  Assume -R? [n] R
Apply anyway? [n] y
patching file include/linux/module.h.orig
Patch attempted to create file include/linux/module.h.orig, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file include/linux/module.h.orig.rej
patching file kernel/module.c
Hunk #2 succeeded at 1101 (offset 14 lines).
Hunk #3 succeeded at 1644 (offset 37 lines).
Hunk #4 succeeded at 1829 (offset 39 lines).
The next patch would create the file kernel/module.c.orig,
which already exists!  Assume -R? [n] R
Apply anyway? [n] y
patching file kernel/module.c.orig
Patch attempted to create file kernel/module.c.orig, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file kernel/module.c.orig.rej
patching file Makefile
Hunk #1 FAILED at 1.
Hunk #3 succeeded at 349 (offset 3 lines).
Hunk #4 succeeded at 376 (offset 8 lines).
Hunk #5 succeeded at 865 (offset 10 lines).
Hunk #6 succeeded at 991 (offset 10 lines).
1 out of 6 hunks FAILED -- saving rejects to file Makefile.rej
patching file scripts/Makefile.build
patching file scripts/Makefile.build.orig
patching file scripts/Makefile.lib
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line
Suse-CQin:/usr/src/linux-2.6.11.4-20a-gcovt #
 
 
Best Regard
Cynthia
 
On 7/6/06, Peter Oberparleiter <oberparleiter@googlemail.com> wrote:
Hello,

Hao Kong wrote:
> 5. Compilation failed because it can't find the temperary
> file. For example, tmperary file /atm/fore200e_pca_fw_c.c is created
> at $OBJ/drivers/atm, but the compile file find it under directory
> $SRC/drivers/atm. So it can't find it and the compilation failed. But
> why the "O=" option can't be used if the gcov kernel patch is used?

Can you post the complete error message that gcc generates? Also if you have CONFIG_MODVERSIONS enabled it might help to disable it.

> 1. Download the gcov kernel patch version 2.6.11;
> 2. Patch it to the kernel version 2.6.11.4-20a;
> 3. Recompile; and the head part of .config file did't show the gcov
> info, the version still is 2.6.11.4-20a;

When you applied the patch, did you see any message about failed hunks?


Regards,
Peter Oberparleiter

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Ltp-coverage mailing list
Ltp-coverage@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-coverage



--
Violetci