Gentoo 1.3a, gcc 3.1, K6-2 400 build process for alsa-driver-0.9.0_rc2 errors out like below: make -C nm256 modules make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/nm256' make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/nm256' make -C pdplus modules make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/pdplus' make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/pdplus' make -C rme9652 modules make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/rme9652' rm -f snd-rme9652.o ld -r -o snd-rme9652.o rme9652.o make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/rme9652' make -C trident modules make[2]: Entering directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/trident' gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/include -I/usr/src/linux/include -O2 -mpreferred-stackdary=2 -march=k6 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DKBUILD_BASENAME=trident_memory -c -o trident_memory.o trident_memory.c In file included from trident_memory.c:1: ../../alsa-kernel/pci/trident/trident_memory.c: In function `snd_trident_synth_bzero_Rc135f6fe': ../../alsa-kernel/pci/trident/trident_memory.c:402: unrecognizable insn: (insn 228 221 230 (set (reg:SI 99) (ashift:SI (plus:SI (reg/v:SI 63) (const_int -1 [0xffffffff])) (const_int 12 [0xc]))) -1 (insn_list 28 (nil)) (nil)) ../../alsa-kernel/pci/trident/trident_memory.c:402: Internal compiler error in extract_insn, at recog.c:2132 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [trident_memory.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci/trident' make[1]: *** [_modsubdir_trident] Error 2 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver-0.9.0rc2/pci' make: *** [compile] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -20, Exitcode 2 !!! Parallel Make Failed !!! emerge aborting on /usr/portage/media-sound/alsa-driver/alsa-driver-0.9.0_rc2.ebuild . bash-2.05a#
I have this same problem, although the end error is slightly different. Gentoo 1.2, Duron 1.2, latest mjc-sources kernel. This happens immediately after installing the new kernel, rebooting to rebuild alsa-driver. lm_sensors rebuild completes fine. Here are the last few lines of the emerge process: /var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver- 0.9.0rc2/include/sound/core.h:262: warning: `snd_malloc_isa_pages_fallback' redefined /usr/src/linux/include/linux/modules/sound.ver:22: warning: this is the location of the previous def inition In file included from ../alsa-kernel/core/info.c:32, from info.c:1: /usr/src/linux/include/linux/proc_fs.h:238: redefinition of `PDE' /var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa-driver- 0.9.0rc2/include/adriver.h:111: `PDE' previo usly defined here make[1]: *** [info.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-0.9.0_rc2/work/alsa- driver-0.9.0rc2/acore' make: *** [compile] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -15, Exitcode 2 !!! Parallel Make Failed !!! emerge aborting on /usr/portage/media-sound/alsa-driver/alsa-driver- 0.9.0_rc2.ebuild .
Jesh I feel like an idiot. I figured out my problem. The newer mjc-sources has options for alsa drivers in the kernel. You have to disable normal sound support to see the alsa sound options.
Sven, the output that you sent suggests that it's an internal compiler error. I suggest that you file a bug with the GCC people instead.
Hi! I got the same error (Trident driver) and found a Workaround: The alsa-driver ebuild compiles ALSA by default with ALSA_CARDS=all wich means, support for all sound cards. Also the buggy(?) Trident. My workaround is, to do a export ALSA_CARDS=mychip before emerging. As long as you dont have a Trident, it should work for you :) And it compiles even faster because it only compiles your chip, plus you dont waste diskspace for modules you dont need. A list of all supported soundcards along with the chipnames can be found here: http://alsa-project.org/~goemon/ In my case it was "export ALSA_CARDS=ens1371" because I have a SB 128 PCI. Hope that helps! Regards, bAZiK
Thanks for the tip. Setting ALSA_CARDS to my sound module also let me dodge the buggy trident module. BTW running 1.3b Mark
Sven, are you still unable to compile alsa-driver?
Whoops, almost forgot about this bug. I just tried it on my K6-2 400 with Gentoo 1.4-rc1 and now it works. Time to close this one.