You are not logged in.

#1 2007-11-20 22:25:52

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

How to make the nvidia package

I want to downgrade to a previous version of the nvidia package (NVIDIA drivers 100.14.11) but am having difficulty.

I downloaded the last PKGBUILD to use that version of the drivers, and I changed its kernel version variable to the latest kernel. The build process erred and I'm unsure of how to interpret the failure to pursue a solution. I've included the output from makepkg:


==> Making package: nvidia 100.14.11-1 (Tue Nov 20 17:20:18 EST 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
   -> Found NVIDIA-Linux-x86-100.14.11-pkg0.run in build dir
==> WARNING: Integrity checks (md5) are missing or incomplete.
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
Creating directory NVIDIA-Linux-x86-100.14.11-pkg0
The directory 'NVIDIA-Linux-x86-100.14.11-pkg0' already exists.  Please either
move the existing directory out of the way, or specify a
different directory with the '--target' option.
ln: creating symbolic link `Makefile': File exists
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.23-ARCH/build /lib/modules/2.6.23-AR                                                       CH/build cc_sanity_check full_output
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.23-ARCH/build /lib/modules/2.6.23-AR                                                       CH/build select_makefile full_output
make --no-print-directory -f Makefile module

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.23-ARCH/build SUBDIRS=/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/.tmp_versions
rm -f /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv
  cc -Wp,-MD,/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror  -O -fno-common -msoft-float          -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERSION_STRING=\"100.14.11\" -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_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.o /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c
In file included from include/linux/list.h:8,
                 from include/linux/preempt.h:11,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:57,
                 from include/linux/sched.h:53,
                 from include/linux/utsname.h:35,
                 from /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv-linux.h:19,
                 from /var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/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 arithmetic
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c: In function 'nvidia_init_module':
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c:1326: error: too many arguments to function 'kmem_cache_create'
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c:1435: error: too many arguments to function 'kmem_cache_create'
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c:1569: error: void value not ignored as it ought to be
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c: In function 'nvidia_exit_module':
/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.c:1601: error: void value not ignored as it ought to be
make[3]: *** [/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/var/abs/extra/x11/nvidia/src/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
install: cannot stat `nvidia.ko': No such file or directory
==> Removing info/doc files...
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .FILELIST file...
==> Generating .PKGINFO file...
==> Copying install script...
==> Compressing package...
==> Finished making: nvidia  (Tue Nov 20 17:20:26 EST 2007)

Thanks a bunch for any insight in to how to go about solving this one!
-Sasha

Offline

#2 2007-11-20 23:24:23

phydeaux
Member
Registered: 2005-06-13
Posts: 68

Re: How to make the nvidia package

I'm having a similar problem trying to build nvidia-96xx for a custom vanilla 2.6.24-rc3 kernel.  It built fine a few days ago, before I updated with the big core rebuild.  After I rebuilt my kernel to match the new core I got similar errors trying to build nvidia.

andy

Offline

#3 2007-11-21 00:00:47

phydeaux
Member
Registered: 2005-06-13
Posts: 68

Re: How to make the nvidia package

Ok, I got mine to work, but not in the cleanest or easiest way.  I had to add a symlink from my kernel headers in /usr/src/linux-2.6.24-rc3/ to /usr/src/linux/ and I had to change the SYSSRC variable that being passed to make in the pkgbuild to /var/abs/local/kernel26devel/src/linux-2.6.23 (where I built my kernel from, good thing I didn't delete it).  That got it to build for me, your mileage may vary.

andy

Offline

#4 2007-11-21 04:12:13

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make the nvidia package

Interesting... I'm still getting the same sequence of errors. Would you mind posting your PKGBUILD?

Thanks!

Offline

#5 2007-11-21 05:33:50

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make the nvidia package

Offline

Board footer

Powered by FluxBB