Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 210321
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 212290
Assigned To: Doug Goldstein <cardoe@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Korsani <gentoo@korsani.cashew.fr>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
new-cpa-api-compile-fix.patch fix for kernels after the CPA API change (git-sources 2.6.24+) patch Marcel Partap 2008-02-20 22:03 0000 2.87 KB Details | Diff
kernel-config-x86-2.6.24-gentoo-r4 working config text/plain Billy DeVincentis 2008-04-06 12:23 0000 60.58 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 210321 depends on: Show dependency tree
Bug 210321 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-16 02:06 0000
Before, I had x11-drivers/nvidia-drivers-100.14.19 whith kernel 2.6.23.
Everything worked fine.
Then I went on kernel 2.6.24, and nvidia-drivers 100.14.19 failed to compile:

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Erreur 1
 * 
 * ERROR: x11-drivers/nvidia-drivers-100.14.19 failed.
 * Call stack:
 *                         ebuild.sh, line 1701:  Called dyn_compile
 *                         ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                         ebuild.sh, line   44:  Called src_compile
 *   nvidia-drivers-100.14.19.ebuild, line  214:  Called linux-mod_src_compile
 *                  linux-mod.eclass, line  519:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)"
LDFLAGS="$(get_abi_LDFLAGS)" \
 *                                ${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} \
 *                              || die "Unable to make ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux
SYSOUT=/lib/modules/2.6.24/build clean module.

And same with 100.14.23

I the tried nvidia-drivers 169.07 and 09
It compiled well, but make gdm segfault.

I then tried 96.43.05, which compile and make gdm happy.

------- Comment #1 From Jakub Moc (RETIRED) 2008-02-16 07:02:34 0000 -------
Reopen with full emerge log and emerge --info output please.

------- Comment #2 From Korsani 2008-02-16 10:17:43 0000 -------
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24
i686)
=================================================================
System uname: 2.6.24 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Timestamp of tree: Sat, 09 Feb 2008 21:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=pentium4"
DISTDIR="/var/spool/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://mir.zyrianes.net/gentoo/"
LANG="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/var/spool/portage/packages/x86"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/mnt/space/2/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/overlay/berkano /var/overlay/pro-audio"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amr amrnb amrwb amuled ao audiofile authfile
bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdparanoia cdr
chardet cli cracklib crypt curl dbus divx4linux dri dssi dts dv dvd dvdr
dvdread encode exif expat ffmpeg fftw firefox flac fortran gd gdbm gedit gif
glitz glsa glut gmp gnome gnutls gphoto2 gpm gstreamer gtk hal hddtemp httpd
iconv idea idn imagemagick imap imlib irda isdnlog ithreads jack java jpeg
jpeg2k keyring ladspa lame lash ldap libcaca libnotify libsamplerate lirc
lm_sensors mad matroska midi mjpeg mmx mozdom mozsvg mp3 mpeg msn mudflap
musepack nautilus ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl openmp
openntpd pam pcre pdf perl png portaudio pppd pulseaudio python quicktime
readline reflection rtsp sdl session skins smp sndfile softmmu speex spell spl
srt sse sse2 ssl stream subtitles svg syslog sysvipc tagwriting tcltk tcpd
theora threads threadsafe tiff trayicon truetype truetype-fonts type1
type1-fonts udev unicode usb v4l v4l2 vorbis wifi win32codecs wmf wxwindows x86
xinetd xml xorg xosd xpm xv xvid zlib" ALSA_CARDS="intel8x0 cmipci emu10k1"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic negotiation
rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr"
LIRC_DEVICES="livedrive_midi" USERLAND="GNU" VIDEO_CARDS="nv v4l"

------- Comment #3 From Korsani 2008-02-16 10:34:53 0000 -------
I have an other clue:
I compiled kernel-2.6.24.2. I didn't reboot but made eselect kernel set
linux-2.6.24.2. The I made emerge nvidia-drivers (100.14.19) and it compiled
fine!
I reboot on my freshly built kernel, then tru the same: compile file.
I tried eselect kernel set linux-2.6.24, then compiled nvidia-drivers
(100.16.19 again), and it compiled :)
It seems that nvidia-drivers compile fine when /usr/src/linux DOES NOT point to
the sources of the running kernel.

------- Comment #4 From jiri valnoha 2008-02-16 20:59:13 0000 -------
(In reply to comment #3)
> ~
> ~
> It seems that nvidia-drivers compile fine when /usr/src/linux DOES NOT point 
>  to the sources of the running kernel.
> 

I don't agree. I have kernels 2.6.25-rc1 and 2.6.25-rc2 and in both I can't
install nvidia-drivers (I can be in rc1 and compile nvidia-drivers for rc2 or
reversly). I tried drivers 100.14.XX too, but no success. 
Only solution which I found is download package from nvidia web
(NVIDIA-Linux-x86_64-169.09-pkg2.run) an run it. This work but it isn't  right
"gentoo way" :).

------- Comment #5 From Marcel Partap 2008-02-20 22:03:23 0000 -------
Created an attachment (id=144164) [details]
fix for kernels after the CPA API change (git-sources 2.6.24+)

just hacked this up with a lil' hints from
http://www.nvnews.net/vbulletin/showthread.php?t=107144
for even newer kernels (25) you have to edit
arch/x86/kernel/init_task.c and recompile your kernel:
17-struct mm_struct init_mm = INIT_MM(init_mm);
18:EXPORT_SYMBOL(init_mm);
try and be happy, ricerz.. XD

------- Comment #6 From Doug Goldstein 2008-03-04 15:38:48 0000 -------
If you're using an ~arch kernel, you need to use ~arch drivers.

169.xx series is in the tree but marked ~arch. Use that and it will work fine
with 2.6.24.

100.14.xx will not work with 2.6.24.

*** This bug has been marked as a duplicate of bug 212290 ***

------- Comment #7 From Billy DeVincentis 2008-04-06 12:22:20 0000 -------
I just wanted to add here in the event someone else comes across this again,
100 series drivers ABSOLUTELY compile against 2.6.24 kernels, there is
something in the config that causes them not to. I had 3 machines, 1 of the 3
wouldn't let the 100.14.23 drivers compile against that kernel, after starting
with the default genkernel config and adjusting it, driver compiled fine. Below
I will create an attachment with a working config.

------- Comment #8 From Billy DeVincentis 2008-04-06 12:23:03 0000 -------
Created an attachment (id=148849) [details]
working config

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug