Re: building nvidia module on sarge

2006-07-15 Thread Sam Varghese
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Jul 14, 2006 at 09:48:36PM -0700 Alan Ianson said:
 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.

You need gcc-3.4 to build the nvidia stuff on sarge. I wrote down what I
did and it may help:

http://www.gnubies.com/linux/debian_amd64.html

Sam
- -- 
Sam Varghese
http://www.gnubies.com
The scientific name for an animal that doesn't either run from or
fight its enemies is lunch.
My PGP key: http://www.gnubies.com/encryption/sign.txt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEuJzWZyXhknb+33gRAiL7AJ4/XVLL0CidBuOA1HD28o1x+CiK6QCePs8P
l2Niv4dAj6NzvRdNi1NVbNM=
=p07y
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: building nvidia module on sarge

2006-07-15 Thread Jo Shields

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.


gcc-3.4 is available in Sarge, but not the default. The scripts that 
m-a a-i nvidia run include automatic detection of the appropriate 
compiler, using information in /proc/version. You will need to install 
that compiler by hand if it's not a dependency of the build-essential 
package.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: building nvidia module on sarge

2006-07-15 Thread Alan Ianson
On Sat July 15 2006 12:44 am, Sam Varghese wrote:
 On Fri, Jul 14, 2006 at 09:48:36PM -0700 Alan Ianson said:
  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.

 You need gcc-3.4 to build the nvidia stuff on sarge. I wrote down what I
 did and it may help:

 http://www.gnubies.com/linux/debian_amd64.html

 Sam
 --
 Sam Varghese
 http://www.gnubies.com
 The scientific name for an animal that doesn't either run from or
 fight its enemies is lunch.
 My PGP key: http://www.gnubies.com/encryption/sign.txt

Thank you kindly. I have the nvidia module up and running now.. :)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



building nvidia module on sarge

2006-07-14 Thread Alan Ianson
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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: building nvidia module on sarge

2006-07-14 Thread Roberto C. Sanchez
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)?

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto


signature.asc
Description: OpenPGP digital signature


Re: building nvidia module on sarge

2006-07-14 Thread Alan Ianson
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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: building nvidia module on sarge

2006-07-14 Thread Dean Hamstead

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.






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: building nvidia module on sarge

2006-07-14 Thread Alan Ianson
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 ##