Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75210 - alsa-driver gives unhelpful error message when merged with kernel 2.6
Summary: alsa-driver gives unhelpful error message when merged with kernel 2.6
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 10:09 UTC by Mark Purtill
Modified: 2004-12-23 14:07 UTC (History)
2 users (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 Mark Purtill 2004-12-21 10:09:43 UTC
I have the same problem as bug 74934, so a hint as to how to fix it would be nice.  (I can't reopen that bug, so I'm fling a new one.)  I already have the following in my /etc/portage/profiler/virtuals file:

virtual/linux-sources sys-kernel/gentoo-dev-sources
virtual/alsa sys-kernel/gentoo-dev-sources

as vaguely hinted at in bug 74308 and suggested in the forums <http://forums.gentoo.org/viewtopic.php?t=227813>, but I still get this when doing an emerge -Du world:

Calculating world dependencies ...done!
>>> emerge (1 of 1) media-sound/alsa-driver-1.0.7-r4 to /
>>> md5 src_uri ;-) alsa-driver-1.0.7.tar.bz2
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.9-gentoo-r1
 * Checking for suitable kernel configuration options
 *   ALSA is already compiled into the kernel.
 * Please check to make sure these options are set correctly.
 * Once you have satisfied these options, please try merging
 * this package again.

!!! ERROR: media-sound/alsa-driver-1.0.7-r4 failed.
!!! Function check_extra_config, Line 385, Exitcode 0
!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, NOT this status message.

Note that the emerge error message is unhelpful; for looking at other bugs I gather that changing the kernel options will not allow the alsa-driver package to compile with the 2.6 kernel.

Also, I don't want to unmerge alsa-driver entirely as that would break sound if I needed to go back to a 2.4 kernel.

Reproducible: Always
Steps to Reproduce:
1. emerge -Du world
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-g -O2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.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/mozilla/defaults/pref/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-g -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks fixpackages nostrip sandbox sfperms
userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.agsn.ca/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib alsa apm arts avi berkdb bitmap-fonts canna cdr cjk
crypt cups debug doc dvd encode esd f77 fam flac foomaticdb fortran freetype
freewnn gdbm gif gnome gpm gtk gtk2 guile imagemagick imlib java joystick jpeg
junit kde libg++ libwww mad maildir mbox mikmod mozilla mpeg mule ncurses nls
noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch
nojythonnolog4j nooro noregexp norhino noxalan noxerces oggvorbis opengl oss pam
pdflibperl png python qt quicktime readline ruby scanner sdl slang speex spell
sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xinerama xml xml2 xmms xv
zlib video_cards_matrox"
Comment 1 Mark Purtill 2004-12-21 10:16:22 UTC
If I move /etc/portage/profile/virtuals to /etc/portage/virtuals, I get an annoying message from emerge:

*** /etc/portage/virtuals should be moved to /etc/portage/profile/virtuals
*** Please correct this by merging or moving the file. (Deprecation notice)

but alsa-driver doesn't get merged.  I'll put in a separate bug for that, but I'll leave this one open for the unhelpful error message.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-12-23 02:49:11 UTC
This isn't a bug... the error message is fine.  You've got alsa support compiled into your kernel.  Disable it, then emerge alsa-driver.
Comment 3 Justin Betts 2004-12-23 11:28:41 UTC
If this bug means I have alsa-drivers compiled into my kernel, have I fundamentally misunderstood kernel modules vs compiled in or where the ALSA section is in my genkernel config ? 

Because this is my kernel config for 2.6.8-r10 and afaik all of the ALSA stuff is 'm' eg. not comiled into my kernel ? This bug is the exact same msg I get while trying to update alsa-driver from 1.0.6a -> 1.0.7-r4.

PS. I'm not sure if I should be posting this in the bug or asking in the forums. I'm hazarding a guess that this is the right place in this case.

Excerpt from my 2.6.9-r10 genkernel config.
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-12-23 12:25:42 UTC
It means that you have selected to use the alsa drivers provided in the kernel tree.  Disable alsa support in your kernel's .config and emerge alsa-driver again.
Comment 5 Mark Purtill 2004-12-23 12:51:35 UTC
Okay, I'd seen bugs saying one should not use alsa-driver with a 2.6 kernel (e.g. bug 27076 and bug 34696).  If that now works (I have no time to try and the built-in ones work fine for me), the message is okay.  (I wasn't trying to merge the drivers myself; see bug 75217.)
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-12-23 14:07:56 UTC
It is recommended (and mentioned as such on the ALSA FAQ) that you use m-s/alsa-driver over the ones provided by the kernel as they are better maintained.