Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146938 - nvidia-kernel (& glx) fail to build properly or crash with gcc-4.1
Summary: nvidia-kernel (& glx) fail to build properly or crash with gcc-4.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-09 04:47 UTC by nobody
Modified: 2006-09-09 04:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobody 2006-09-09 04:47:07 UTC
I cannot compile nvidia drivers (or kernel & glx) & run them until i switch back to gcc-3.4.6
Saw many bugs related to nvidia that seems closed to that one, but noone said it's a gcc problem yet.

What i'm not getting is that i have nvidia-drivers-1.0.8774 working fine with gcc4.1 on my other computer (but kernel is 2.6.17 on that one)

gcc-config -l
 [1] i686-pc-linux-gnu-3.3.4
 [2] i686-pc-linux-gnu-3.4.6 *
 [3] i686-pc-linux-gnu-3.4.6-hardened
 [4] i686-pc-linux-gnu-3.4.6-hardenednopie
 [5] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [6] i686-pc-linux-gnu-3.4.6-hardenednossp
 [7] i686-pc-linux-gnu-4.1.1

gcc-config 7
 * Switching native-compiler to i686-pc-linux-gnu-4.1.1 ...
>>> Regenerating /etc/ld.so.cache...                                                               [ ok ]
 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile
source /etc/profile
emerge nvidia-kernel
Calculating dependencies... done!
>>> Emerging (1 of 1) media-video/nvidia-kernel-1.0.6629-r6 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking NVIDIA-Linux-x86-1.0-6629-pkg1.run ;-)
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.10-gentoo-r7
 * Checking for MTRR support ...               
...
...
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2366: attention : pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2366: attention : pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2366: attention : pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2367: attention : pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2367: attention : pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2367: attention : pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function 'nv_alloc_pages':
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2661: attention : pointer targets in passing argument 5 of 'KernAllocAGPPages' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2689: attention : pointer targets in passing argument 6 of 'rm_alloc_agp_pages' differ in signedness
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function 'nvos_count_devices':
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:3179: attention : assignment makes pointer from integer without a cast
/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:3184: attention : assignment makes pointer from integer without a cast
make[3]: *** [/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.o] Erreur 1
make[2]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.6629-r6/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv] Erreur 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Erreur 1
make: *** [module] Erreur 2

!!! ERROR: media-video/nvidia-kernel-1.0.6629-r6 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called linux-mod_src_compile
  linux-mod.eclass, line 469:   Called die

!!! Unable to make  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, and the call stack if relevant.

emerge --info
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe -msse -mfpmath=sse -mmmx -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=pentium4 -mtune=pentium4 -O3 -pipe -msse -mfpmath=sse -mmmx -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mirror.sdv.fr/  http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 alsa apache2 avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog jpeg libcaca libg++ libwww mad maildir mikmod mjpeg mng motif moznomail moznoxft mp3 mpeg mpeg4 mplayer ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl stream svg tcpd timidity truetype truetype-fonts type1-fonts udev unicode vcd vorbis win32codecs wxwindows xinerama xml xmms xorg xosd xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-09 04:56:34 UTC
Your kernel is outdated like hell. Also, if you need an ancient card, go test x11-drivers/nvidia-legacy-drivers instead.