Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-16-05, 01:41 AM   #1
egx
Registered User
 
Join Date: Jul 2005
Posts: 2
Default gcc 4.0

Hi!

Since in Debian sid the gcc 4.0 is now the maincompiler i want to try building the kernel with this gccversion.
But how does it work with the Nvidia modules? Can I use gcc 4.0 for my kernel? Or have I to go back to gcc 3.x?

Thanks in advance
egx
egx is offline   Reply With Quote
Old 07-16-05, 01:46 AM   #2
smthmlk.
linux.
 
Join Date: Jan 2005
Posts: 102
Default Re: gcc 4.0

Quote:
Originally Posted by egx
Hi!

Since in Debian sid the gcc 4.0 is now the maincompiler i want to try building the kernel with this gccversion.
But how does it work with the Nvidia modules? Can I use gcc 4.0 for my kernel? Or have I to go back to gcc 3.x?

Thanks in advance
egx
GCC4 Should be ok. Fedora Core 4 uses GCC4 by default, and that's what i compiled my kernel (2.6.12.2) and nvidia modules (7667, 7174, using the nvidia-installer) with.

No problems as far as I can tell.
smthmlk. is offline   Reply With Quote
Old 07-16-05, 07:29 AM   #3
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: gcc 4.0

Hi!

I can also confirm that the nvidia kernel module in 7667 compiles with the
GCC-4.0 supplied in FC4 (kernel 2.6.12).

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 07-16-05, 03:17 PM   #4
poca
Registered User
 
Join Date: Apr 2005
Posts: 25
Default Re: gcc 4.0

I try yesterday on debian sid, and it's ok (for me)
poca is offline   Reply With Quote
Old 07-17-05, 10:11 AM   #5
wizdom
Registered User
 
Join Date: Jan 2003
Posts: 89
Default Re: gcc 4.0

Kernel and module compiler must match, but GCC 4.0.x itself seems to work fine with the NVIDIA glue (albeit with a lot of warnings).

I'm getting by okay with my AMD64 and an x86-64 kernel, and the latest driver.
wizdom is offline   Reply With Quote
Old 07-24-05, 02:32 PM   #6
egx
Registered User
 
Join Date: Jul 2005
Posts: 2
Default Re: gcc 4.0

thx everyone
i will try it
egx is offline   Reply With Quote
Old 09-30-05, 03:12 PM   #7
tranzmatt
Registered User
 
Join Date: Sep 2005
Posts: 2
Default Re: gcc 4.0

Quote:
Originally Posted by JaXXoN
Hi!

I can also confirm that the nvidia kernel module in 7667 compiles with the
GCC-4.0 supplied in FC4 (kernel 2.6.12).

regards

Bernhard
I'm getting errors with gcc 4.0.1 20050727 (RH 4.0.1-5) on FC4. It compiled & ran fine under the base FC4 install, but it won't load after up2date ran and I can't recompile it. Can anyone help?

echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /usr/local/src/Nvid
ia/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/nv
/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.1/include -D
__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.11-1.1369_FC4-smp-i68
6/include -Iarch/ppc -I/usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1
/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -f
no-common -ffreestanding -O2 -fomit-frame-pointer -g -I/usr/src/kernels/2.6.
11-1.1369_FC4-smp-i686/arch/ppc -Iarch/ppc -msoft-float -pipe -ffixed-r2 -mm
ultiple -mstring -I/usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1/usr
/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -
Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsig
n-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMOD
ULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MA
JOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7676 -UDEBUG -U_DEBUG -DN
DEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_REMA
P_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PR
ESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -DKBUILD_BASENAME=nv
-DKBUILD_MODNAME=nvidia -c -o /usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pk
g1/usr/src/nv/.tmp_nv.o /usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1
/usr/src/nv/nv.c
cc1: error: invalid option ‘multiple’
cc1: error: invalid option ‘string’
cc1: warning: unknown register name: r2
make[4]: *** [/usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1/usr/src/n
v/nv.o] Error 1
make[3]: *** [_module_/usr/local/src/Nvidia/NVIDIA-Linux-x86-1.0-7676-pkg1/u
sr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
tranzmatt is offline   Reply With Quote
Old 09-30-05, 06:05 PM   #8
NIN9
Registered User
 
Join Date: Sep 2005
Posts: 4
Lightbulb Re: gcc 4.0

GCC 4 series are at develpment stage and arent recommened yet.
Stick with gcc-3.4 and you'll be able to compile your drivers.
I actually got same problem as you EGX, but on Ubuntu which is debian based too.

Just run this command "as root" (not with sudo), before compiling nvdia drivers.

CC=gcc-3.4
NIN9 is offline   Reply With Quote

Old 10-01-05, 03:13 PM   #9
energyman76b
Registered User
 
Join Date: Dec 2002
Location: Clausthal/Germany
Posts: 1,104
Default Re: gcc 4.0

Hi,

since gcc4 produces slower code, using gcc3.4 is not a bad decision
energyman76b is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora To Remain Monogamist Towards GCC News Archived News Items 0 05-15-12 05:30 AM
gcc version3 kenrel module problems valserWater NVIDIA Linux 11 09-07-02 09:40 AM
Kernel drivers and GCC 3.2 Alan666 NVIDIA Linux 2 08-24-02 10:21 PM
NVIDIA_kernel with gcc 3.2 based linux kernel akay NVIDIA Linux 18 08-24-02 09:23 AM
Question about GCC version shosking NVIDIA Linux 5 07-29-02 11:10 AM

All times are GMT -5. The time now is 11:54 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.