[PlanetCCRMA] problem starting X

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Fri Jun 1 23:17:04 PDT 2012


On 05/31/2012 04:27 PM, Jeffrey Stephen wrote:
> Hi Fernando,
>
> I installed the rt-devel package but the build still fails. I then
> uninstalled the nvidia driver and tried the build again - it still
> fails. The build log is shown below.

The plain nvidia driver does not compile with the rt kernels, it needs a 
patch. There is a (probably old by now) package I created for this on 
the fc14 testing repository.

akmod-nvidia-280.13-2.1.fc14.ccrma.3

This should work as it has the patch included...
-- Fernando


> nvidia-installer log file '/var/log/nvidia-installer.log'
> creation time: Fri Jun  1 09:15:33 2012
> installer version: 285.05.33
>
> PATH:
> /usr/local/cuda/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/s
> bin:/us
> r/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>
> 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
>    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
>    no X server check                  : false
>    no cc version check                : false
>    run distro scripts                 : true
>    no nouveau check                   : false
>    run nvidia-xconfig                 : false
>    sigwinch work around               : true
>    force tls                          : (not specified)
>    force compat32 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)
>    compat32 install chroot            : (not specified)
>    compat32 install prefix            : (not specified)
>    compat32 install libdir            : (not specified)
>    utility install prefix             : (not specified)
>    utility install libdir             : (not specified)
>    installer prefix                   : (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)
>    precompiled kernel interfaces path : (not specified)
>    precompiled kernel interfaces url  : (not specified)
>    proc mount point                   : /proc
>    ui                                 : (not specified)
>    tmpdir                             : /tmp
>    ftp mirror                         : ftp://download.nvidia.com
>    RPM file list                      : (not specified)
>    selinux chcon type                 : (not specified)
>
> Using: nvidia-installer ncurses user interface
> ->  Tagging shared libraries with chcon -t textrel_shlib_t.
> ->  License accepted.
> ->  Installing NVIDIA driver version 285.05.33.
> ->  Performing CC sanity check with CC="cc".
> ->  Performing CC version check with CC="cc".
> ->  Kernel source path:
>     '/lib/modules/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/source'
> ->  Kernel output path:
>     '/lib/modules/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/build'
> ->  Performing rivafb check.
> ->  Performing nvidiafb check.
> ->  Performing Xen check.
> ->  Cleaning kernel module build directory.
>     executing: 'cd ./kernel; make clean'...
> ->  Building kernel module:
>     executing: 'cd ./kernel; make module
> SYSSRC=/lib/modules/2.6.33.13-149.rt31.
>     2.fc14.ccrma.x86_64.rt/source
> SYSOUT=/lib/modules/2.6.33.13-149.rt31.2.fc14.
>     ccrma.x86_64.rt/build'...
>     NVIDIA: calling KBUILD...
>     make -C /lib/modules/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/build
> \
>     KBUILD_SRC=/usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt
> \
>     KBUILD_EXTMOD="/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel"
> -f /usr
>     /src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/Makefile \
>     modules
>     test -e include/generated/autoconf.h -a -e include/config/auto.conf
> || (             \
>     echo;
> \
>     echo "  ERROR: Kernel configuration is invalid.";            \
>     echo "         include/generated/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
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/.tmp_versions
>     ; rm -f
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/.tmp_versions/*
>     make -f
> /usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/scripts/M
>     akefile.build
> obj=/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel
>       cc
> -Wp,-MD,/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/.nv.o.d  -
>     nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.5.1/include
> -I/usr/src/
>     kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/arch/x86/include
> -Iinclude
>      -I/usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/include
> -inclu
>     de include/generated/autoconf.h
> -I/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.
>     05.33/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
> -Wno-trigraphs -
>     fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
> -Wno-f
>     ormat-security -fno-delete-null-pointer-checks -Os -m64
> -mtune=generic -mno-
>     red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
> -fstack
>     -protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
> -DCONFIG_AS_CFI_
>     SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables
> -mno-sse
>     -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048
> -fno-omit-frame-point
>     er -fno-optimize-sibling-calls -g -Wdeclaration-after-statement
> -Wno-pointer
>     -sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack
> -I/tmp/sel
>     fgz4897/NVIDIA-Linux-x8
>     6_64-285.05.33/kernel -Wall -MD -Wsign-compare -Wno-cast-qual
> -Wno-error -D_
>     _KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"285.05.33\"
> -Wno-unused-func
>     tion -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG
> -DMODULE -D"KB
>     UILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"
> -D"KBUILD_MODNAME=KBUILD
>     _STR(nvidia)" -D"DEBUG_HASH=60" -D"DEBUG_HASH2=14" -c -o
> /tmp/selfgz4897/NVI
>     DIA-Linux-x86_64-285.05.33/kernel/nv.o
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-2
>     85.05.33/kernel/nv.c
>     In file included from
> /usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_6
>     4.rt/arch/x86/include/asm/uaccess.h:573:0,
>                      from include/linux/poll.h:13,
>                      from
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/n
>     v-linux.h:99,
>                      from
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/n
>     v.c:13:
>
> /usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/arch/x86/incl
> ude/
>     asm/uaccess_64.h: In function 'copy_from_user':
>
> /usr/src/kernels/2.6.33.13-149.rt31.2.fc14.ccrma.x86_64.rt/arch/x86/incl
> ude/
>     asm/uaccess_64.h:35:41: warning: comparison between signed and
> unsigned inte
>     ger expressions
>     In file included from
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/n
>     v.c:13:0:
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv-linux.h: At
> top leve
>     l:
>
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv-linux.h:267:27:
> erro
>     r: expected '=', ',', ';', 'asm' or '__attribute__' befo
>     re 'nv_spinlock_t'
>     In file included from
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/n
>     v.c:13:0:
>
> /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv-linux.h:1468:5:
> erro
>     r: expected specifier-qualifier-list before 'nv_spinlock_t'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c: In
> function 'nv
>     _alloc_file_private':
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:1730:9:
> error: imp
>     licit declaration of function 'semaphore_init'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:1732:74:
> error: 342200
>     230nv_file_private_t' has no member named 'waitqueue'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:1733:5:
> error: imp
>     licit declaration of function 'atomic_spin_lock_init'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:1733:32:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c: In
> function 'nv
>     _kern_poll':
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:2513:30:
> error: 342200
>     230nv_file_private_t' has no member named 'waitqueue'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:2516:5:
> error: imp
>     licit declaration of function 'atomic_spin_lock_irqsave'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:2516:35:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:2527:5:
> error: imp
>     licit declaration of function 'atomic_spin_unlock_irqrestore'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:2527:40:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c: In
> function 'nv
>     _post_event':
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3573:35:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3590:20:
> error: 342200
>     230nv_file_private_t' has no member named 'waitqueue'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3591:40:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c: In
> function 'nv
>     _get_event':
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3605:35:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3608:44:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     /tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.c:3633:40:
> error: 342200
>     230nv_file_private_t' has no member named 'fp_lock'
>     make[4]: ***
> [/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel/nv.o] Err
>     or 1
>     make[3]: ***
> [_module_/tmp/selfgz4897/NVIDIA-Linux-x86_64-285.05.33/kernel]
>     Error 2
>     make[2]: *** [sub-make] Error 2
>     NVIDIA: left KBUILD.
>     nvidia.ko failed to build!
>     make[1]: *** [module] Error 1
>     make: *** [module] Error 2
> ->  Error.
> ERROR: Unable to build the NVIDIA kernel module.
> 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.
>
>
>
> -----Original Message-----
> From: Fernando Lopez-Lezcano [mailto:nando at ccrma.Stanford.EDU]
> Sent: Friday, 1 June 2012 4:02 AM
> To: Jeffrey Stephen
> Cc: planetccrma at ccrma.Stanford.EDU
> Subject: Re: [PlanetCCRMA] problem starting X
>
> On 05/30/2012 08:09 PM, Jeffrey Stephen wrote:
>> Hi
>>
>> I have just installed the planet-ccrma rt kernel on a machine running
>> x86_64 FC14. When I attempt to start X, I get the error message:
>>
>> Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
>>
>> ...
>>
>> NVIDIA: Failed to load the NVIDIA kernel module.
>>
>> Previous posts to this mail list have indicated that I need
> kmod-nvidia
>>
>> for my kernel. It seems that I don't have this:
>>
>> rpm -qa | grep -i nvidia
>>
>> ------------------------
>>
>> -->  no modules found
>>
>> rpm -qa | grep -i kmod
>>
>> ----------------------
>>
>> -->  no modules found
>>
>> I then attempted to install the nVidia driver (is that what it
> needs?),
>>
>> but the installation stopped with the message:
>>
>> There appears to already be a driver installed on your system
> (version:
>>
>> 285.05.33). As part of installing this driver (version: 285.05.33),
> the
>>
>> existing driver will be uninstalled. Are you sure you want to
> continue?
>>
>> ('no' will abort installation)
>>
>> If I continue with the installation, it fails with the message:
>>
>> ---------------------------------------------------------------
>>
>> ERROR: Unable to find the kernel source tree for the currently running
>>
>> kernel. Please make sure you have installed the kernel source files
>>
>> for your kernel and that they are properly configured; on Red Hat
>>
>> Linux systems, for example, be sure you have the 'kernel-source' or
>>
>> 'kernel-devel' RPM installed. If you know the correct kernel source
>>
>> files are installed, you may specify the kernel source path with the
>>
>> '--kernel-source-path' command line option.
>>
>> It appears as though I don't have the kernel source/devel rpm for the
> rt
>> kernel:
>>
>> rpm -qa | grep -i kernel
>
> Try installing the kernel-rt-devel for your installed rt kernel...
> -- Fernando
>
>
>
> ------------------------------
> The information in this email together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. There is no waiver of any confidentiality/privilege by your inadvertent receipt of this material.
> Any form of review, disclosure, modification, distribution and/or publication of this email message is prohibited, unless as a necessary part of Departmental business.
> If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.
> ------------------------------
>
>
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma



More information about the PlanetCCRMA mailing list