Resulot of the emerge Started emerge on: Jun 10, 2004 14:30:19 *** emerge --update --upgradeonly --verbose --deep alsa-driver >>> emerge (1 of 1) media-sound/alsa-driver-0.9.8 to === (1 of 1) Cleaning (media-sound/alsa-driver-0.9.8::/usr/portage/media-sound/alsa-driver/alsa-driver-0.9.8.ebuild)]1;]2; === (1 of 1) Compiling/Merging (media-sound/alsa-driver-0.9.8::/usr/portage/media-sound/alsa-driver/alsa-driver-0.9.8.ebuild)>>> Unpacking source... >>> Unpacking alsa-driver-0.9.8.tar.bz2 to /var/tmp/portage/alsa-driver-0.9.8/work Applying makefile.patch... Applying alsa-driver-0.9.8-au-fix.patch... >> Source unpacked. oss 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 powerpc-unknown-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 executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for powerpc-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD compatible install... /bin/install -c checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking whether gcc needs -traditional... no checking for current directory... /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8 checking cross compile... checking for directory with kernel source... /usr/src/linux checking for kernel version... 2.6.1-benh1 checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.3.3 (Gentoo Linux 3.3.3_pre20040408-r1) *** NO PREDEFINED KERNEL COMPILER IS DETECTED *** Assuming the same compiler is used with the current system compiler. *** Please make sure that the same compiler version was used for building kernel. checking to modify of kernel linux/kmod.h... "no" Removing a dummy linux/kmod.h. checking for kernel linux/compiler.h... "yes" Removing a dummy linux/compiler.h. checking for kernel linux/pm.h... "yes" checking for kernel linux/spinlock.h... "yes" checking for kernel linux/irq.h... "yes" Removing a dummy linux/irq.h. checking for kernel linux/threads.h... "yes" Removing a dummy linux/threads.h. checking for kernel linux/rwsem.h... "yes" Removing a dummy linux/rwsem.h. checking for kernel linux/gameport.h... "yes" Removing a dummy linux/gameport.h. checking for kernel linux/devfs_fs_kernel.h... "yes" checking for kernel linux/highmem.h... "yes" Removing a dummy linux/highmem.h. checking for kernel linux/workqueue.h... "yes" Removing a dummy linux/workqueue.h. checking for kernel asm/hw_irq.h... "yes" Removing a dummy asm/hw_irq.h. checking for kernel linux/jiffies.h... "yes" Removing a dummy linux/jiffies.h. checking for kernel linux/compat.h... "yes" Removing a dummy linux/compat.h. checking for kernel linux/adb.h... "yes" Removing a dummy linux/adb.h. checking for kernel linux/cuda.h... "yes" Removing a dummy linux/cuda.h. checking for kernel linux/pmu.h... "yes" Removing a dummy linux/pmu.h. checking for kernel module symbol versions... "yes" checking for PCI support in kernel... "yes" checking for SGI/MIPS (HAL2) architecture... "no" checking for directory to store kernel modules... /lib/modules/2.6.1-benh1/kernel/sound checking for verbose printk... on checking for debug level... none checking for ISA support in kernel... "yes" checking for processor type... ppc checking for SMP... "no" checking for ISA PnP driver in kernel... yes checking for PnP driver in kernel... yes checking for Kernel ISA-PnP support... "no" checking for Kernel ISA-PnP module support... "no" checking for strlcpy... "yes" checking for snprintf... "yes" checking for vmalloc_to_page... "yes" checking for old kmod... "no" checking for PDE... "yes" Removing local linux/isapnp.h. Removing local linux/pnp.h. checking for driver version... 0.9.8 checking for sequencer support... yes checking for OSS/Free emulation... yes checking for RTC callback support in kernel... "no" checking for USB support... "yes" checking for kernel PCMCIA checking for PCMCIA support... "no" checking for PCMCIA module support... "yes" checking for PC9800 support in kernel... "no" checking for which soundcards to compile driver for... all configure: creating ./config.status config.status: creating version config.status: creating Makefile.conf config.status: creating snddevices config.status: creating utils/alsa-driver.spec config.status: creating utils/buildrpm config.status: creating toplevel.config config.status: creating include/config.h config.status: creating include/config1.h config.status: creating include/version.h config.status: include/version.h is unchanged if [ ! -d include/sound -a ! -L include/sound ]; then \ ln -sf ../alsa-kernel/include include/sound ; \ fi cp -auvf include/version.h include/sound/version.h `include/version.h' -> `include/sound/version.h' make dep make[1]: Entering directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/support' /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sndversions.h was updated make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/support' make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore' make -C ioctl32 fastdep make[3]: Entering directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/ioctl32' /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sndversions.h was not updated make[3]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/ioctl32' make -C oss fastdep make[3]: Entering directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/oss' /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sndversions.h was not updated copying file alsa-kernel/core/oss/mixer_oss.c patching file mixer_oss.c copying file alsa-kernel/core/oss/pcm_oss.c patching file pcm_oss.c Hunk #1 succeeded at 2153 (offset 72 lines). Hunk #2 succeeded at 2329 (offset 78 lines). Hunk #3 succeeded at 2477 (offset 78 lines). gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include -I/usr/src/linux/include -O2 -D__powerpc__ -fsigned-char -fno-builtin -msoft-float -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -I/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss -E -D__GENKSYMS__ mixer_oss.c | /sbin/genksyms -k 2.6.1 > /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/modules/acore-oss__mixer_oss.ver.tmp mv /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/modules/acore-oss__mixer_oss.ver.tmp /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/modules/acore-oss__mixer_oss.ver gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include -I/usr/src/linux/include -O2 -D__powerpc__ -fsigned-char -fno-builtin -msoft-float -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -I/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss mixer_oss.c pcm_oss.c pcm_plugin.c io.c copy.c linear.c mulaw.c route.c rate.c > .depend In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from mixer_oss.c:22: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from pcm_oss.c:29: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/pcm_plugin.c:27, from pcm_plugin.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/io.c:22, from io.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/copy.c:22, from copy.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/linear.c:23, from linear.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/mulaw.c:24, from mulaw.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/route.c:22, from route.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/rate.c:22, from rate.c:2: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory make[3]: *** [fastdep] Error 1 make[3]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/oss' make[2]: *** [_sfdep_oss] Error 2 make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore' make[1]: *** [dep] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8' make: *** [include/sndversions.h] Error 2 !!! ERROR: media-sound/alsa-driver-0.9.8 failed. !!! Function src_compile, Line 65, Exitcode 2 !!! Parallel Make Failed Reproducible: Always Steps to Reproduce: 1.emerge -u alsa-driver 2. 3. Expected Results: It should have emerge correctly. Portage 2.0.50-r8 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.2-r9,2.3.3.20040420-r0, 2.6.1-benh1) ================================================================= System uname: 2.6.1-benh1 ppc 7457, altivec supported Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.58-r1,sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.8.3,sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="no" CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" 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/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="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec" DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://ftp.rhnet.is/pub/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ rsync://ftp.rhnet.is/gentoo http://gentoo.mirror.sdv.fr/" 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 arts berkdb cdr cups dvd esd foomaticdb gdbm gif gnome gnome-libs gpm gtk gtk2 guile imlib jpeg kde libwww mitshm motif mozilla nls oggvorbis opengl oss pam perl png ppc python qt readline sdl slang ssl tcltk tcpd tetex truetype xv"
Configure your target kernel and build it before the additional modules.
I tried again with the latest gentoo kernel (ppc-development-source-2.6.4) and got the same problem. I tried again with another version of the alsa-driver (media-sound/alsa-driver-1.0.5a) and get compilation errors now: /var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/pci/hdspm.c: In function `snd_hdspm_hwdep_ioctl': /var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/pci/hdspm.c:3301: error: case label does not reduce to an integer const ant make[3]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/hdspm.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci] Error 2 make[1]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild] Error 2 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.5a/temp/linux' make: *** [compile] Error 2 !!! ERROR: media-sound/alsa-driver-1.0.5a failed. !!! Function src_compile, Line 85, Exitcode 2 !!! Parallel Make Failed Here is the latest emerge info : Portage 2.0.50-r8 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.4-pegasos0) ================================================================= System uname: 2.6.4-pegasos0 ppc 7457, altivec supported Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="no" CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec" CHOST="powerpc-unknown-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/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="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec" DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://ftp.rhnet.is/pub/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ rsync://ftp.rhnet.is/gentoo http://gentoo.mirror.sdv.fr/" 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 arts berkdb cdr cups dvd esd foomaticdb gdbm gif gnome gnome-libs gpm gtk gtk2 guile imlib jpeg kde libwww mitshm motif mozilla nls oggvorbis opengl oss pam perl png ppc python qt readline sdl slang ssl tcltk tcpd tetex truetype xv" I have no more sound now :( At least the old version used to work; now that I upgraded the kernel, I have to compile a fresh alsa-driver and it does not look like they will work.
Please use development-sources instead ppc-development-sources (now deprecated). Btw you don't need alsa-driver with the 2.6 kernels since they already provide it.
I have gentoo-sources-2.4.26 with no modversions.h. Alsa-driver-1.0.5a requires it :( I am building it through chroot on gentoo 2.6 system.
In addition to the things mentioned above, please see if these can help: 1. Please check and make sure that the /usr/src/linux link points to the kernel you are currently using. 2. Make sure that you've compiled the kernel that /usr/src/linux points to. 3. Using a module compiled with a different kernel will not work, especially between 2.6 and 2.4. You need to compile the alsa driver against the kernel you would like to use.
2.6.7* fixed this problem afaik.
2Joe There are no such header file on the whole partition! I can't emerge alsa-driver on system with 2.4 kernel loaded either.
If you have already tried the suggestions I made above, please try these forum topics: http://forums.gentoo.org/viewtopic.php?t=139049&highlight=modversions+h http://forums.gentoo.org/viewtopic.php?t=129142&highlight=modversions+h Let us know if anything works for you. Thanks!
I fixed. What I did: 1. emerge linux-headers gentoo-sources 2. Did't use genkernel-3.0.2c this time to build kernel, so I compiled it manually: make dep && make bzImage && make modules modules_install http://bugs.gentoo.org/show_bug.cgi?id=58363 Do you want me to try to check genkernel build again? :)
Can anyone double check if this problem is indeed fixed with with 2.6.7 kernel - 2.4 headers
JoseJX, could you please test? I found out, that both of my ppc are running with 2.6-headers.
Still a problem with 0.9.8 mv /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/modules/acore-seq-instr__ainstr_iw.ver.tmp /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/modules/acore-seq-instr__ainstr_iw.ver gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include -I/usr/src/linux/include -O2 -D__powerpc__ -fsigned-char -fno-builtin -msoft-float -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD ainstr_fm.c ainstr_gf1.c ainstr_iw.c ainstr_simple.c > .depend In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from ../../../alsa-kernel/core/seq/instr/ainstr_fm.c:21, from ainstr_fm.c:1: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from ../../../alsa-kernel/core/seq/instr/ainstr_gf1.c:21, from ainstr_gf1.c:1: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from ../../../alsa-kernel/core/seq/instr/ainstr_iw.c:21, from ainstr_iw.c:1: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory In file included from /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, from ../../../alsa-kernel/core/seq/instr/ainstr_simple.c:21, from ainstr_simple.c:1: /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: linux/modversions.h: No such file or directory make[4]: *** [fastdep] Error 1 make[4]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/seq/instr' make[3]: *** [_sfdep_instr] Error 2 make[3]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/seq' make[2]: *** [_sfdep_seq] Error 2 make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore' make[1]: *** [dep] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8' make: *** [include/sndversions.h] Error 2 !!! ERROR: media-sound/alsa-driver-0.9.8 failed. !!! Function src_compile, Line 63, Exitcode 2 !!! Parallel Make Failed !!! If you need support, post the topmost build error, NOT this status message. sweden alsa-driver # emerge info Portage 2.0.51-r3 (default-linux/ppc/2005.0, gcc-3.4.1, glibc-2.3.3.20040420-r2, 2.6.9-pegasos-r2-pegasos ppc) ================================================================= System uname: 2.6.9-pegasos-r2-pegasos ppc 7447/7457, altivec supported 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.3-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=powerpc -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-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/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="-O2 -mtune=powerpc -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bitmap-fonts dvd f77 fortran gif jpeg ncurses nls pam perl png ppc python readline ssl truetype unicode zlib" alsa-driver-1.0.7-r4.ebuild and upwards have the following fault that may be able to avoided by removing some module options for ppc. Setting alsa-driver-1.0.7-r4.ebuild ppc stable is idea as this uses the linux-mod eclass and is a lot more resiliant to compiling against different kernel versions. In file included from /var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/../../alsa-kernel/isa/gus/interwave-stb.c:2, from /var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/interwave-stb.c:1: /var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/../../alsa-kernel/isa/gus/interwave.c:82: error: `isapnp' undeclared here (not in a function) /var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/../../alsa-kernel/isa/gus/interwave.c:82: error: initializer element is not constant /var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/../../alsa-kernel/isa/gus/interwave.c:82: error: (near initialization for `__param_arr_isapnp.elem') make[5]: *** [/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus/interwave-stb.o] Error 1 make[4]: *** [/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa/gus] Error 2 make[3]: *** [/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild/../isa] Error 2 make[2]: *** [_module_/var/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/kbuild] Error 2 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.9-gentoo-r9' make: *** [compile] Error 2 !!! ERROR: media-sound/alsa-driver-1.0.7-r4 failed.
Hoping there aren't too many of the following drivers on ppc cause these are the ones that are failing: hdspm - ALSA-DSP MADI Driver snd-interwave = AMD InterWave snd-interwave-stb = AMD InterWave STB with TEA6330T Will disable these in alsa-driver-1.0.7-r4 for testing sometime soon.
disabled broken drivers in 1.0.7-r4. ~ppc keywords added to 1.0.7-r4 - please test Note this problem with interwave and hdspm hasn't been reported upstream. TODO: The expr match in setup doesn't match if multiple alsa cards are used in ALSA_CARDS. Report problem upstream. Put blocks on these drivers in alsa-driver-1.0.8
The interwave* errors are due to CONFIG_ISAPNP and/or CONFIG_PNP not being set in the kernel. The hdspm warning I got was: LD [M] /var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.o Building modules, stage 2. MODPOST *** Warning: "snd_rawmidi_set_ops" [/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.ko] undefined! *** Warning: "snd_rawmidi_new" [/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.ko] undefined! *** Warning: "snd_rawmidi_transmit" [/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.ko] undefined! *** Warning: "snd_rawmidi_transmit_empty" [/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.ko] undefined! *** Warning: "snd_rawmidi_receive" [/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/pci/snd-hdspm.ko] undefined! No need to report upstream. Just a more clever fix need for 1.0.8.
SOUND PEOPLE PLEASE NOTE: I've added the following patch as interwave-{snd} depends on CONFIG_PNP that caused the compile to fail and hence this bug. I'm going to ignore the warnings associated with hdspm. the expr match in the patch isn't 100% right. It wont catch ALSA_DRIVERS="foo bar interwave" which it realy should. It will disable interwave in this case though. The diff of what I changed and a similar fix to 1.0.7-r4 Index: alsa-driver-1.0.8.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.8.ebuild,v retrieving revision 1.1 diff -u -b -B -r1.1 alsa-driver-1.0.8.ebuild --- alsa-driver-1.0.8.ebuild 14 Jan 2005 13:52:55 -0000 1.1 +++ alsa-driver-1.0.8.ebuild 18 Jan 2005 08:34:30 -0000 @@ -42,10 +42,28 @@ # # env ALSA_CARDS='emu10k1 intel8x0 ens1370' emerge alsa-driver # - if [ -z "${ALSA_CARDS}" ]; then + + linux_chkconfig_present PNP || export PNP_DRIVERS="interwave interwave-stb" + + if [ -z "${ALSA_CARDS}" ] + then + ALSA_CARDS=all + if [ -n "${PNP_DRIVERS}" ] + then + ewarn "Some drivers have been disabled." + ewarn "They require CONFIG_PNP in the kernel: ${PNP_DRIVERS}" + else ewarn "\${ALSA_CARDS} isn't set, so we are compiling all alsa drivers." - ALSA_CARDS="all" fi + else + for pnpdriver in ${PNP_DRIVERS} + do + # check for pnp drivers in ALSA_CARDS + [ `expr match ${pnpdriver} "${ALSA_CARDS}"` -gt 0 ] && \ + die "Driver ${pnpdriver} needs CONFIG_PNP." + done + fi + } src_unpack() { @@ -72,8 +90,16 @@ # linux-mod_src_compile doesn't work well with alsa unset ARCH + + local myconf + if [ -n "${PNP_DRIVERS}" ] + then + myconf=$(echo ${PNP_DRIVERS//-/_} | sed -e 's/[a-z_]*/CONFIG_SND_\U&\E=n/g') + fi + # -j1 : see bug #71028 - emake -j1 || die "Parallel Make Failed" + emake -j1 ${myconf} || die "Make Failed" + if use doc; then @@ -90,7 +116,14 @@ src_install() { dodir /usr/include/sound - make DESTDIR="${D}" install || die + + local myconf + if [ -n "${PNP_DRIVERS}" ] + then + myconf=$(echo ${PNP_DRIVERS//-/_} | sed -e 's/[a-z_]*/CONFIG_SND_\U&\E=n/g') + fi + + make DESTDIR=${D} ${myconf} install || die # Provided by alsa-headers now rm -rf ${D}/usr/include/sound @@ -126,6 +159,11 @@ einfo "If you experience problems, please report bugs to http://bugs.gentoo.org." einfo + + if [ -n "${PNP_DRIVERS}" ] + then + einfo "some drivers haven't been built due to them requiring CONFIG_PNP in the kernel: ${PNP_DRIVERS}" + fi linux-mod_pkg_postinst