Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-16-13, 12:55 PM   #1
mahashakti89
Registered User
 
Join Date: Sep 2009
Posts: 14
Default Nvidia driver on linux 3.7

Hi,

So , I succeeded in installing driver 313.18 on my debian Sid, kernel 3.7.0 but only on a debian linux-image and after having made following symlink :
Code:
sudo ln -s /usr/src/linux-headers-3.7-trunk-amd64/include/generated/uapi/linux/version.h /usr/src/linux-headers-3.7-trunk-amd64/include/linux/version.h
but if I try to install the driver on a sel-compiled kernel I am getting following error :
Quote:
make -f scripts/Makefile.build obj=/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel
cc -Wp,-MD,/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/data/Kernel/linux-2.6/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/data/Kernel/linux-2.6/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/data/Kernel/linux-2.6/include/uapi -Iinclude/generated/uapi -include /data/Kernel/linux-2.6/include/l
inux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"313.18\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -D__linux__
-DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/.tmp_nv.o /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:15:0,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:10:2: error: #error remap_page_range() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:12:2: error: #error vmap() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:28:2: error: #error kmem_cache_create() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:30:2: error: #error on_each_cpu() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:31:2: error: #error smp_call_function() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:39:2: error: #error INIT_WORK() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:40:2: error: #error acpi_walk_namespace() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:41:2: error: #error acpi_os_wait_events_complete() conftest failed!
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/conftest.h:44:2: error: #error pci_dma_mapping_error() conftest failed!
In file included from include/linux/kernel.h:10:0,
from include/linux/sched.h:15,
from include/linux/utsname.h:5,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:44,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /data/Kernel/linux-2.6/arch/x86/include/asm/uaccess.h:552:0,
from include/linux/poll.h:11,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:115,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
/data/Kernel/linux-2.6/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/data/Kernel/linux-2.6/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:0:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h: At top level:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:151:2: error: #error "struct file_operations compile test likely failed!"
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:0:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:306:2: error: #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:311:4: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:313:8: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:319:2: error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:325:4: warning: "NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUN T" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:328:8: warning: "NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUN T" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:834:2: error: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:893:2: error: #error "NV_VMAP() undefined (vmap() unavailable)!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:965:2: error: #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:985:2: error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h: In function ‘nv_execute_on_all_cpus’:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1003:5: error: implicit declaration of function ‘NV_ON_EACH_CPU’ [-Werror=implicit-function-declaration]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h: At top level:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1262:13: error: conflicting types for ‘pm_message_t’
In file included from /data/Kernel/linux-2.6/arch/x86/include/asm/apic.h:5:0,
from /data/Kernel/linux-2.6/arch/x86/include/asm/smp.h:13,
from include/linux/smp.h:38,
from include/linux/sched.h:30,
from include/linux/utsname.h:5,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:44,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
include/linux/pm.h:52:3: note: previous declaration of ‘pm_message_t’ was here
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:0:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1554:6: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1564:8: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1574:2: error: #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:1773:0,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-proto.h:25:29: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:372:5: warning: initialization from incompatible pointer type [enabled by default]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:372:5: warning: (near initialization for ‘nv_pci_driver.suspend’) [enabled by default]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c: In function ‘nvidia_init_module’:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:873:5: error: implicit declaration of function ‘NV_KMEM_CACHE_CREATE’ [-Werror=implicit-function-declaration]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:873:58: error: expected expression before ‘nv_stack_t’
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:883:9: error: implicit declaration of function ‘NV_KMEM_CACHE_DESTROY’ [-Werror=implicit-function-declaration]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:981:54: error: expected expression before ‘nv_pte_t’
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:990:13: error: expected expression before ‘nvidia_p2p_page_t’
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c: In function ‘nv_kern_open’:
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:1521:30: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type [enabled by default]
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:128:0,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
include/linux/interrupt.h:130:1: note: expected ‘irq_handler_t’ but argument is of type ‘enum irqreturn_t (*)(int, void *, struct pt_regs *)’
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:1525:17: error: implicit declaration of function ‘NV_TASKQUEUE_INIT’ [-Werror=implicit-function-declaration]
/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:1537:25: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type [enabled by default]
In file included from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv-linux.h:128:0,
from /tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.c:13:
include/linux/interrupt.h:130:1: note: expected ‘irq_handler_t’ but argument is of type ‘enum irqreturn_t (*)(int, void *, struct pt_regs *)’
cc1: some warnings being treated as errors
make[3]: *** [/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel/nv.o] Erreur 1
make[2]: *** [_module_/tmp/selfgz7139/NVIDIA-Linux-x86_64-313.18/kernel] Erreur 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Erreur 1
make: *** [module] Erreur 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
And there I am stuck ... Any clue ?? Thanks for reading and perhaps helping ...

mahashakti89
mahashakti89 is offline   Reply With Quote
Old 01-17-13, 12:15 PM   #2
valdis
Registered User
 
Join Date: Apr 2003
Posts: 48
Default Re: Nvidia driver on linux 3.7

Does the following ad-crock patch fix your problem?

diff -u conftest.sh.orig conftest.sh
--- conftest.sh.orig 2013-01-17 13:13:29.821791861 -0500
+++ conftest.sh 2013-01-07 17:48:44.504259243 -0500
@@ -2012,6 +2014,7 @@
rm -f conftest.h
test_headers

+ CFLAGS="$CFLAGS -I/usr/src/linux-next/arch/x86/include/uapi"
for i in $*; do compile_test $i; done

if [ -n "$SHOW_COMPILE_TEST_RESULTS" -a -f conftest.h ]; then
valdis is offline   Reply With Quote
Old 01-18-13, 02:47 PM   #3
mahashakti89
Registered User
 
Join Date: Sep 2009
Posts: 14
Default Re: Nvidia driver on linux 3.7

Thanks for your answer ...

How do you use this patch ? After extracting the Nvidia package ?

Regards

mahashakti89
mahashakti89 is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
2x GPU, 2x screens, DualPort, nvidia-settings crash jago25_98 NVIDIA Linux 0 01-14-13 01:23 PM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
GTX 460M, Xorg 1.12, nvidia driver 295.49, linux 3.3.5-1-ARCH and NVRM Xid 44 elsifaka NVIDIA Linux 0 05-14-12 08:48 AM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 09:55 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM

All times are GMT -5. The time now is 02:36 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.