nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Advice with failed driver build (http://www.nvnews.net/vbulletin/showthread.php?t=152586)

Carbon6 07-01-10 01:50 PM

Advice with failed driver build
 
Bit of a newbie here, bumbling my way through...

I'm on Debian lenny, and took a go at building a new kernel... 2.6.34

I had nvidia drivers in before, and am trying to build new ones now, but the build is failing with the below log.
Can someone have a look and let me know what i need to fix and where i went wrong please? many thanks.

Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jul  1 19:29:22 2010
installer version: 1.0.7

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : true
  uninstall              : false
  driver info            : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files    : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup              : false
  kernel module only      : false
  sanity                  : false
  add this kernel        : false
  no runlevel check      : false
  no network              : false
  no ABI note            : false
  no RPMs                : false
  no kernel module        : false
  force SELinux          : default
  no X server check      : false
  no cc version check    : false
  force tls              : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path  : (not specified)
  OpenGL install prefix  : (not specified)
  OpenGL install libdir  : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name            : (not specified)
  kernel include path    : (not specified)
  kernel source path      : /usr/src/linux-2.6.34
  kernel output path      : (not specified)
  kernel install path    : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list          : (not specified)

chdir("./")
Using: nvidia-installer ncurses user interface
-> Searching for system utilities:
-> found `ldconfig` : `/sbin/ldconfig`
-> found `ldd` : `/usr/bin/ldd`
-> found `ld` : `/usr/bin/ld`
-> found `objcopy` : `/usr/bin/objcopy`
-> found `grep` : `/bin/grep`
-> found `dmesg` : `/bin/dmesg`
-> found `tail` : `/usr/bin/tail`
-> found `cut` : `/usr/bin/cut`
-> found `tr` : `/usr/bin/tr`
-> found `sed` : `/bin/sed`
-> found `chcon` : `/usr/bin/chcon`
-> found `pkg-config` : `/usr/bin/pkg-config`
-> found `X` : `/usr/bin/X`
-> Searching for module utilities:
-> found `insmod` : `/sbin/insmod`
-> found `modprobe` : `/sbin/modprobe`
-> found `rmmod` : `/sbin/rmmod`
-> found `lsmod` : `/sbin/lsmod`
-> found `depmod` : `/sbin/depmod`
-> License accepted.
-> Installing NVIDIA driver version 96.43.16.
-> No distribution pre-install script found.
-> Kernel module installation path (Answer:
  '/lib/modules/2.6.34/kernel/drivers/video')
-> Kernel module installation path: /lib/modules/2.6.34/kernel/drivers/video
-> No precompiled kernel interface was found to match your kernel; this means
  that the installer will need to compile a new kernel interface.
-> Checking development tools:
-> found `cc` : `/usr/bin/cc`
-> found `make` : `/usr/bin/make`
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-2.6.34' as specified by the
  '--kernel-source-path' commandline option.
-> Kernel source path (Answer: '/usr/src/linux-2.6.34')
-> Kernel source path: '/usr/src/linux-2.6.34'
-> Kernel output path: '/usr/src/linux-2.6.34'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux-2.6.34 SYSOUT
  =/usr/src/linux-2.6.34'...
  NVIDIA: calling KBUILD...
  make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux-2.6.34 SUBDIRS=/tmp/selfgz846
  7/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv modules
  test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
          echo;                                                                \
          echo "  ERROR: Kernel configuration is invalid.";                \
          echo "        include/generated/autoconf.h or include/config/auto.conf are
  missing.";\
          echo "        Run 'make oldconfig && make prepare' on kernel src to fix it
  .";        \
          echo;                                                                \
          /bin/false)
 
    ERROR: Kernel configuration is invalid.
            include/generated/autoconf.h or include/config/auto.conf are missin
  g.
            Run 'make oldconfig && make prepare' on kernel src to fix it.
 
  mkdir -p /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/.tmp_vers
  ions ; rm -f /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/.tmp_
  versions/*
  make -f scripts/Makefile.build obj=/tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16
  -pkg1/usr/src/nv
    cc -Wp,-MD,/tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/.nv.o
  .d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -I/usr/src/
  linux-2.6.34/arch/x86/include -Iinclude  -include include/generated/autoconf
  .h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict
  -aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-secu
  rity -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel
  -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -
  pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mn
  o-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -Wdeclaration-af
  ter-statement -Wno-pointer-sign -fno-strict-overflow -I/tmp/selfgz8467/NVIDI
  A-Linux-x86-96.43.16-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch
  -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Wer
  ror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__K
  ERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"96.43.16\" -UDEBUG -U_DEBUG -D
  NDEBUG  -DMODULE -D"KBUILD_STR(s
  )=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidi
  a)"  -c -o /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/nv.o /t
  mp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/nv.c
  In file included from include/linux/bitops.h:17,
                    from include/linux/kernel.h:15,
                    from include/linux/sched.h:54,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h: In function ‘set_bit�
  ��:
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h:64: warning: pointer of
  type ‘void *’ used in arithmetic
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h: In function ‘clear_bi
  t’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h:102: warning: pointer of
  type ‘void *’ used in arithmetic
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h: In function ‘change_b
  it’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/bitops.h:178: warning: pointer of
  type ‘void *’ used in arithmetic
  In file included from include/linux/sched.h:54,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/kernel.h: At top level:
  include/linux/kernel.h:195: warning: conflicting types for built-in function
  ‘snprintf’
  include/linux/kernel.h:197: warning: conflicting types for built-in function
  ‘vsnprintf’
  In file included from /usr/src/linux-2.6.34/arch/x86/include/asm/string.h:2,
                    from include/linux/string.h:21,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/page_32.h:3
  7,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/page.h:13,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/thread_info
  .h:11,
                    from include/linux/thread_info.h:56,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:56,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:12: warning: conflict
  ing types for built-in function ‘strncpy’
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:18: warning: conflict
  ing types for built-in function ‘strncat’
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:24: warning: conflict
  ing types for built-in function ‘strncmp’
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:30: warning: conflict
  ing types for built-in function ‘strlen’
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:200: warning: conflic
  ting types for built-in function ‘memmove’
  /usr/src/linux-2.6.34/arch/x86/include/asm/string_32.h:205: warning: conflic
  ting types for built-in function ‘memchr’
  In file included from /usr/src/linux-2.6.34/arch/x86/include/asm/page_32.h:3
  7,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/page.h:13,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/thread_info
  .h:11,
                    from include/linux/thread_info.h:56,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:56,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/string.h:54: warning: conflicting types for built-in function
  ‘strncasecmp’
  include/linux/string.h:93: warning: conflicting types for built-in function
  ‘strspn’
  include/linux/string.h:96: warning: conflicting types for built-in function
  ‘strcspn’
  include/linux/string.h:112: warning: conflicting types for built-in function
  ‘__builtin_memcmp’
  In file included from /usr/src/linux-2.6.34/arch/x86/include/asm/irqflags.h:
  60,
                    from include/linux/irqflags.h:57,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/system.h:11
  ,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/processor.h
  :17,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/thread_info
  .h:22,
                    from include/linux/thread_info.h:56,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:56,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h: In function ‘__cpui
  d’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:31: warning: cast from
  pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:31: warning: cast from
  pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:31: warning: cast from
  pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:31: warning: cast from
  pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h: In function ‘write_
  gdt_entry’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:326: warning: cast fro
  m pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:326: warning: cast fro
  m pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h: In function ‘ptep_m
  odify_prot_commit’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:527: warning: cast fro
  m pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:527: warning: cast fro
  m pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h: In function ‘set_pt
  e_at’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:548: warning: cast fro
  m pointer to integer of different size
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:548: warning: cast fro
  m pointer to integer of different size
  In file included from include/linux/list.h:6,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:56,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/prefetch.h: In function ‘prefetch_range’:
  include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
  rithmetic
  In file included from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:29,
                    from include/linux/time.h:8,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:56,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/list.h: In function ‘list_del’:
  include/linux/list.h:106: warning: pointer of type ‘void *’ used in arit
  hmetic
  include/linux/list.h:107: warning: pointer of type ‘void *’ used in arit
  hmetic
  include/linux/list.h: In function ‘hlist_del’:
  include/linux/list.h:593: warning: pointer of type ‘void *’ used in arit
  hmetic
  include/linux/list.h:594: warning: pointer of type ‘void *’ used in arit
  hmetic
  In file included from include/linux/sched.h:82,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/rculist.h: In function ‘list_del_rcu’:
  include/linux/rculist.h:97: warning: pointer of type ‘void *’ used in ar
  ithmetic
  include/linux/rculist.h: In function ‘list_replace_rcu’:
  include/linux/rculist.h:143: warning: pointer of type ‘void *’ used in a
  rithmetic
  include/linux/rculist.h: In function ‘hlist_del_rcu’:
  include/linux/rculist.h:300: warning: pointer of type ‘void *’ used in a
  rithmetic
  include/linux/rculist.h: In function ‘hlist_replace_rcu’:
  include/linux/rculist.h:320: warning: pointer of type ‘void *’ used in a
  rithmetic
  In file included from include/linux/utsname.h:35,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:25,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/sched.h: In function ‘object_is_on_stack’:
  include/linux/sched.h:2244: warning: pointer of type ‘void *’ used in ar
  ithmetic
  In file included from /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess.h:5
  71,
                    from include/linux/poll.h:14,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:77,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h: In function ‘copy
  _from_user’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  /usr/src/linux-2.6.34/arch/x86/include/asm/uaccess_32.h:209: warning: compar
  ison between signed and unsigned
  In file included from include/linux/io.h:22,
                    from include/linux/pci.h:54,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:88,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  /usr/src/linux-2.6.34/arch/x86/include/asm/io.h: In function ‘writeq’:
  /usr/src/linux-2.6.34/arch/x86/include/asm/io.h:104: warning: pointer of typ
  e ‘void *’ used in arithmetic
  In file included from include/linux/dma-mapping.h:7,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/pci.h:109,
                    from include/linux/pci.h:1209,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:88,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/scatterlist.h: In function ‘sg_virt’:
  include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
  in arithmetic
  In file included from /usr/src/linux-2.6.34/arch/x86/include/asm/dma-mapping
  .h:43,
                    from include/linux/dma-mapping.h:103,
                    from include/asm-generic/pci-dma-compat.h:7,
                    from /usr/src/linux-2.6.34/arch/x86/include/asm/pci.h:109,
                    from include/linux/pci.h:1209,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:88,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
  include/asm-generic/dma-mapping-common.h:77: warning: pointer of type ‘voi
  d *’ used in arithmetic
  In file included from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv-linux.h:119,
                    from /tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv/nv.c:14:
  include/linux/highmem.h: In function ‘zero_user_segments’:
  include/linux/highmem.h:155: warning: pointer of type ‘void *’ used in a
  rithmetic
  include/linux/highmem.h:158: warning: pointer of type ‘void *’ used in a
  rithmetic
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h: Assembler messages:
  /usr/src/linux-2.6.34/arch/x86/include/asm/paravirt.h:31: Error: suffix or o
  perands invalid for `push'
  make[3]: *** [/tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src/nv/nv.o
  ] Error 1
  make[2]: *** [_module_/tmp/selfgz8467/NVIDIA-Linux-x86-96.43.16-pkg1/usr/src
  /nv] Error 2
  NVIDIA: left KBUILD.
  nvidia.ko failed to build!
  make[1]: *** [module] Error 1
  make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file
      '/var/log/nvidia-installer.log' for details.  You may find suggestions
      on fixing installation problems in the README available on the Linux
      driver download page at www.nvidia.com.
-> No distribution failed-install script found.



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

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