(i've heard that i don't actually need 2.6 kernel. if it is so, perhaps the alsa-driver should say this, and exit with error) # emerge -u world Calculating world dependencies ...done! >>> emerge (1 of 1) media-sound/alsa-driver-1.0.6a to / >>> md5 src_uri ;-) alsa-driver-1.0.6a.tar.bz2 >>> Unpacking source... >>> Unpacking alsa-driver-1.0.6a.tar.bz2 to /var/tmp/portage/alsa-driver-1.0.6a/work * Applying alsa-driver-1.0.5-devfix.patch... [ ok ] * Applying alsa-driver-1.0.5a-cs46xx-passthrough.patch... [ ok ] * Applying alsa-driver-1.0.6a-kbuild.patch... [ ok ] * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * * The kernel Makefile says that this is a 2.6.8-ck7 kernel * but the source is in a directory for a 2.6.8.1-ck7 kernel. * * This goes against the recommended Gentoo naming convention. * Please rename your source directory to 'linux-2.6.8-ck7' * * Building for Linux 2.6.8-ck7 found in /usr/src/linux * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * * The kernel Makefile says that this is a 2.6.8-ck7 kernel * but the source is in a directory for a 2.6.8.1-ck7 kernel. * * This goes against the recommended Gentoo naming convention. * Please rename your source directory to 'linux-2.6.8-ck7' * * Building for Linux 2.6.8-ck7 found in /usr/src/linux >>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o ... LD [M] /var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/kbuild/../pci/rme9652/snd-rme9652.o LD [M] /var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/kbuild/../pci/rme9652/snd-hdsp.o Building modules, stage 2. MODPOST /bin/sh: line 1: scripts/mod/modpost: No such file or directory make[2]: *** [__modpost] Error 127 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.8.1-ck7' make: *** [compile] Error 2 ls: /usr/src/linux/scripts/mod/modpost: No such file or directory gehenna(wintersunset) linux # l /usr/src/linux/scripts/mod/modpost gehenna(wintersunset) linux # l /usr/src/linux/scripts/mod/ total 60K -rw-r--r-- 1 root root 473 Sep 12 23:24 Makefile -rw-r--r-- 1 root root 54 Sep 12 23:24 empty.c -rw-r--r-- 1 root root 9.1K Sep 12 23:24 file2alias.c -rw-r--r-- 1 root root 1.5K Sep 12 23:24 mk_elfconfig.c -rw-r--r-- 1 root root 16K Sep 12 23:24 modpost.c -rw-r--r-- 1 root root 2.2K Sep 12 23:24 modpost.h -rw-r--r-- 1 root root 13K Sep 12 23:24 sumversion.c !!! ERROR: media-sound/alsa-driver-1.0.6a failed. !!! Function src_compile, Line 90, Exitcode 2 !!! Parallel Make Failed # Reproducible: Couldn't Reproduce Steps to Reproduce: well. i can't actually reproduce it. first i guessed it could be reproduced like this: 1. upgrade kernel sources, keep the old /usr/src/linux symlink 2. emerge alsa-driver or 2. run make menuconfig and exit it 3. run make mrproper 4. emerge alsa-driver if i run make mrproper the linux/version.h is gone too, not just scripts/*. i don't know how scripts/mod/modpost was gone. because if i run make mrproper then linux/version.h is gone too and alsa-driver fails early checking whether gcc needs -traditional... no checking for current directory... /var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a checking cross compile... checking for directory with kernel source... /usr/src/linux checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist. Please, install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory with kernel sources (default is /usr/src/linux). !!! ERROR: media-sound/alsa-driver-1.0.6a failed. !!! Function econf, Line 362, Exitcode 1 !!! econf failed but i ran # genkernel --kernel-config=/etc/kernels/kernel-config-x86-2.6.8-ck7 kernel and tried re emerge alsa-driver and it passed fine (after doing chmod -R a+rX for /usr/src/linux, see #21693) so perhaps this is just informational bug that should be instantly closed (or marked invalid...) Actual Results: Expected Results: # emerge info Portage 2.0.50-r11 (2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.22-1.2115.nptlsmp) ================================================================= System uname: 2.4.22-1.2115.nptlsmp i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -mmmx -pipe -fomit-frame-pointer -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -mmmx -pipe -fomit-frame-pointer -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j25" PKGDIR="/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/gentoo/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 arts artswrappersuid avi bitmap-fonts chroot crypt cups dga directfb dvd encode extensions fbcon flac gif gphoto2 gpm gstreamer gtk gtk2 imap imlib java javascript jikes jpeg kde libg++ libwww linguas_et mad maildir md5sum memlimit mmx motif mpeg mysql ncurses oggvorbis opengl oss pam pda pdflib perl png qt quicktime readline samba scanner sdl slang slp spell sse ssl svga tcltk tiff truetype usb x86 xinerama xml2 xprint xv zlib"
latexer, do youu think you could have a look at this?
this is reproduceable - i also use 2.6.8 ck sources and have alsa built into the kernel- so alsa-driver build fails every time- I had to use gentoo sources in order to get the make process to even begin when emerge alsa-driver was run- and it failed with the same errors as previously mentioned from rate.c:2: /usr/src/linux/include/linux/poll.h:4:22: asm/poll.h: No such file or directory /usr/src/linux/include/linux/poll.h:11:25: asm/uaccess.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/include/sound/pcm.h:29, from /var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/alsa-kernel/core/oss/rate.c:25, from rate.c:2: /usr/src/linux/include/linux/bitops.h:69:24: asm/bitops.h: No such file or directory make[3]: *** [fastdep] Error 1 make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/acore/oss' make[2]: *** [_sfdep_oss] Error 2 make[2]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a/acore' make[1]: *** [dep] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.6a/work/alsa-driver-1.0.6a' make: *** [include/sndversions.h] Error 2 !!! ERROR: media-sound/alsa-driver-1.0.6a failed. !!! Function src_compile, Line 91, Exitcode 2 !!! Parallel Make Failed !!! If you need support, post the topmost build error, NOT this status message. Not to cool to have to emerge genkernel and build a fake kernel just to install some drivers which arent needed and wont be used by the real kernel- this is breaking the installation of apps that have alsa-driver listed as a dependency such as kde-base and kde-libs others have this issue too - see http://forums.gentoo.org/posting.php?mode=reply&t=192097 workaround is to link kernel sources to /usr/src/linux and generate a kernel with no alsa or alsa as a module or - i didnt have to change permission like the other reporter did- easiest automated solution is to emerge gentoo-sources emerge genkernel (if you dont already have it) genkernel all then emerge alsa-driver will work
Created attachment 46374 [details] Output from another failed compile of alsa-driver This is the output from my attempted installation of alsa-driver.
Michael: I get the same error as you. Did you find a fix? Using 2.4.26-gentoo-r14. Compiled with genkernel.
Tossing back to sound. Got lost in the dust. Jeremy: This is just a matter of "alsa-driver has to build against a built kernel sources" problem. As to the deps the users are refering to, that's a dep problem, which is complicated by the aforementioned kernel issue.
yeah, this loooks like your kernel sources aren't compiled yet. You need to have /usr/src/linux point to a compiled kernel tree.