Re: Errors Building kmdls Myself

George Galt <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.general
Message-ID <CA+-thJPimZMr_pFt=BCM-O=tWdWxNvuEaQkRNZONJBLhq1MuOA@mail.gmail.com>
Thanks, I've grabbed the src.rpm  from Axel's site (here:
http://dl.atrpms.net/all/fakeroot-1.11-19.src.rpm) and built it
myself, but I am still getting an error that says: ERROR: No NVIDIA
driver is currently installed; the '--kernel-module-only' option can
only be used to install the NVIDIA kernel module on top of an existing
driver installation.

/var/lib is set to 777

Can you spot anything else wrong below?

$ ./bkmdl.sh 3.4.7-1.fc16 nvidia-graphics302.17-302.17-147.src.rpm
Parameters:  3.4.7-1.fc16.x86_64 nvidia-graphics302.17-302.17-147.src.rpm fc16
Installing nvidia-graphics302.17-302.17-147.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /home/ggalt/rpmbuild/tmp/rpm-tmp.xUX5dO
+ umask 022
+ cd /home/ggalt/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/ggalt/rpmbuild/BUILD
+ rm -rf nvidia-graphics302.17-302.17
+ /bin/mkdir -p nvidia-graphics302.17-302.17
+ cd nvidia-graphics302.17-302.17
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sh /home/ggalt/rpmbuild/SOURCES/NVIDIA-Linux-x86_64-302.17.run --extract-only
Creating directory NVIDIA-Linux-x86_64-302.17
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64
302.17.........................................................................................................................................................
+ mv NVIDIA-Linux-x86_64-302.17/32 NVIDIA-Linux-x86_64-302.17/LICENSE
NVIDIA-Linux-x86_64-302.17/NVIDIA_Changelog
NVIDIA-Linux-x86_64-302.17/README.txt NVIDIA-Linux-x86_64-302.17/gl.h
NVIDIA-Linux-x86_64-302.17/glext.h NVIDIA-Linux-x86_64-302.17/glx.h
NVIDIA-Linux-x86_64-302.17/glxext.h NVIDIA-Linux-x86_64-302.17/html
NVIDIA-Linux-x86_64-302.17/kernel NVIDIA-Linux-x86_64-302.17/libGL.la
NVIDIA-Linux-x86_64-302.17/libGL.so.302.17
NVIDIA-Linux-x86_64-302.17/libOpenCL.so.1.0.0
NVIDIA-Linux-x86_64-302.17/libXvMCNVIDIA.a
NVIDIA-Linux-x86_64-302.17/libXvMCNVIDIA.so.302.17
NVIDIA-Linux-x86_64-302.17/libcuda.so.302.17
NVIDIA-Linux-x86_64-302.17/libglx.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvcuvid.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-cfg.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-compiler.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-glcore.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-ml.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-tls.so.302.17
NVIDIA-Linux-x86_64-302.17/libnvidia-wfb.so.302.17
NVIDIA-Linux-x86_64-302.17/libvdpau.so.302.17
NVIDIA-Linux-x86_64-302.17/libvdpau_nvidia.so.302.17
NVIDIA-Linux-x86_64-302.17/libvdpau_trace.so.302.17
NVIDIA-Linux-x86_64-302.17/makeself.sh
NVIDIA-Linux-x86_64-302.17/mkprecompiled
NVIDIA-Linux-x86_64-302.17/nvidia-bug-report.sh
NVIDIA-Linux-x86_64-302.17/nvidia-debugdump
NVIDIA-Linux-x86_64-302.17/nvidia-installer
NVIDIA-Linux-x86_64-302.17/nvidia-installer.1.gz
NVIDIA-Linux-x86_64-302.17/nvidia-settings
NVIDIA-Linux-x86_64-302.17/nvidia-settings.1.gz
NVIDIA-Linux-x86_64-302.17/nvidia-settings.desktop
NVIDIA-Linux-x86_64-302.17/nvidia-settings.png
NVIDIA-Linux-x86_64-302.17/nvidia-smi
NVIDIA-Linux-x86_64-302.17/nvidia-smi.1.gz
NVIDIA-Linux-x86_64-302.17/nvidia-xconfig
NVIDIA-Linux-x86_64-302.17/nvidia-xconfig.1.gz
NVIDIA-Linux-x86_64-302.17/nvidia.icd
NVIDIA-Linux-x86_64-302.17/nvidia_drv.so
NVIDIA-Linux-x86_64-302.17/pkg-history.txt
NVIDIA-Linux-x86_64-302.17/tls NVIDIA-Linux-x86_64-302.17/tls_test
NVIDIA-Linux-x86_64-302.17/tls_test_dso.so
NVIDIA-Linux-x86_64-302.17/.manifest .
+ rmdir NVIDIA-Linux-x86_64-302.17
+ perl -pi '-es,(-I\$SOURCES/arch/x86/include)("| ),$1
-I\$SOURCES/arch/x86/include/generated$2,' kernel/conftest.sh
+ exit 0
Executing(%install): /bin/sh -e /home/ggalt/rpmbuild/tmp/rpm-tmp.ameJuA
+ umask 022
+ cd /home/ggalt/rpmbuild/BUILD
+ '[' /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
'!=' / ']'
+ rm -rf /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
++ dirname /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
+ mkdir -p /home/ggalt/rpmbuild/BUILDROOT
+ mkdir /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
+ cd nvidia-graphics302.17-302.17
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
+ mkdir -p /home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64
++ pwd
+ fakebin=/home/ggalt/rpmbuild/BUILD/nvidia-graphics302.17-302.17/fakebin
+ mkdir /home/ggalt/rpmbuild/BUILD/nvidia-graphics302.17-302.17/fakebin
+ PATH=/usr/libexec/nvidia-graphics-helpers:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ggalt/bin
+ export PATH
+ fakeroot ./nvidia-installer -s -N -e -b --no-runlevel-check
--no-rpms --no-x-check
--kernel-source-path=/usr/src/kernels/3.4.7-1.fc16.x86_64
--kernel-install-path=/home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64/lib/modules/3.4.7-1.fc16.x86_64/updates/drivers/video/nvidia
--log-file-name=kernel.log -K -k 3.4.7-1.fc16.x86_64

ERROR: No NVIDIA driver is currently installed; the
'--kernel-module-only' option can only be used to install the NVIDIA
kernel module on top of an existing
       driver installation.

+ cat kernel.log
nvidia-installer log file 'kernel.log'
creation time: Thu Aug 16 10:54:55 2012
installer version: 302.17

PATH: /usr/libexec/nvidia-graphics-helpers:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ggalt/bin

nvidia-installer command line:
    ./nvidia-installer
    -s
    -N
    -e
    -b
    --no-runlevel-check
    --no-rpms
    --no-x-check
    --kernel-source-path=/usr/src/kernels/3.4.7-1.fc16.x86_64
    --kernel-install-path=/home/ggalt/rpmbuild/BUILDROOT/nvidia-graphics302.17-302.17-147.fc16.x86_64/lib/modules/3.4.7-1.fc16.x86_64/updates/drivers/video/nvidia
    --log-file-name=kernel.log
    -K
    -k
    3.4.7-1.fc16.x86_64

chdir("./")
Using built-in stream user interface
-> Searching for system utilities:
-> found `ldconfig` : `/usr/libexec/nvidia-graphics-helpers/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 `selinuxenabled` : `/usr/sbin/selinuxenabled`
-> found `getenforce` : `/usr/sbin/getenforce`
-> found `execstack` : `/usr/bin/execstack`
-> found `pkg-config` : `/usr/bin/pkg-config`
-> found `X` : `/usr/bin/X`
-> Searching for module utilities:
-> found `insmod` : `/usr/libexec/nvidia-graphics-helpers/insmod`
-> found `modprobe` : `/usr/libexec/nvidia-graphics-helpers/modprobe`
-> found `rmmod` : `/usr/libexec/nvidia-graphics-helpers/rmmod`
-> found `lsmod` : `/usr/libexec/nvidia-graphics-helpers/lsmod`
-> found `depmod` : `/usr/libexec/nvidia-graphics-helpers/depmod`
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> Only installing a kernel module for a non-running kernel; skipping
the "is an X server running?" test.
-> Only installing a kernel module for a non-running kernel; skipping
the "is an NVIDIA kernel module loaded?" test.
-> License accepted by command line option.
-> Installing NVIDIA driver version 302.17.
-> Skipping check for conflicting rpms.
ERROR: No NVIDIA driver is currently installed; the
'--kernel-module-only' option can only be used to install the NVIDIA
kernel module on top of an existing driver installation.
+ test -z ''
+ exit 1
error: Bad exit status from /home/ggalt/rpmbuild/tmp/rpm-tmp.ameJuA (%install)


RPM build errors:
    Bad exit status from /home/ggalt/rpmbuild/tmp/rpm-tmp.ameJuA (%install)



On Thu, Aug 16, 2012 at 10:54 AM, Paulo Cavalcanti <[email protected]> wrote:
>
>
> On Wed, Aug 15, 2012 at 11:08 PM, George Galt <[email protected]> wrote:
>>
>> Paulo:
>>
>> Yes, I've checked and I have fakeroot 1.12.  What is the difference
>> and is there any way to use 1.12?
>
>
> None that I am aware of.
> I always downgrade to 1.11. I should have
> a pre-build version if you want.
>
>
> --
> Paulo Roma Cavalcanti
> LCG - UFRJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.