Re: Rebuild Nvidia-rpms

George Galt <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.general
Message-ID <CA+-thJN-paDK60qcr8HSGads_ZuvdC+e6f+_rjAKhkrMXFXOWA@mail.gmail.com>
There is a thread about a month or two back in which Paulo gave me
some good instruction in how to build the nvidia rpms and kernel
modules.  There is a specific environment you have to create on your
system, including a downgrade to fakeroot 1.11 (I believe that is the
version number).  Search for the threat and follow the instructions.
It requires a little time, but is worth it in the end.

George

On Tue, Oct 16, 2012 at 6:12 AM, Roald <[email protected]> wrote:
> Hi list,
>
> I am trying to rebuild the nvidia-rpms. I have installed
> atrpms-rpm-config and kernel-devel.
>
> But when runnning rpmbuild --rebuild
> nvidia-graphics295.71-295.71-148.src.rpm I get this:
>
> *********************************
> [root@southpole ~]# rpmbuild --rebuild nvidia-graphics295.71-295.71-148.src.rpm
> Installing nvidia-graphics295.71-295.71-148.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cnIIqR
> + umask 022
> + cd /root/rpmbuild/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /root/rpmbuild/BUILD
> + rm -rf nvidia-graphics295.71-295.71
> + /bin/mkdir -p nvidia-graphics295.71-295.71
> + cd nvidia-graphics295.71-295.71
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + sh /root/rpmbuild/SOURCES/NVIDIA-Linux-x86_64-295.71.run --extract-only
> Creating directory NVIDIA-Linux-x86_64-295.71
> Verifying archive integrity... OK
> Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64
> 295.71.........................................................................................................................................................
> + mv NVIDIA-Linux-x86_64-295.71/32 NVIDIA-Linux-x86_64-295.71/LICENSE
> NVIDIA-Linux-x86_64-295.71/NVIDIA_Changelog
> NVIDIA-Linux-x86_64-295.71/README.txt NVIDIA-Linux-x86_64-295.71/gl.h
> NVIDIA-Linux-x86_64-295.71/glext.h NVIDIA-Linux-x86_64-295.71/glx.h
> NVIDIA-Linux-x86_64-295.71/glxext.h NVIDIA-Linux-x86_64-295.71/html
> NVIDIA-Linux-x86_64-295.71/kernel NVIDIA-Linux-x86_64-295.71/libGL.la
> NVIDIA-Linux-x86_64-295.71/libGL.so.295.71
> NVIDIA-Linux-x86_64-295.71/libOpenCL.so.1.0.0
> NVIDIA-Linux-x86_64-295.71/libXvMCNVIDIA.a
> NVIDIA-Linux-x86_64-295.71/libXvMCNVIDIA.so.295.71
> NVIDIA-Linux-x86_64-295.71/libcuda.so.295.71
> NVIDIA-Linux-x86_64-295.71/libglx.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvcuvid.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-cfg.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-compiler.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-glcore.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-ml.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-tls.so.295.71
> NVIDIA-Linux-x86_64-295.71/libnvidia-wfb.so.295.71
> NVIDIA-Linux-x86_64-295.71/libvdpau.so.295.71
> NVIDIA-Linux-x86_64-295.71/libvdpau_nvidia.so.295.71
> NVIDIA-Linux-x86_64-295.71/libvdpau_trace.so.295.71
> NVIDIA-Linux-x86_64-295.71/makeself.sh
> NVIDIA-Linux-x86_64-295.71/mkprecompiled
> NVIDIA-Linux-x86_64-295.71/nvidia-bug-report.sh
> NVIDIA-Linux-x86_64-295.71/nvidia-debugdump
> NVIDIA-Linux-x86_64-295.71/nvidia-installer
> NVIDIA-Linux-x86_64-295.71/nvidia-installer.1.gz
> NVIDIA-Linux-x86_64-295.71/nvidia-settings
> NVIDIA-Linux-x86_64-295.71/nvidia-settings.1.gz
> NVIDIA-Linux-x86_64-295.71/nvidia-settings.desktop
> NVIDIA-Linux-x86_64-295.71/nvidia-settings.png
> NVIDIA-Linux-x86_64-295.71/nvidia-smi
> NVIDIA-Linux-x86_64-295.71/nvidia-smi.1.gz
> NVIDIA-Linux-x86_64-295.71/nvidia-xconfig
> NVIDIA-Linux-x86_64-295.71/nvidia-xconfig.1.gz
> NVIDIA-Linux-x86_64-295.71/nvidia.icd
> NVIDIA-Linux-x86_64-295.71/nvidia_drv.so
> NVIDIA-Linux-x86_64-295.71/pkg-history.txt
> NVIDIA-Linux-x86_64-295.71/tls NVIDIA-Linux-x86_64-295.71/tls_test
> NVIDIA-Linux-x86_64-295.71/tls_test_dso.so
> NVIDIA-Linux-x86_64-295.71/.manifest .
> + rmdir NVIDIA-Linux-x86_64-295.71
> + 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 /var/tmp/rpm-tmp.zRkr3s
> + umask 022
> + cd /root/rpmbuild/BUILD
> + '[' /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> '!=' / ']'
> + rm -rf /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> ++ dirname /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> + mkdir -p /root/rpmbuild/BUILDROOT
> + mkdir /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> + cd nvidia-graphics295.71-295.71
> + LANG=C
> + export LANG
> + unset DISPLAY
> + rm -rf /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> + mkdir -p /root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64
> ++ pwd
> + fakebin=/root/rpmbuild/BUILD/nvidia-graphics295.71-295.71/fakebin
> + mkdir /root/rpmbuild/BUILD/nvidia-graphics295.71-295.71/fakebin
> + PATH=/usr/libexec/nvidia-graphics-helpers:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
> + export PATH
> + fakeroot ./nvidia-installer -s -N -e -b --no-runlevel-check
> --no-rpms --no-x-check
> --kernel-source-path=/lib/modules/3.6.2-1.el6.elrepo.x86_64/build
> --kernel-install-path=/root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64/lib/modules/3.6.2-1.el6.elrepo.x86_64/updates/drivers/video/nvidia
> --log-file-name=kernel.log -K -k '%{_kernel}'
>
> 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: Tue Oct 16 12:07:45 2012
> installer version: 295.71
>
> PATH: /usr/libexec/nvidia-graphics-helpers:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>
> nvidia-installer command line:
>     ./nvidia-installer
>     -s
>     -N
>     -e
>     -b
>     --no-runlevel-check
>     --no-rpms
>     --no-x-check
>     --kernel-source-path=/lib/modules/3.6.2-1.el6.elrepo.x86_64/build
>     --kernel-install-path=/root/rpmbuild/BUILDROOT/nvidia-graphics295.71-295.71-148.x86_64/lib/modules/3.6.2-1.el6.elrepo.x86_64/updates/drivers/video/nvidia
>     --log-file-name=kernel.log
>     -K
>     -k
>     %{_kernel}
>
> 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` : `/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`
> -> 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 295.71.
> -> 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 /var/tmp/rpm-tmp.zRkr3s (%install)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.zRkr3s (%install)
> *************************************
>
> It is correct that no NVIDIA-driver is currently loaded, because I am
> trying out the kernel-ml. But if I reboot into the
> 2.6.32-279.9.1.el6.x86_64 kernel, it seems I get the same errors. I
> have also tried building as a user, but same errors.
>
> What am I doing wrong?
>
> --
> Roald Amundsen
>
> _______________________________________________
> atrpms-users mailing list
> [email protected]
> http://lists.atrpms.net/mailman/listinfo/atrpms-users
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.