[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building nvidia module on sarge



On Fri July 14 2006 10:13 pm, Dean Hamstead wrote:
> i believe 'prepare' may help you
>
> ie
>
> m-a prepare nvidia
>
> could be wrong. debian people are lazy, so we spend ages writing
> a tool like that does stuff for us ;)
>
> not that i have contributed any code to debian - so 'we' is more
> like 'they'.
>
> Dean
>
> Alan Ianson wrote:
> > On Fri July 14 2006 10:02 pm, Roberto C. Sanchez wrote:
> >> Alan Ianson wrote:
> >>> I'd like to build the nvidia-kernel-source on sarge but "m-a
> >>> auto-install nvidia" says I haven't got the right compiler to build the
> >>> module, so how can I do that?
> >>>
> >>> If I add testing repositories and grab testings kernel and gcc and
> >>> friends will that work?
> >>>
> >>> If anyone has done this and can give me some pointers it'd be
> >>> appreciated.
> >>
> >> It's hard to tell why it says that.  What kernel are you running (the
> >> output of `uname -a` will tell you) and what version of gcc is the
> >> default (the output of `gcc --version` will tell you)?
> >
> > The kernel is 2.6.8-12-amd64-k8, and gcc is 3.3.5. I suspect that that is
> > a security fixed kernel since sarge's release and m-a wants gcc 3.4.


"m-a prepare" did get some needed files but failed to build the module. The 
buld.log is below..

/usr/bin/make  -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.kbuild Makefile ; \
     cd .. ; \
     if [ 0  = 1 ] ; then \
        dpatch apply 04_minion ; \
     fi ; \
     if [ 0 = 1 ]; then \
     	dpatch apply 01_sysfs ; \
	dpatch status 01_sysfs >patch-stamp ; \
	dpatch apply 02_pcialias ; \
               	dpatch status 02_pcialias >>patch-stamp ; \
     fi ; \
fi
if [  6 = 4  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.nvidia Makefile ; \
     cd .. ; \
fi
if [ -e patch-stamp ]; then \
   dpatch deapply-all ; \
   rm -rf patch-stamp debian/patched ; \
fi   
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
	
cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; 
\
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/usr/src/linux -C /usr/src/modules/nvidia-kernel/nv 
-f Makefile 
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o 
os-agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true; 	
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD = 
/usr/bin/make  -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.kbuild Makefile ; \
     cd .. ; \
     if [ 0  = 1 ] ; then \
        dpatch apply 04_minion ; \
     fi ; \
     if [ 0 = 1 ]; then \
     	dpatch apply 01_sysfs ; \
	dpatch status 01_sysfs >patch-stamp ; \
	dpatch apply 02_pcialias ; \
               	dpatch status 02_pcialias >>patch-stamp ; \
     fi ; \
fi
if [  6 = 4  ]; then \
     cd /usr/src/modules/nvidia-kernel/nv ; \
     ln -s Makefile.nvidia Makefile ; \
     cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
	
cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; 
\
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6 
Kernel compiler version : 3.4.3
Detected compiler version : /bin/sh: line 1: gcc-3.4: command not found 
                                                           
You appear to be compiling the NVIDIA kernel module with   
a compiler different from the one that was used to compile 
the running kernel. This may be perfectly alright and you 
may be building this module for another kernel in which case
you may ignore this message.
 
The compiler that will be used to compile this module has been
determined from:
 1) the CC environment variable 
 2) that specified in 
    /usr/src/linux/include/linux/compile.h
 3) gcc 
Using compiler gcc-3.4 version /bin/sh: line 1: gcc-3.4: command not found 
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-3.4"  /usr/bin/make 
-C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/usr/src/linux   
KBUILD_PARAMS="-C /usr/src/linux SUBDIRS=/usr/src/modules/nvidia-kernel/nv" 
module;
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
./conftest.sh: line 1: gcc-3.4: command not found
./conftest.sh: line 1: gcc-3.4: command not found
Your kernel was configured to include rivafb support!

The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* rivafb support, then
try installing the NVIDIA kernel module again.

*** Failed rivafb sanity check. Bailing out! ***

make[2]: *** [rivafb-sanity-check] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2



Reply to: