Click to See Complete Forum and Search --> : merging ALSA


JThundley
12-13-2003, 05:47 AM
I've always had tons of problems compiling ALSA, but I'd like to switch to it. I'm making myself a gentoo system from scratch right now. Here's the error:

/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
distcc[17031] ERROR: compile on localhost failed
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 63, Exitcode 2
!!! Parallel Make Failed

I think I'm going to try to download the latest ALSA from their site and try to compile it. If that works, I can install it and then stub the ebuild, right? Oh, and I've tried merging every ebuild.

je_fro
12-13-2003, 05:56 AM
What's the sound configuration in your kernel? Did you enable soundcore as a module and nothing else? Have you finished the install? What kernel did you use? What sound module did you select?
I've used this several times with no trouble at all:
http://www.gentoo.org/doc/en/alsa-guide.xml

Hayl
12-13-2003, 07:52 AM
what CFLAGS are you using?

what version of alsa-driver is that error from?

all the versions of the ALSA source code in portage are _from_ the ALSA web site, don't bother doing that.

JThundley
12-13-2003, 07:09 PM
Well, I haven't built my kernel yet, I'm using Knoppix to install gentoo. Here are my CFLAGS:

CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"

I guess I should try to change them just for that compile if nothing else.

I'm trying to merge the latest non-test alsa, alsa-driver-0.9.8 like it said in my first post.


I know that the packages are from their site, but I meant downloading the latest alsa-driver which is 1.0.0rc2, but you're right I see an ebuild for that.

I've never been able to compile alsa, so I'll mess with my cflags and see if it helps.

Speaking of help, I love you guys :D

je_fro
12-13-2003, 07:16 PM
Why not try again when you get it finished. I'll bet it'll work then.

JThundley
12-13-2003, 07:21 PM
I've just commented out the features option in my make.conf, thinking that distcc could be screweing it up, and I ran
CFLAGS="" emerge alsa-driver -v
with a very similar error.

JThundley
12-16-2003, 03:38 AM
It compiled fine now! I guess it does all depend on the kernel!

Case closed.