Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50820 - nvidia-kernel-5336-r3 fails to build on gcc 3.4 w/ kernel 2.6.6
Summary: nvidia-kernel-5336-r3 fails to build on gcc 3.4 w/ kernel 2.6.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-11 21:54 UTC by younker
Modified: 2004-06-15 14:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix compilation on gcc 3.4.0 (nvidia-fix-compile.patch,11.16 KB, patch)
2004-05-27 13:52 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description younker 2004-05-11 21:54:02 UTC
emerge nvidia-kernel-1.0.5336-r3 on linux 2.6.6 with gcc 3.4, failed,here is the error message:

rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.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 *~
make[1]: Entering directory `/usr/src/linux-2.6.6'
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
  CC [M]  /var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o
In file included from include/linux/list.h:7,
                 from include/linux/wait.h:14,
                 from include/asm/semaphore.h:41,
                 from include/linux/sched.h:18,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv-linux.h:52,
                 from /var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/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
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nvos_malloc_pages':
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:389: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nvos_create_alloc':
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:517: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:527: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1207: warning: initialization from incompatible pointer type
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv_alloc_file_private':
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1215: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1226: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv_kern_open':
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1287: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function `nv_kern_ctl_open':
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1936: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2032: error: conflicting types for 'nv_set_hotkey_occurred_flag'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: previous declaration of 'nv_set_hotkey_occurred_flag' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2032: error: conflicting types for 'nv_set_hotkey_occurred_flag'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:350: error: previous declaration of 'nv_set_hotkey_occurred_flag' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2219: error: conflicting types for 'nv_find_nv_mapping'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: previous declaration of 'nv_find_nv_mapping' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2219: error: conflicting types for 'nv_find_nv_mapping'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:339: error: previous declaration of 'nv_find_nv_mapping' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2291: error: conflicting types for 'nv_find_agp_kernel_mapping'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: previous declaration of 'nv_find_agp_kernel_mapping' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2291: error: conflicting types for 'nv_find_agp_kernel_mapping'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:341: error: previous declaration of 'nv_find_agp_kernel_mapping' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2367: error: conflicting types for 'nv_get_kern_phys_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: previous declaration of 'nv_get_kern_phys_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2367: error: conflicting types for 'nv_get_kern_phys_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:342: error: previous declaration of 'nv_get_kern_phys_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2397: error: conflicting types for 'nv_get_user_phys_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: previous declaration of 'nv_get_user_phys_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2397: error: conflicting types for 'nv_get_user_phys_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:343: error: previous declaration of 'nv_get_user_phys_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2428: error: conflicting types for 'nv_alloc_pages'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: previous declaration of 'nv_alloc_pages' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2428: error: conflicting types for 'nv_alloc_pages'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:353: error: previous declaration of 'nv_alloc_pages' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2616: error: conflicting types for 'nv_free_pages'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: previous declaration of 'nv_free_pages' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2616: error: conflicting types for 'nv_free_pages'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:354: error: previous declaration of 'nv_free_pages' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2714: error: conflicting types for 'nv_lock_rm'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: previous declaration of 'nv_lock_rm' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2714: error: conflicting types for 'nv_lock_rm'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:345: error: previous declaration of 'nv_lock_rm' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2734: error: conflicting types for 'nv_unlock_rm'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: previous declaration of 'nv_unlock_rm' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2734: error: conflicting types for 'nv_unlock_rm'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:346: error: previous declaration of 'nv_unlock_rm' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2748: error: conflicting types for 'nv_lock_heap'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: previous declaration of 'nv_lock_heap' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2748: error: conflicting types for 'nv_lock_heap'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:347: error: previous declaration of 'nv_lock_heap' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2758: error: conflicting types for 'nv_unlock_heap'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: previous declaration of 'nv_unlock_heap' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2758: error: conflicting types for 'nv_unlock_heap'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:348: error: previous declaration of 'nv_unlock_heap' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2774: error: conflicting types for 'nv_post_event'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: previous declaration of 'nv_post_event' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2774: error: conflicting types for 'nv_post_event'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:363: error: previous declaration of 'nv_post_event' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2812: error: conflicting types for 'nv_get_event'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: previous declaration of 'nv_get_event' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2812: error: conflicting types for 'nv_get_event'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:364: error: previous declaration of 'nv_get_event' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2855: error: conflicting types for 'nv_agp_init'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:356: error: previous declaration of 'nv_agp_init' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2855: error: conflicting types for 'nv_agp_init'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:356: error: previous declaration of 'nv_agp_init' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2917: error: conflicting types for 'nv_agp_teardown'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:357: error: previous declaration of 'nv_agp_teardown' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2917: error: conflicting types for 'nv_agp_teardown'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:357: error: previous declaration of 'nv_agp_teardown' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2958: error: conflicting types for 'nv_agp_translate_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:358: error: previous declaration of 'nv_agp_translate_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2958: error: conflicting types for 'nv_agp_translate_address'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:358: error: previous declaration of 'nv_agp_translate_address' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2990: error: conflicting types for 'nv_int10h_call'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:351: error: previous declaration of 'nv_int10h_call' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2990: error: conflicting types for 'nv_int10h_call'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:351: error: previous declaration of 'nv_int10h_call' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2999: error: conflicting types for 'nv_start_rc_timer'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:360: error: previous declaration of 'nv_start_rc_timer' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2999: error: conflicting types for 'nv_start_rc_timer'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:360: error: previous declaration of 'nv_start_rc_timer' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:3020: error: conflicting types for 'nv_stop_rc_timer'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:361: error: previous declaration of 'nv_stop_rc_timer' was here
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:3020: error: conflicting types for 'nv_stop_rc_timer'
/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.h:361: error: previous declaration of 'nv_stop_rc_timer' was here
make[2]: *** [/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o] ?? 1
make[1]: *** [/var/tmp/portage/nvidia-kernel-1.0.5336-r3/work/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.6'
nvidia.ko failed to build!
make: *** [module] Error 1



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ed Catmur 2004-05-12 02:31:28 UTC
WFM on 2.6.6-love1. Which kernel are you using?
Comment 2 younker 2004-05-12 17:05:24 UTC
use vanilla source 2.6.6 and I turn off the 4K stack.
Comment 3 Andrew Bevitt 2004-05-16 01:56:31 UTC
Please provide us with : emerge info

Seems a bit odd because I still cant get this to happen... (does it fail with previous kernel versions?)
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-05-20 02:47:32 UTC
it wont fail with love because it reverses the patches that break 2.6.6 or later. also, it should not matter what compiler you use...
Comment 5 Andrew Bevitt 2004-05-20 03:20:54 UTC
5336-r3 is designed to work with 2.6.6 kernels provided you use 8K stacks.

Please provide emerge info for failing systems.
Comment 6 Andrew Bevitt 2004-05-24 18:14:29 UTC
Prod...

I cant make this happen with gcc-3.4, it works just the same as 3.3.3 for me.

@younker : i need the output of : emerge info
to see what your system might be doing that mine isnt.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2004-05-27 08:58:05 UTC
I get this problem. I was about to go patch it up so that it works, but it is odd that you do not get this error. Do you even get the warnings? (e.g. use of cast expressions as lvalues is deprecated)

nvidia-kernel-1.0.5336-r3
gcc-3.4.0-r4

emerge info output:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.6-mm2)
=================================================================
System uname: 2.6.6-mm2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer -mfpmath=387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://192.168.0.1/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://194.83.57.11/sites/www.ibiblio.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://194.83.57.15/sites/www.ibiblio.org/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3dnow X aalib alsa apm avi cdr cups directfb dvd emacs encode fbcon foomaticdb gcj gdbm ggi gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mmx mpeg ncurses nptl oggvorbis opengl oss pdflib perl png qt quicktime readline sdl slang sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2004-05-27 13:51:27 UTC
Ok, here comes a patch to fix compilation on GCC 3.4.0.
This fixes the compile errors (but not the warnings) and it builds OK.
On reboot into GCC 3.4.0 compiled kernel, the module fails to load - modprobe segfaults, and a kernel oops is produced:

