View Single Post
Old 05-31-11, 12:46 AM   #16
RUSTY
Registered User
 
Join Date: Dec 2002
Posts: 44
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

how do you apply kernel-3.0-rc1.patch.txt ? need some steps please.

I have ubuntu 10.10 x64 with 3.0-rc1 kernel. Using this command:

sudo sh NVIDIA-Linux-x86_64-270.41.19.run --apply-patch kernel-3.0-rc1.patch.txt

Trying to patch 275.09 x64 or 270.41.19 x64 I get this

patching file conftest.sh
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file conftest.sh.rej
patching file nv-linux.h
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file nv-linux.h.rej

p.s.
that's what I get when I try to install normal driver 275.09 x64 or 270.41.19 x64 on kernel 3.0-rc1

If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.

*** Unable to determine the target kernel version. ***
RUSTY is offline   Reply With Quote