![]() |
|
|
#1 | |
|
Registered User
Join Date: Feb 2005
Posts: 66
|
http://www.kernel.org/git/?p=linux/k...d4424ff33a70ad
Quote:
Code:
$rpmbuild --rebuild --target i686 --define "kversion 2.6.18-1.2741.fc6" --define "kvariants \""\" nvidia-kmod-1.0.9625-1.2.6.18_1.2689.fc6.src.rpm
Installing nvidia-kmod-1.0.9625-1.2.6.18_1.2689.fc6.src.rpm
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.56368
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ bash /usr/src/redhat/SOURCES/kmodtool rpmtemplate nvidia 2.6.18-1.2741.fc6 ''
%package -n kmod-nvidia
Summary: nvidia kernel module(s)
Group: System Environment/Kernel
Provides: kernel-modules = 2.6.18-1.2741.fc6
Provides: nvidia-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: kernel-%{_target_cpu} = 2.6.18-1.2741.fc6
Requires: nvidia-kmod-common >= %{?epoch:%{epoch}:}%{version}
Requires(post): /sbin/depmod
Requires(postun): /sbin/depmod
BuildRequires: kernel-devel-%{_target_cpu} = 2.6.18-1.2741.fc6
%description -n kmod-nvidia
This package provides the nvidia kernel modules built for the Linux
kernel 2.6.18-1.2741.fc6 for the %{_target_cpu} family of processors.
%post -n kmod-nvidia
/sbin/depmod -aeF /boot/System.map-2.6.18-1.2741.fc6 2.6.18-1.2741.fc6 > /dev/null || :
%postun -n kmod-nvidia
/sbin/depmod -aF /boot/System.map-2.6.18-1.2741.fc6 2.6.18-1.2741.fc6 &> /dev/null || :
%files -n kmod-nvidia
%defattr(644,root,root,755)
/lib/modules/2.6.18-1.2741.fc6/extra/nvidia/
+ cd /usr/src/redhat/BUILD
+ rm -rf nvidia-kmod-1.0.9625
+ /bin/mkdir -p nvidia-kmod-1.0.9625
+ cd nvidia-kmod-1.0.9625
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/nvidia-glx-kmod-data-1.0.9625.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ for kvariant in '""'
+ cp -a nvidiapkg-x86 _kmod_build_
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.88214
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nvidia-kmod-1.0.9625
+ LANG=C
+ export LANG
+ unset DISPLAY
+ for kvariant in '""'
+ ksrc=/usr/src/kernels/2.6.18-1.2741.fc6-i686
+ pushd _kmod_build_/usr/src/nv/
/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625
+ ln -s -f Makefile.kbuild Makefile
+ make SYSSRC=/usr/src/kernels/2.6.18-1.2741.fc6-i686 module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /usr/src/kernels/2.6.18-1.2741.fc6-i686 SUBDIRS=/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/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 /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/.tmp_versions
rm -f /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -msoft-float -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=9625 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/.tmp_nv.o /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv.c
In file included from /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv.c:14:
/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv-linux.h:17:26: error: linux/config.h: No such file or directory
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv-linux.h:51,
from /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:564,
from /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv-linux.h:77,
from /usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv.c:14:
include/asm/io.h: In function 'check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
make[3]: *** [/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/usr/src/redhat/BUILD/nvidia-kmod-1.0.9625/_kmod_build_/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88214 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.88214 (%build)
OS: Fedora rawhide 20061005 Last edited by sangu; 10-05-06 at 12:26 PM. |
|
|
|
|
|
|
#2 |
|
NVIDIA Corporation
Join Date: Dec 2004
Posts: 8,763
|
Did you do as the error suggested and run 'make oldconfig && make prepare' on kernel src to fix it?
-Lonni |
|
|
|
| Sponsored Ads - Guests Only | |
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2006
Posts: 12
|
Hmm, i hate it when such errors aren't printed at the end.
Anyway, I got that nvidia.ko error with my FC4 2.6.17 kernel too. I had to apply 2 patches to the nvidia driver source first, then the installer worked just fine. Though that was with the 7xxx drivers, so those patches wont help anyway. |
|
|
|
|
|
#4 | ||
|
Registered User
Join Date: Feb 2005
Posts: 66
|
Quote:
but Nvidia kernel module buiding works well in kernel-devel-2.6.18-1.2726.fc6 and copying config.h from old kernel-devel package to kernel-devel-2.6.18-1.2741.fc6, this problem doesn't happen in kernel-devel-2.6.18-1.2741.fc6. Please See : https://www.redhat.com/archives/fedo.../msg00154.html Quote:
|
||
|
|
|
|
|
#5 |
|
NVIDIA Corporation
Join Date: Dec 2004
Posts: 8,763
|
Thanks. I've opened bug 258667 for this problem.
-Lonni |
|
|
|
|
|
#6 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,661
|
You can fix this problem by extracting the .run installer with the --extract-only option and updating the file usr/src/nv/nv-linux.h to #include linux/autoconf.h instead of linux/config.h.
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Jul 2004
Posts: 2
|
post deleted.. my own fault
the usr/linux dir linked to an outdated kernel-headers dir. way outdated... :-/ Last edited by cafeschintze; 10-06-06 at 06:18 PM. |
|
|
|
|
|
#8 |
|
Programmer
Join Date: Aug 2006
Location: Canada
Posts: 7
|
Code:
--- nv-linux.h 2006-09-14 19:10:17.000000000 -0400 +++ nv-linux.h2 2006-10-06 23:33:14.000000000 -0400 @@ -14,7 +14,7 @@ #include "nv.h" -#include <linux/config.h> +#include <linux/autoconf.h> #include <linux/version.h> #include <linux/utsname.h> ![]() Firewing1 |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Oct 2006
Posts: 3
|
I can't install original nvidia drivers under FC6... only then I edit this header
![]() nvidia driver: 1.0-9626 |
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Oct 2006
Posts: 7
|
Quote:
I just installed fedora 6 x86_64 (2.6.18) and changing this line was also necessary. |
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Aug 2006
Posts: 35
|
After you extract the .run file to edit the file, how to you install the drivers now that it's extracted? Is there some file you have to run? Do you recompress it to a .run file? How do you do that?
|
|
|
|
|
|
#12 | |
|
Registered User
Join Date: Nov 2006
Posts: 14
|
Quote:
nvidia-installer: nvidia-installer: cannot execute binary file |
|
|
|
|
![]() |
| Most Popular NVIDIA Based Graphics Cards | |
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|