Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Модератор: Модераторы разделов

Аватара пользователя
moog
Сообщения: 599
ОС: Archlinux

Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение moog »

# make ; make modules_install
CHK include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
scripts/Makefile.build:17: /usr/src/linux-2.6.17-ARCH/init/Makefile: Нет такого файла или каталога
make[1]: *** Нет правила для сборки цели `/usr/src/linux-2.6.17-ARCH/init/Makefile'. Останов.
make: *** [init] Ошибка 2
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.17-ARCH; fi

С кошерным ядром (kernel.org) таких проблем не возникает. Также проблема с nvidia:

# make ; make modules_install
CHK include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
scripts/Makefile.build:17: /usr/src/linux-2.6.17-ARCH/init/Makefile: Нет такого файла или каталога
make[1]: *** Нет правила для сборки цели `/usr/src/linux-2.6.17-ARCH/init/Makefile'. Останов.
make: *** [init] Ошибка 2
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.17-ARCH; fi

Причем при становке NVIDIA-Linux-x86-1.0-8774-pkg1.run получаем это:

Код: Выделить всё

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Sep  7 01:56:57 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  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
  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      : (not specified)
  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)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
   this means that the installer will need to compile a kernel interface for
   your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> The CC version check failed:

   The compiler used to compile the kernel (gcc 4.0) does not exactly match the
   current compiler (gcc 4.1).  The Linux 2.6 kernel module loader rejects kern
   el modules built with a version of gcc that does not exactly match that of t
   he compiler used to build the running kernel.

   If you know what you are doing and want to ignore the gcc version check, sel
   ect "No" to continue installation.  Otherwise, select "Yes" to abort install
   ation, set the CC environment variable to the name of the compiler used to c
   ompile your kernel, and restart installation.  Abort now? (Answer: No)
