Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4960 - alsa-driver build error
Summary: alsa-driver build error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-13 14:45 UTC by Sven Wermke
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Wermke 2002-07-13 14:45:22 UTC
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#
Comment 1 David Monk 2002-07-18 08:42:06 UTC
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 .
Comment 2 David Monk 2002-07-18 10:27:08 UTC
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.
Comment 3 Arcady Genkin (RETIRED) gentoo-dev 2002-07-18 14:50:50 UTC
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.
Comment 4 Sven Blumenstein (RETIRED) gentoo-dev 2002-08-03 12:57:52 UTC
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
Comment 5 Mark McClellan 2002-08-16 14:40:00 UTC
Thanks for the tip. Setting ALSA_CARDS to my sound module also let me dodge the 
buggy trident module.

BTW running 1.3b

Mark
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2002-09-22 23:35:04 UTC
Sven, are you still unable to compile alsa-driver?
Comment 7 Sven Wermke 2002-09-23 14:48:15 UTC
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.