Summary: | alsa-driver will not emerge | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Xavier Rival <rival> |
Component: | New packages | Assignee: | PPC Porters <ppc> |
Status: | VERIFIED TEST-REQUEST | ||
Severity: | blocker | CC: | selecter, sound |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Xavier Rival
2004-06-10 07:40:04 UTC
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 |