alsa-driver 0.98 didn't work with kernel 2.6.4-rc1 so I tried using newer alsa-drivers 1.0 and later. Always seem to get the following error and can't find a solution- make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3' make -C /usr/src/linux SUBDIRS=/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/kbuild modules make[1]: Entering directory `/usr/src/linux-2.6.4-rc1' MKELF scripts/elfconfig.h ACCESS DENIED open_wr: /usr/src/linux-2.6.4-rc1/scripts/elfconfig.h /bin/sh: line 1: scripts/elfconfig.h: Permission denied make[2]: *** [scripts/elfconfig.h] Error 1 make[1]: *** [scripts] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.4-rc1' make: *** [compile] Error 2 !!! ERROR: media-sound/alsa-driver-1.0.3 failed. !!! Function src_compile, Line 66, Exitcode 2 !!! Parallel Make Failed --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-sound_-_alsa-driver-1.0.3-8718.log" open_wr: /usr/src/linux-2.6.4-rc1/scripts/elfconfig.h -------------------------------------------------------------------------------- I tried assigning both the elfconfig.h and then the whole linux-2.6.4-rc1 first to the portage and then wheel groups and tried making them all group read-write. None of this helped, so I put everything back to group root. I also tried to emerge sync and emerge portage, but this didn't help. Reproducible: Always Steps to Reproduce: 1. I don't know that I am doing anything special. 2. 3. Expected Results: Emerged alsa-drivers Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc1) ================================================================= System uname: 2.6.4-rc1 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/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="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype video_cards_radeon x86 xml2 xmms xv zlib"
you need >=alsa-driver-1.0.2c if you use a 2.6.x kernel.
If you'll read past the first line, you'll see that this also occurred with alsa-driver 1.0.2c and 1.0.3.
Same problem here. kernel 2.6.4-rc1, alsa-driver 1.0.3
I finally got this working. I realized that I had compiled alsa into the kernel and was having some other kernel recompile wierdness. After some work and reboots, I got things going by skipping the alsa-driver, and just emerging the alsa-utils and related files. I think perhaps the code that's supposed to check to see whether or not alsa is in the kernel doesn't work unless it's the active kernel, and you end up with this message, although I haven't tried to reproduce this.
kernel 2.6.4 provides alsa-driver and has 1.0.3 built in
although alsa-driver >= 1.0.2c SHOULD work with 2.6 kernels if you want or need to use it instead of what's in-kernel... however there are problems getting it to work due to sandbox issues like this one and other issues... unfortunately nobody has submitted a patch for us to use to get it to work, and I can't run 2.6 for other reasons to test it out...