Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292758 - nvidia-drivers causes "unimplemented: 64-bit mode not compiled in"
Summary: nvidia-drivers causes "unimplemented: 64-bit mode not compiled in"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 08:44 UTC by Roger
Modified: 2009-11-12 23:18 UTC (History)
1 user (show)

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 Roger 2009-11-11 08:44:19 UTC
This error during compiling (all versions of) nvidia-drivers on x86 32-bit seems to be caused by =sys-kernel/gentoo-sources-2.6.30-r8.

Moving back down to the -r7 of gentoo-sources seems to immediately resolve the problem.

If you check the source dir of nvidia-drivers after the break in compile, you'll find the "-m64" within the Makefiles.

(Both gentoo-sources -r7 & -r8 use the same .config file)

Looking further into what patches are in -r8 will likely show the problem.

I have not tested -r9 yet.

Reproducible: Always




KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-
x86-190.42-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42
-pkg0/usr/src/nv/nv.c
distcc[7483] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42-pkg0/usr/src/nv/nv.c:1: error: 
code model 'kernel' not supported in the 32 bit mode
/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42-pkg0/usr/src/nv/nv.c:1: sorry, 
unimplemented: 64-bit mode not compiled in
distcc[7483] ERROR: compile /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42-pkg
0/usr/src/nv/nv.c on localhost failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42-pkg0/usr/src/nv/n
v.o] Error 1       
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86-190.42-pkg0/usr/
src/nv] Error 2    
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-11 21:06:09 UTC
Please post the output of `emerge --info =x11-drivers/nvidia-drivers-190.42-r3' in a comment and attach the entire build log.
Comment 2 Artemii 2009-11-11 22:28:10 UTC
I have same error on amd64 (with gentoo-sources-2.6.31-r4 and 2.6.31-r5)

make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv                      
  cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/include -Iinclude  -I/usr/src/linux-2.6.31-gentoo-r5/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -I/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -fno-defer-pop -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"190.42\" -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv/nv.c                                                                                               
/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/work/NVIDIA-Linux-x86_64-190.42-pkg2/usr/src/nv/nv.c:1: error: code model 'kernel' not supported in the 32 bit mode


emerge --info =x11-drivers/nvidia-drivers-190.42-r3                                                                                           
Portage 2.2_rc49 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r4 x86_64)                                                                
=================================================================                                                                                             
                        System Settings                                                                                                                       
=================================================================                                                                                             
System uname: Linux-2.6.31-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.1                                                  
Timestamp of tree: Wed, 11 Nov 2009 20:55:02 +0000                                                                                                            
ccache version 2.4 [enabled]                                                                                                                                  
app-shells/bash:     4.0_p35                                                                                                                                  
dev-java/java-config: 2.1.9-r1                                                                                                                                
dev-lang/python:     2.6.4, 3.1.1-r1                                                                                                                          
dev-python/pycrypto: 2.1.0_beta1                                                                                                                              
dev-util/ccache:     2.4-r8                                                                                                                                   
dev-util/cmake:      2.6.4-r3                                                                                                                                 
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -ftree-vectorize -mfpmath=sse -msse3 -m3dnow"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -ftree-vectorize -mfpmath=sse -msse3 -m3dnow"
DISTDIR="/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O2 -Wl,--hash-style=gnu"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac acl acpi akonadi alsa amd64 apache2 artworkextra audiofile avahi avi berkdb bitmap-fonts bluetooth boost browserplugin bzip2 cairo cdr clamav cli cracklib crypt css cups dbus dirac directfb djvu dri dts dv dvb dvd dvdr dvdread emacs encode exif fbcon ffmpeg fftw flac flash fontforge foomaticdb fortran freetype2 gdbm gif gimp gphoto2 gpm gtk gtk2 guile hal hdf5 htmlhandbook iconv ieee1394 imagemagick imlib ipv6 jack java jpeg jpeg2k kde kdeenablefinal kipi kpathsea ladspa lame latex lcms ldap libsamplerate lirc lm_sensors logrotate lzma lzw lzw-tiff mad midi mmap mmx mmxext mng modules mono mozilla mp2 mp3 mp4 mpeg mudflap multilib mysql ncurses neXt nepomuk nls nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal opencore-amr openexr opengl openmp pam pcre pdf pdflib perl pic plasma png postgres ppds pppd python qt qt3 qt4 readline reflection reiserfs schroedinger sdl semantic-desktop sensord session slang slp sndfile sox speex spell spl sqlite3 sse sse2 ssl svg sysfs tcpd theora threads tiff tools truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vcd visualization vorbis wifi wmf x264 xattr xcb xcomposite xml xml2 xorg xpm xrandr xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-11-12 04:10:47 UTC
Please try the latest gentoo-sources-2.6.31-r4 and report back if it still fails to build
Comment 4 Roger 2009-11-12 06:00:41 UTC
Yup. Have a feeling it's an upstream bug with either the kernel or nvidia-drivers ebuild/driver.

I'll give 2.6.31 another try later this week -- likely already fixed.

(Off topic rant, @#$@#%$ firefox slow as a a bloat s/w!)
Comment 5 Roger 2009-11-12 19:55:50 UTC
Just installed =sys-kernel/gentoo-sources-2.6.31-r5 and nvidia-drivers builds, except for the following error:

 * Installing nvidia module
/var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/temp/environment: line 4146: [[: 190.42: syntax error: invalid arithmetic operator (error token is ".42")
>>> Completed installing nvidia-drivers-190.42-r3 into /var/tmp/portage/x11-drivers/nvidia-drivers-190.42-r3/image/

I'm considering this a separate bug and am marking it an upstream bug.

(At least people now can find an easier solution for the original issue here! ;-)
Comment 6 Artemii 2009-11-12 23:18:58 UTC
after reemerging gentoo-sources with portage-2.2_rc49 allworks without errors