SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i installed 12.2 and then compiled 2.6.30.1 kernel. it seemed to go ok and now i'm trying to rebuild the nvidia-kernel package from sbo, but the nvidia installer cannot find the new kernel modules.
i'm getting this sort of messages
Code:
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."; \
To start with, you realise you cannot recompile a binary driver?
But it sounds like you have not installed the kernel development packages - these contain the header files.
To start with, you realise you cannot recompile a binary driver?
yeah... bad choice of words...
Quote:
Originally Posted by Simon Bridge
But it sounds like you have not installed the kernel development packages - these contain the header files.
but i did build the nvidia-kernel package on the 2.6.27.7 stock kernel with no problems... it's only the new kernel that i cannot build it agaist./var/log/packages/kernel-firmware-2.6.27.7-noarch-1
But it sounds like you have not installed the kernel development packages - these contain the header files.
Slackware does not split its packages into normal and -devel packages.
zoran119 its sounds like a problem with your kernel source.
Did you install your new kernel source in /usr/src/linux-2.6.30.1 and compile it from there?
Also I am not sure but the Nvidia driver may need the /usr/src/linux
symlink to point to the kernel source you want to build against also
I get that message too. I dont remember if it happened earlier since its been a while i hadnt recompiled the nvidia driver,
but the bottom line is the nvidia-kernel module works fine.
Just ignore the messages.
zoran119 its sounds like a problem with your kernel source.
Did you install your new kernel source in /usr/src/linux-2.6.30.1 and compile it from there?
Also I am not sure but the Nvidia driver may need the /usr/src/linux
symlink to point to the kernel source you want to build against also
Missing headers means exactly that. In other distros, the headers are in a seperate package so it's quite common that the package is not installed. In your case, have you verified the existence of the headers?
Sakho suggests that the compilation is fine anyway, and it is safe to ignore the errors you report.
Since your build environment looks good, and Sakho is incorrect in your case, you should try the suggestion in the error message:
This error pops up when the nVidia installer can not find the correct .config file for your running kernel.
Check that /usr/src/linux does not have a different .config file than the one used to compile your kernel, and /boot/config is either your kernel .config file, or a symlink to it. Not sure if that last step is 100% necessary.
Also make sure you are actually running the newly compiled kernel There's been some late nights that lasted far too long, simply because I forgot to run/update lilo
Last edited by disturbed1; 07-05-2009 at 12:16 AM.
Also make sure you are actually running the newly compiled kernel There's been some late nights that lasted far too long, simply because I forgot to run/update lilo
This error pops up when the nVidia installer can not find the correct .config file for your running kernel.
Check that /usr/src/linux does not have a different .config file than the one used to compile your kernel, and /boot/config is either your kernel .config file, or a symlink to it. Not sure if that last step is 100% necessary.
Also make sure you are actually running the newly compiled kernel There's been some late nights that lasted far too long, simply because I forgot to run/update lilo
ok... i checked your suggestions, recompiled the kernel again (with make prepare as nvidia suggests) and still no go...
can anyone see anyting wrong here... i did boot into the new kernel (checked with uname -r) when i was trying to build nvidia package.
root@helios:~# cat /tmp/nvidia/nvidia_kernel/nvidia-kernel/aaa
Creating directory NVIDIA-Linux-x86-180.29-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 180.29................................................................................................................................................
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.30.1-smp/build SUBDIRS=/tmp/SBo/NVIDIA-Linux-x86-180.29-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 /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/.tmp_versions ; rm -f /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv
cc -Wp,-MD,/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.2.4/include -Iinclude -I/usr/src/linux-2.6.30.1/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -I/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"180.29\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.o /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c
In file included from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from include/linux/utsname.h:35,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:19,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h: In function 'set_bit':
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h:64: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h: In function 'clear_bit':
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h:102: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h: In function 'change_bit':
/usr/src/linux-2.6.30.1/arch/x86/include/asm/bitops.h:178: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/list.h:6,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56,
from include/linux/sched.h:54,
from include/linux/utsname.h:35,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:19,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:57: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/utsname.h:35,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:19,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
include/linux/sched.h: In function 'object_is_on_stack':
include/linux/sched.h:2120: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/io.h:22,
from include/linux/pci.h:54,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:86,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
/usr/src/linux-2.6.30.1/arch/x86/include/asm/io.h: In function 'writeq':
/usr/src/linux-2.6.30.1/arch/x86/include/asm/io.h:70: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/dma-mapping.h:7,
from include/asm-generic/pci-dma-compat.h:7,
from /usr/src/linux-2.6.30.1/arch/x86/include/asm/pci.h:129,
from include/linux/pci.h:1098,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:86,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
include/linux/scatterlist.h: In function 'sg_virt':
include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in arithmetic
In file included from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv-linux.h:113,
from /tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:14:
include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_create':
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:596: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:597: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:598: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:618: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:632: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:643: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:653: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:663: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:674: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:681: error: 'struct proc_dir_entry' has no member named 'owner'
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_add_warning_file':
/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.c:708: error: 'struct proc_dir_entry' has no member named 'owner'
make[3]: *** [/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/tmp/SBo/NVIDIA-Linux-x86-180.29-pkg0/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
I remember reading about some headers being pulled from kernel after last 2.6.28.x*. That was the case when I tried compiling Catalyst for 2.6.29... Any relation?
It looks as if that version of the nvidia driver will not build on 2.6.30+
I found this blurb on the interweb. I have no idea if the fix works.
Code:
According to lkml.org [1] proc_dir_entry::owner field was removed in
2.6.30, so for now you can fix it by simply removing or commenting all
the lines using proc_dir_entry::owner in nv.c.
Krzesimir Nowak
[1] http://lkml.org/lkml/2009/1/26/342
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.