nvidia: module license 'NVIDIA' taints kernel.
0: nvidia: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-5336  Wed Jan 14 18:29:26 PST 2004
Unable to handle kernel NULL pointer dereference at virtual address 00000270
 printing eip:
e11d13c6
*pde = 00000000
       ___      ______
      0--,|    /OOOOOO\
     {_o  /  /OO plop OO\
       \__\_/OO oh dear OOO\s
          \OOOOOOOOOOOOOOOO/
           __XXX__   __XXX__
Oops: 0002 [#1]
PREEMPT
Modules linked in: nvidia
CPU:    0
EIP:    0060:[<e11d13c6>]    Tainted: P   VLI
EFLAGS: 00010292   (2.6.6-mm2)
EIP is at os_alloc_mem+0x7b/0x8f [nvidia]
eax: 00000000   ebx: 00000270   ecx: 00000163   edx: 000000d0
esi: df2b3f48   edi: e121d60c   ebp: df2b3f1c   esp: df2b3f08
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 5243, threadinfo=df2b2000 task=df71f8f0)
Stack: 00000270 00000000 e1066a10 df2b3f48 00000270 df2b3f50 e105c2be 00000000
       df2b3f48 00000270 00000000 00000000 df2b3f4c 00000001 e1245860 df2b3f88
       c1584490 00000000 df2b3f68 e105baa9 e121d60c 00000000 00000270 00000001
Call Trace:
 [<e1066a10>] _nv001308rm+0x10/0x28 [nvidia]
 [<e105c2be>] _nv001354rm+0x32/0x9c [nvidia]
 [<e105baa9>] _nv000904rm+0x15/0x50 [nvidia]
 [<e106ab38>] rm_init_rm+0x8/0xc [nvidia]
 [<e12481f3>] nvidia_init_module+0x1f3/0x248 [nvidia]
 [<c012fb51>] sys_init_module+0x101/0x230
 [<c0141bad>] sys_brk+0xcd/0xf0
 [<c0105f69>] sysenter_past_esp+0x52/0x71

Code: 02 00 8d 76 00 77 1d 89 f0 ba d0 00 00 00 e8 62 93 f6 de 89 03 85 c0 75 1e 89 f0 e8 55 82 f7 de 89 03 eb 09 89 f0 e8 4a 82 f7 de <89> 03 b8 06 01 00 01 83 3b 00 74 05 b8 00 00 00 00 5b 5e c3 89


Andrew, could you please try compiling with this patch applied and seeing if it breaks the module for you?
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2004-05-27 13:52:08 UTC
Created attachment 32163 [details, diff]
Patch to fix compilation on gcc 3.4.0
Comment 10 Andrew Bevitt 2004-05-27 17:53:33 UTC
Applied the patch Daniel, compiled it with gcc 3.3.3, compilation did exactly the same as always, just the lvalues cast warnings. Tried using the module compiled with gcc 3.3.3 worked fine, same as always.

Applied the patch and compiled with gcc 3.4.0, compilation was successful, just the cast warnings again. Tried to insert the module, which failed with this :

nvidia: version magic '2.6.6 preempt K8 gcc-3.4' should be '2.6.6 preempt K8 gcc-3.3'

modprobe -f nvidia, solved that problem.

And the module worked again, glxgears ran smoothly with expected results etc... 

(my emerge info for informations sake) (the only thing i notice might be see + mmx having some asm effect, but that shouldnt come into play here).

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon-xp -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon-xp -msse -msse2 -mmmx"
DISTDIR="/work/distfiles"
FEATURES="ccache cvs fixpackages sandbox"
GENTOO_MIRRORS="http://mirror.aarnet.edu.au/pub/gentoo http://mirror.gentoo.gr.jp http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.seren.com/gentoo http://212.219.247.14/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/work/portage"
PORTDIR_OVERLAY="/work/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avi bonobo cdr crypt cups dga dvd encode evo fbcon foomaticdb gdbm gif gphoto2 gtk gtk2 gtkhtml guile imagemagick imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype usb x86 xml xml2 xmms xv zlib"
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2004-05-28 03:55:33 UTC
Solution is to apply this patch:
http://www.minion.de/files/NVIDIA_kernel-1.0-5336-2.6.diff

It then compiles without warnings or errors and loads fine.
Comment 12 Christo 2004-05-29 11:12:02 UTC
  This patch combined with gcc 3.4 and 2.6.7-r1 causes my xorg to signal 11 whenever I click on a button (For instance the action button in gnome 2.6.1). All my other symptoms are the same.

Comment 13 Andrew Bevitt 2004-05-29 20:35:55 UTC
I'll have a look into this wednesday when ive finished my projects...
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2004-05-30 02:15:08 UTC
Christo:

I'm running Xorg, 2.6.7-rc1-mm1 and the nvidia drivers. It's working fine. When you say "this patch", are you referring to the attachment here, or the one from the minio.de patch that I posted? Did you have trouble compiling for gcc-3.4.0 without this patch?
Comment 15 Christo 2004-05-30 17:57:53 UTC
Daniel:

Sorry for the ambiguity. I'm running with the .de patch. But the vanilla kernel sources. Yes I did have problems compiling without the patch. Including the kernel oopses and the naming errors.
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-15 14:27:21 UTC
Should be fixed in nvidia-kernel-5336-r4.  Please reopen if not.
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-15 14:29:37 UTC
.