Re: Debian uses gcc272 for kernel; conflicts with NVidia-kernel-src

2002-01-17 Thread Colin Watson
On Thu, Jan 17, 2002 at 01:46:12PM -0700, Rick Macdonald wrote:
> On Thu, 17 Jan 2002, nate wrote:
> > i only have 1 system that uses the nvidia drivers, 2.2.19 with
> > gcc 2.95.4(debian woody). potato has 2.95.2. i have not tested
> > the nvidia drivers on debian potato ...
> 
> It seems to me that the only way this would work for you is if you didn't
> have gcc272 installed, which seems unlikely.

Sounds pretty likely to me. gcc272 is 'Priority: extra', and nothing
depends on it, so you'd have to select it explicitly.

-- 
Colin Watson  [EMAIL PROTECTED]



Re: Debian uses gcc272 for kernel; conflicts with NVidia-kernel-src

2002-01-17 Thread Rick Macdonald
On Thu, 17 Jan 2002, nate wrote:

> 
> >
> > When I build my kernel 2.2.19 (using make-kpkg), the gcc version is
> > forced to gcc272.
> 
> you don't mention whether or not forcing gcc to 2.7.2 is intentional
> or not. 2.95.x is probably the best compiler for 2.2.19. i have
> several dozen servers running 2.2 and all of them are compiled
> with 2.95.x

The top level Makefile (usr/src/linux/kernel-source-2.2.19) forces it:

#   foo-bar-gcc for cross builds
#   gcc272 for Debian's old compiler for kernels
#   kgcc for Conectiva, Mandrake and Red Hat 7
#   otherwise 'cc'
#
CC  =$(shell if [ -n
"$(CROSS_COMPILE)" ]; then echo
$(CROSS_COMPILE)gcc; else \
$(CONFIG_SHELL) scripts/kwhich gcc272 2>/dev/null ||
$(CONFIG_SHELL) scripts/kwhich kgcc 2>/dev/null || echo cc; fi)

and scripts/kwhich returns the first one it finds, which is gcc272.

> i only have 1 system that uses the nvidia drivers, 2.2.19 with
> gcc 2.95.4(debian woody). potato has 2.95.2. i have not tested
> the nvidia drivers on debian potato ...

It seems to me that the only way this would work for you is if you didn't
have gcc272 installed, which seems unlikely. Are you uses the nvidia
2313/2314 deb packages?

What does /proc/version show?

timshel:~$ cat /proc/version 
Linux version 2.2.19 ([EMAIL PROTECTED]) (gcc version 2.95.4 (Debian
prerelease)) #1 Thu Jan 17 11:20:34 MST 2002

...RickM...



Re: Debian uses gcc272 for kernel; conflicts with NVidia-kernel-src

2002-01-17 Thread nate

>
> When I build my kernel 2.2.19 (using make-kpkg), the gcc version is
> forced to gcc272.

you don't mention whether or not forcing gcc to 2.7.2 is intentional
or not. 2.95.x is probably the best compiler for 2.2.19. i have
several dozen servers running 2.2 and all of them are compiled
with 2.95.x

i only have 1 system that uses the nvidia drivers, 2.2.19 with
gcc 2.95.4(debian woody). potato has 2.95.2. i have not tested
the nvidia drivers on debian potato ...

nate






Debian uses gcc272 for kernel; conflicts with NVidia-kernel-src

2002-01-17 Thread Rick Macdonald

When I build my kernel 2.2.19 (using make-kpkg), the gcc version is forced
to gcc272.

Installing and building the NVidia drivers (sid 2313), it forces you to
use the same gcc version. But then the compile fails. I'm forced to build
my kernel with 2.95.4. Is this a bug or what?

gcc272 -c -Wall -Wno-unknown-pragmas -Wno-multichar -O -D__KERNEL__
-DMODULE -D_LOOSE_KERNEL_NAMES -D_X86_=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW
-DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2314  -I.
-I/usr/src/linux/include nv.c
cc1: Invalid option `-Wno-unknown-pragmas'
cc1: Invalid option `-Wno-multichar'
make[2]: *** [nv.o] Error 1
make[2]: Leaving directory
`/usr/src/modules/nvidia-kernel-1.0.2314/NVIDIA_kernel-1.0-2314'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel-1.0.2314'
Module /usr/src/modules/nvidia-kernel-1.0.2314 failed.

...RickM...