You are not logged in.

#1 2009-12-31 17:33:46

Rinaldus
Member
From: Moscow, Russia
Registered: 2008-03-04
Posts: 40
Website

Unable to build NVIDIA package

I use kernel with PAE support with self-built nvidia drivers. After upgrading to kernel 2.6.32 I wanted to rebuild nvidia package. I modified PKGBUILD and nvidia.install accordingly with Arch wiki but I was unable to build nvidia package. Here's console output:

Creating directory NVIDIA-Linux-x86-190.53-pkg0                       
Verifying archive integrity... OK                                     
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 190.53...................................................................................................................................................                                                               
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. ***

make: *** [select_makefile] Ошибка 1
==> ОШИБКА: Сборка завершилась неудачно.
    Преждевременный выход...

Here's my PKGBUILD:

# $Id: PKGBUILD 62047 2009-12-31 10:29:48Z tpowa $
# Maintainer : Thomas Baechler <thomas@archlinux.org>

pkgname=nvidia
pkgver=190.53
_kernver='2.6.32-pae'
pkgrel=1
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686"   ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('kernel26>=2.6.32' 'kernel26<2.6.33' "nvidia-utils=${pkgver}")
makedepends=('kernel26-headers>=2.6.32' 'kernel26-headers<2.6.33')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
source=("http://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run")
md5sums=('2e80419f6f9ac16beecd839874d0c5ab')
[ "$CARCH" = "x86_64" ] && md5sums=('3d3e956366f9df0e4c64d2e0299d1029')
build() {
    cd $srcdir
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0

    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/${_kernver}/build module || return 1

    mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/

    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
}

Here's my nvidia.install:

post_install() {
    KERNEL_VERSION='2.6.32-pae'
    depmod $KERNEL_VERSION
}

post_upgrade() {
    post_install
    rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
}

post_remove() {
    KERNEL_VERSION='2.6.32-pae'
    depmod $KERNEL_VERSION
}

What did I wrong?


Sorry for my bad English. smile

Offline

#2 2009-12-31 17:46:47

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Unable to build NVIDIA package

it's a problem with the kernel build.
the maintainer has:   rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}

i think he's doing like is it in kernel26 but the thing is we have kernel26-headers and with -pae you don't have it. ask to include them in the same package as before or do kernel26-pae-headers

Last edited by wonder (2009-12-31 17:47:46)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-01-24 01:29:37

tuxfusion
Member
Registered: 2007-12-31
Posts: 98

Re: Unable to build NVIDIA package

wonder your answer explains but does not solve anything for me.
Please explain in other words what "do kernel26-pae-headers" shall mean.
Custom header package for custom kernel , if yes how ?
Modify custom kernel PKGBUILD so that sources stay alive , if yes how ?
Noone seems to find it important to update the wiki pages after that headers package split that rendered them useless !
Strange ...

Offline

#4 2010-01-24 11:20:03

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Unable to build NVIDIA package

i see the maintainer fix the problem in kernel26-pae 2.6.32.4-1.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-01-24 15:06:55

tuxfusion
Member
Registered: 2007-12-31
Posts: 98

Re: Unable to build NVIDIA package

This leads no where. i will open another thread. i'm building my own custom kernel from abs ... !

Offline

#6 2010-01-24 18:31:57

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Unable to build NVIDIA package

I built my custom kernel by modifying the kernel26 PKGBUILD to create custom kernel and headers packages - I use the default firmware package.

Works as expected. I've built some drivers against it, but not nvidia.

Offline

Board footer

Powered by FluxBB