Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73088 - nvidia-kernel build fails because wrong ARCH gets passed to kernel
Summary: nvidia-kernel build fails because wrong ARCH gets passed to kernel
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-01 16:11 UTC by John Gluck
Modified: 2004-12-13 11:18 UTC (History)
2 users (show)

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


Attachments
The attachment is the log for a failed build (3004-nvidia-kernel-1.0.6111-r3.log,15.13 KB, text/plain)
2004-12-01 16:13 UTC, John Gluck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Gluck 2004-12-01 16:11:49 UTC
Bilding the nvidia-kernel used to work with the 3.3.4 version of gcc. So this seems to be a compiler related issue.

This applies tobith the nvidia-kernel-1.0.6111-r3 and the nvidia-kernel-1.0.6629

It looks for a file called:

/usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile

But that doesn't exist because there is no "x86" architecture. I solved the problem by making a softlink as follows:

lrwxrwxrwx  1 root root 24 Dec  1 19:29 /usr/src/linux/arch/x86 -> /usr/src/linux/arch/i386

After which it builds and install the module properly.

Reproducible: Always
Steps to Reproduce:
1. emerge the package without the softlink as describe above.
2. build fails module is not installed (even though unless you look closely it seems like it installed)
3. unmerge the package
4. create the softlink as above.
5. emerge the package.
6. check the /lib/modules/blah-blah directory for the module. It's there
7. startx or whatever to test. It works. 

Actual Results:  
See above 

Expected Results:  
see above 

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.6
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks keepwork sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://mirror.nutsmaas.nl/gentoo/
http://gentoo.math.bme.hu http://gentoo.mirror.sdv.fr
ftp://gentoo.osuosl.org/.1/gentoo http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups encode esd
f77 fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile
imagemagick imlib java jpeg junit kde libg++ libwww mad mikmod motif mozilla
mpeg nasncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline samba sdl slang speex spell ssl svga tcltk tcpd tiff truetype
x86 xml xml2 xmms xv zlib"
Comment 1 John Gluck 2004-12-01 16:13:31 UTC
Created attachment 45099 [details]
The attachment is the log for a failed build
Comment 2 jack_mort 2004-12-01 23:52:22 UTC
Same problem here on amd64...
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-01 23:58:49 UTC
Needs to use set_arch_to_kernel() and set_arch_to_portage() from eutils.eclass.
Comment 4 Andrew Bevitt 2004-12-02 01:49:44 UTC
Johnm : see the above comment, should this be done in the linux-info eclass?
Comment 5 Andrew Bevitt 2004-12-02 01:50:37 UTC
Actually for a point of reference, this doesnt happen here.

Which is very weird.
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2004-12-04 13:39:05 UTC
doesnt happen here either.
its actually caused simply by ARCH being set.
Will look at it shortly.
Comment 7 Andrew Bevitt 2004-12-04 17:31:28 UTC
The ebuilds used to unset ARCH before compiling...

That could just go back into them if necessary.
Comment 8 John Mylchreest (RETIRED) gentoo-dev 2004-12-10 15:08:13 UTC
Could you please emerge sync, and then try again.
please re-open if you still have problems, and let me know how you get on with a comment.
cheers.
Comment 9 John Gluck 2004-12-10 17:04:19 UTC
I sucessfully emerged nvidia-kernel-1.0.6629 

on December 5th without having to make a softlink.

I guess the problem is fixed.

John
Comment 10 John Mylchreest (RETIRED) gentoo-dev 2004-12-11 01:24:24 UTC
Excellent, glad its all working OK.
Comment 11 jack_mort 2004-12-13 11:18:55 UTC
Yep, I can confirm it also works for me.