-> Kernel source path: '/usr/src/linux'
-> Kernel output path: '/usr/src/linux'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
   -vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
   rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
   rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
   rm -f -f stprof stprof.o symtab.h
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux SYSOUT=/usr/s
   rc/linux'...

   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/selfgz4009/NVIDI
   A-Linux-x86-1.0-8774-pkg1/usr/src/nv modules
   mkdir -p /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.tmp_vers
   ions
   rm -f /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.tmp_version
   s/*
   make -f scripts/Makefile.build obj=/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774
   -pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4009/NVI
   DIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.nv.o
   .d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERN
   EL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-pro
   totypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-poi
   nter -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -ffreesta
   nding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-poi
   nter-sign -I/tmp/selfgz4009/NVIDIA-L
   inux-x86-1.0-8774-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -W
   format -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Wer
   ror -O -fno-common -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_K
   ERNEL_NAMES -D__KERNEL__ -DMODULE  -DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_V
   ERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8774  -UDEBUG -U_DEBUG -DNDEBU
   G -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_
   CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -D
   NV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE
   _PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUI
   LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_S
   TR(nvidia)" -c -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/
   nv.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv.c:14:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.nv-v
   m.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__K
   ERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
   prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-
   pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -ffree
   standing -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-
   pointer-sign -I/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv -Wa
   ll -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenthese
   s -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD   -Wsign-compa
   re -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -D
   NTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PA
   TCHLEVEL=8774  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIP
   LE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COU
   NT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_I
   NSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESEN
   T -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUI
   LD_BASENAME=KBUILD_STR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o
   /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.o /tmp/selfg
   z4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-vm.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-vm.c:14:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.os-a
   gp.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__
   KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict
   -prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame
   -pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -ffre
   estanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno
   -pointer-sign -I/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv -W
   all -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenthes
   es -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD   -Wsign-comp
   are -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -
   DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_P
   ATCHLEVEL=8774  -UDEBUG -U_DEB
   UG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DN
   V_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_
   PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP
   _PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODU
   LE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)"  -D"KBUILD_MO
   DNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pk
   g1/usr/src/nv/os-agp.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/sr
   c/nv/os-agp.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-agp.c:24:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-agp.c:24:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.os-i
   nterface.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/includ
   e -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -W
   strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit
   -frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686
   -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
   -Wno-pointer-sign -I/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/u
   sr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
   -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD
   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__
   -DMODULE  -DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSI
   ON=0 -DNV_PATCHLEVEL=8774  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM
   -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_
   MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESEN
   T -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_
   ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BA
   SENAME=KBUILD_STR(os_interface)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -
   o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/os-interface.o /
   tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/os-interface.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-interface.c:26:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-interface.c:26:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.os-r
   egistry.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
   -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wst
   rict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-f
   rame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -
   ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
   -Wno-pointer-sign -I/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/n
   v -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparen
   theses -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD   -Wsign-
   compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODUL
   E  -DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -D
   NV_PATCHLEVEL=8774  -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_M
   ULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MA
   P_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV
   _VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_P
   RESENT -DNV_VMAP_4_PRESENT  -DMOD
   ULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)"  -D"KBU
   ILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8
   774-pkg1/usr/src/nv/os-registry.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-
   pkg1/usr/src/nv/os-registry.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-registry.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/os-registry.c:14:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.nv-i
   2c.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__
   KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict
   -prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame
   -pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -ffre
   estanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno
   -pointer-sign -I/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv -W
   all -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenthes
   es -Wpointer-arith  -Wno-multichar  -Werror -O -fno-common -MD   -Wsign-comp
   are -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -
   DNTRM -DNVRM -DDYNAMIC_SLI  -DNV_MAJOR_VERSI
   ON=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8774  -UDEBUG -U_DEBUG -DNDEBUG -D
   NV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLAS
   S_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_P
   CI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_REMAP_PFN_RANGE_PRE
   SENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_S
   TR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)"  -D"KBUILD_MODNAME=KBUILD_S
   TR(nvidia)" -c -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/
   nv-i2c.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-i2c.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:51,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-i2c.c:8:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:559,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:76,
                    from /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-i2c.c:8:
   include/asm/io.h: In function ‘check_signature’:
   include/asm/io.h:246: warning: wrong type argument to increment
     ld -m elf_i386 -m elf_i386  -r -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-877
   4-pkg1/usr/src/nv/nvidia.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/us
   r/src/nv/nv-kernel.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/
   nv/nv.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv-vm.o /t
   mp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/os-agp.o /tmp/selfgz
   4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/os-interface.o /tmp/selfgz400
   9/NVIDIA-L
   inux-x86-1.0-8774-pkg1/usr/src/nv/os-registry.o /tmp/selfgz4009/NVIDIA-Linux
   -x86-1.0-8774-pkg1/usr/src/nv/nv-i2c.o
     Building modules, stage 2.
   make -rR -f /usr/src/linux-2.6.17-ARCH/scripts/Makefile.modpost
     scripts/mod/modpost   -i /usr/src/linux-2.6.17-ARCH/Module.symvers -I /tmp
   /selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/Modules.symvers -o /tm
   p/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/Modules.symvers /tmp/
   selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nvidia.o
     cc -Wp,-MD,/tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/.nvid
   ia.mod.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
   -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wst
   rict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-f
   rame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i686  -
   ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
   -Wno-pointer-sign    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_ST
   R(nvidia)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -DMODULE -c -o /tmp/selfgz
   4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nvidia.mod.o /tmp/selfgz4009/
   NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nvidia.mod.c
     ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774
   -pkg1/usr/src/nv/nvidia.ko /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/us
   r/src/nv/nvidia.o /tmp/selfgz4009/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/
   nvidia.mod.o
   NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most
       frequently when this kernel module was built against the wrong or
       improperly configured kernel sources, with a version of gcc that differs
       from the one used to build the target kernel, or if a driver such as
       rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
       obtaining ownership of the NVIDIA graphics device(s).

       Please see the log entries 'Kernel module load error' and 'Kernel
       messages' at the end of the file '/var/log/nvidia-installer.log' for
       more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
   -1 Invalid module format
-> Kernel messages:
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   eth0: link down.
   eth0: link up.
   nvidia: version magic '2.6.17 mod_unload K7 REGPARM gcc-4.1' should be
   '2.6.17 mod_unload K7 REGPARM gcc-4.0'
   nvidia: version magic '2.6.17-ARCH SMP preempt mod_unload 686 gcc-4.1'
   should be '2.6.17 mod_unload K7 REGPARM gcc-4.0'
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.
Спасибо сказали:
Аватара пользователя
alastor
Сообщения: 844
Статус: ARCH'еноид
ОС: Arch Linux current

Re: Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение alastor »

Пакет kernel-headers обновляли?
последняя версия 2.6.12.0-1
Спасибо сказали:
Аватара пользователя
Snupt
Бывший модератор
Сообщения: 2062
Статус: No Place for RTFM Here…
ОС: Mac OS X

Re: Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение Snupt »

Вот неужели нельзя всё это прикрипить к сообщению отдельным файлом...
Спасибо сказали:
Аватара пользователя
moog
Сообщения: 599
ОС: Archlinux

Re: Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение moog »

kernel-headers стоит версии 2.6.12.0-1. Пересобрал, не помогло.
Спасибо сказали:
Аватара пользователя
moog
Сообщения: 599
ОС: Archlinux

Re: Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение moog »

Проблема решена путем удаления /usr/src/linux-2.6.17-ARCH и установки кошерного ядра с симлинком на него; дрова нвидиа поставил тож кошерные.
Спасибо сказали:
Аватара пользователя
moog
Сообщения: 599
ОС: Archlinux

Re: Проблема с компиляцией ядра 2.6.17, gcc 4.1.1

Сообщение moog »

Спасибо сказали: