Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95420 - nvidia-kernel-1.0.7664 fails during compilation on amd64
Summary: nvidia-kernel-1.0.7664 fails during compilation on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 23:35 UTC by demian
Modified: 2005-06-09 02:24 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 demian 2005-06-07 23:35:09 UTC
im getting these errors when emerging nvidia-kernel on amd64: 
 
In file included from include/linux/dmapool.h:14,  
                 from include/linux/pci.h:863,  
                  
from /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv-linux.h:69,  
                  
from /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/os-registry.c:14:  
include/asm/io.h: In function `check_signature':  
include/asm/io.h:312: warning: wrong type argument to increment  
In file included from include/asm/pci.h:94,  
                 from include/linux/pci.h:903,  
                  
from /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv-linux.h:69,  
                  
from /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/os-registry.c:14:  
include/asm-generic/pci-dma-compat.h: In function `pci_map_page':  
include/asm-generic/pci-dma-compat.h:49: warning: pointer of type `void *' used  
in arithmetic  
  ld -m elf_x86_64  -r  
-o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv-kernel.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv-vm.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/os-registry.o  
ld: Relocatable linking with relocations from format elf32-i386  
(/var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nv-kernel.o)  
to format elf64-x86-64  
(/var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nvidia.o)  
is not supported  
make[3]: ***  
[/var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv/nvidia.o]  
Error 1  
make[2]: ***  
[_module_/var/tmp/portage/nvidia-kernel-1.0.7664/work/NVIDIA-Linux-x86-1.0-7664-pkg0/usr/src/nv]  
Error 2  
NVIDIA: left KBUILD.  
nvidia.ko failed to build!  
make[1]: *** [module] Error 1  
make: *** [module] Error 2  
  
!!! ERROR: media-video/nvidia-kernel-1.0.7664 failed.  
!!! Function linux-mod_src_compile, Line 473, Exitcode 2  
!!! 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, NOT this status message.  

Reproducible: Always
Steps to Reproduce:
1.emerge nvidia-kernel 
2. 
3. 
 



Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, 
glibc-2.3.5-r0, 2.6.11-gentoo-r9 x86_64) 
================================================================= 
System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3400+ 
Gentoo Base System version 1.6.11 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.8 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r8 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.11 
ACCEPT_KEYWORDS="x86 ~amd64 ~x86" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -fPIC" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -fPIC" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 3dnow X alsa apm arts avi berkdb bitmap-fonts bzlib cdparanoia cdr 
crypt cups curl directfb divx4linux dvd dvdr dvdread emboss encode esd fam 
ffmpeg flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 
imagemagick imlib ipv6 java javadoc jikes jpeg junit kde kdeenablefinal ldap 
libg++ libwww lm_sensors mad matroska mikmod mmx motif mp3 mpeg msn mysql nas 
ncurses nls nptl ogg oggvorbis openal opengl oss pam pdflib perl png postgres 
python qt quicktime readline samba sasl sdl slp spell ssl svg tcltk tcpd theora 
tiff truetype truetype-fonts type1-fonts usb v4l vcd videos vorbis xerces xine 
xinerama xml xml2 xmlrpc xmms xpm xv xvid yahoo zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Kris Kersey (RETIRED) gentoo-dev 2005-06-08 04:54:37 UTC
Your problem is not with the package but with your ACCEPT_KEYWORDS.  Please
remove both of the x86 references and try again.  The package is very confused
as to what architecture it's building for.
Comment 2 demian 2005-06-08 19:49:57 UTC
it's still the same. i removed the ~x86 on my ACCEPT_KEYWORDS and im still 
getting the same errors. i tried the command USE="amd64" emerge nvidia-glx and 
still the same errors. 
 
(In reply to comment #1) 
> Your problem is not with the package but with your ACCEPT_KEYWORDS.  Please 
> remove both of the x86 references and try again.  The package is very 
confused 
> as to what architecture it's building for. 
 
 
Comment 3 Kris Kersey (RETIRED) gentoo-dev 2005-06-08 20:35:59 UTC
After further looking at the info you provided, it appears that you have your
/etc/make.profile pointing at the x86 profile (default-linux/x86/2005.0). 
Please relink your make.profile by:
rm -f /etc/make.profile
ln -sf /usr/portage/profiles/default-linux/amd64/2005.0 /etc/make.profile

This should fix this but having this is a "bad thing".  I don't know what else
may be messed up with your install after this.
Comment 4 demian 2005-06-09 02:24:13 UTC
that solves it! after switching the x86 profile to amd64 everything worked 
fine. thanks for the big help!