You are not logged in.

#1 2004-05-07 13:38:50

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

problem compiling alsa-driver

I ran abs and then created a directory called alsa in /var/abs/local/

I then copied all of /var/abs/multimedia/alsa-driver/* into my new directory and ran makepkg

I got the following error:

s -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include  -DKBUILD_BASENAME=mpu401   -c -o mpu401.o mpu401.c
In file included from mpu401.c:4:
../../alsa-kernel/drivers/mpu401/mpu401.c:31:27: acpi/acpi_bus.h: No such file or directory
In file included from mpu401.c:4:
../../alsa-kernel/drivers/mpu401/mpu401.c:101: error: parse error before "snd_mpu401_acpi_resource"
../../alsa-kernel/drivers/mpu401/mpu401.c:102: warning: "struct acpi_resource" declared inside parameter list
../../alsa-kernel/drivers/mpu401/mpu401.c:102: warning: its scope is only this definition or declaration, which is probably not what you want
../../alsa-kernel/drivers/mpu401/mpu401.c:103: warning: return type defaults to `int'
../../alsa-kernel/drivers/mpu401/mpu401.c: In function `snd_mpu401_acpi_resource':
../../alsa-kernel/drivers/mpu401/mpu401.c:106: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:106: error: `ACPI_RSTYPE_IRQ' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c:106: error: (Each undeclared identifier is reported only once
../../alsa-kernel/drivers/mpu401/mpu401.c:106: error: for each function it appears in.)
../../alsa-kernel/drivers/mpu401/mpu401.c:107: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:113: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:116: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:116: error: `ACPI_RSTYPE_IO' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c:117: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:118: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:121: error: `AE_OK' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c: At top level:
../../alsa-kernel/drivers/mpu401/mpu401.c:124: warning: "struct acpi_device" declared inside parameter list
../../alsa-kernel/drivers/mpu401/mpu401.c: In function `snd_mpu401_acpi_pnp':
../../alsa-kernel/drivers/mpu401/mpu401.c:127: error: `acpi_status' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c:127: error: parse error before "status"
../../alsa-kernel/drivers/mpu401/mpu401.c:131: error: `status' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c:131: warning: implicit declaration of function `acpi_walk_resources_Rsmp_b06b28a1'
../../alsa-kernel/drivers/mpu401/mpu401.c:131: error: dereferencing pointer to incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:131: error: `METHOD_NAME__CRS' undeclared (first use in this function)
../../alsa-kernel/drivers/mpu401/mpu401.c:133: warning: implicit declaration of function `ACPI_FAILURE'
../../alsa-kernel/drivers/mpu401/mpu401.c:136: warning: implicit declaration of function `acpi_device_bid'
../../alsa-kernel/drivers/mpu401/mpu401.c:136: warning: format argument is not a pointer (arg 4)
../../alsa-kernel/drivers/mpu401/mpu401.c: At top level:
../../alsa-kernel/drivers/mpu401/mpu401.c:147: warning: "struct acpi_device" declared inside parameter list
../../alsa-kernel/drivers/mpu401/mpu401.c: In function `snd_card_mpu401_probe':
../../alsa-kernel/drivers/mpu401/mpu401.c:186: warning: passing arg 2 of `snd_compat_strlcat_Rsmp_be7f784f' makes pointer from integer without a cast
../../alsa-kernel/drivers/mpu401/mpu401.c:206: warning: implicit declaration of function `acpi_driver_data'
../../alsa-kernel/drivers/mpu401/mpu401.c:206: error: invalid lvalue in assignment
../../alsa-kernel/drivers/mpu401/mpu401.c: At top level:
../../alsa-kernel/drivers/mpu401/mpu401.c:216: warning: "struct acpi_device" declared inside parameter list
../../alsa-kernel/drivers/mpu401/mpu401.c:234: warning: "struct acpi_device" declared inside parameter list
../../alsa-kernel/drivers/mpu401/mpu401.c: In function `snd_mpu401_acpi_remove':
../../alsa-kernel/drivers/mpu401/mpu401.c:246: error: invalid lvalue in assignment
../../alsa-kernel/drivers/mpu401/mpu401.c: At top level:
../../alsa-kernel/drivers/mpu401/mpu401.c:250: error: variable `snd_mpu401_acpi_driver' has initializer but incomplete type
../../alsa-kernel/drivers/mpu401/mpu401.c:251: error: unknown field `name' specified in initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:251: warning: excess elements in struct initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:251: warning: (near initialization for `snd_mpu401_acpi_driver')
../../alsa-kernel/drivers/mpu401/mpu401.c:252: error: unknown field `class' specified in initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:252: warning: excess elements in struct initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:252: warning: (near initialization for `snd_mpu401_acpi_driver')
../../alsa-kernel/drivers/mpu401/mpu401.c:253: error: unknown field `ids' specified in initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:253: warning: excess elements in struct initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:253: warning: (near initialization for `snd_mpu401_acpi_driver')
../../alsa-kernel/drivers/mpu401/mpu401.c:254: error: unknown field `ops' specified in initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:254: error: extra brace group at end of initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:254: error: (near initialization for `snd_mpu401_acpi_driver')
../../alsa-kernel/drivers/mpu401/mpu401.c:257: warning: excess elements in struct initializer
../../alsa-kernel/drivers/mpu401/mpu401.c:257: warning: (near initialization for `snd_mpu401_acpi_driver')
../../alsa-kernel/drivers/mpu401/mpu401.c: In function `alsa_card_mpu401_init':
../../alsa-kernel/drivers/mpu401/mpu401.c:267: warning: implicit declaration of function `acpi_bus_register_driver_Rsmp_f54e54e2'
../../alsa-kernel/drivers/mpu401/mpu401.c:285: warning: implicit declaration of function `acpi_bus_unregister_driver_Rsmp_8c47e72a'
mpu401.c: At top level:
../../alsa-kernel/drivers/mpu401/mpu401.c:250: error: storage size of `snd_mpu401_acpi_driver' isn't known
make[2]: *** [mpu401.o] Error 1
make[2]: Leaving directory `/var/abs/local/alsa/src/alsa-driver-1.0.4/drivers/mpu401'
make[1]: *** [_modsubdir_mpu401] Error 2
make[1]: Leaving directory `/var/abs/local/alsa/src/alsa-driver-1.0.4/drivers'
make: *** [compile] Error 1
==> ERROR: Build Failed.  Aborting...

Any ideas what's going wrong?

Offline

#2 2004-05-07 17:47:16

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

Re: problem compiling alsa-driver

OK - I think the problem may be acpi related.  I'm using the stock 2.4 kernel and just about everything in the kernel config that's acpi related is y or m

I have installed acpi and acpid, but I still get the same problem.

This is pretty crucial - I need to have sound working.  If I try to use the modules I get from doing

pacman -S alsa-driver

then I am told that they aren't compiled with the right version of the kernel

Someone please help!

Offline

#3 2004-05-07 18:54:34

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

Re: problem compiling alsa-driver

an alternative approach would be to help me install the alsa-driver binaries.  In some ways this might be easier or better...

Offline

#4 2004-05-07 20:06:02

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: problem compiling alsa-driver

Do you have the *latest* stock 2.4 kernel? That should work properly with the alsa-driver package.

another option is to install the stock 2.6 kernel; is there any reason not to?

Good idea to run pacman -Syu before installing new drivers and stuff.

Alternatively, if you're using a specific release, you could take [current] out of pacman to make sure only that release is used. IMO, it's better to keep up to date... even on dialup (in the middle of a huge Syu myself... smile)

Dusty

Offline

#5 2004-05-07 21:38:34

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

Re: problem compiling alsa-driver

I do have the latest stock kernel and when I try and load the drivers I get the following errors:

 modprobe snd-intel8x0
/lib/modules/2.4.26/kernel/sound/acore/snd.o: couldn't find the kernel version the module was compiled for
/lib/modules/2.4.26/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.26/kernel/sound/acore/snd.o failed
/lib/modules/2.4.26/kernel/sound/acore/snd.o: insmod snd-intel8x0 failed

The reaons I haven't gone for 2.6 is simply that 3D rendering didn't work with my card in 2.6 last time I tried (my card is an ati radone mobility) but it's fine in 2.4

Offline

#6 2004-05-08 04:29:52

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: problem compiling alsa-driver

to compile the alsa driver you usually have to have the full compiled source in your /usr/src/

so what you can do is compile the kernel with makepkg making sure not to use the -c option then when compiling is complete move the linux-2.4.xx into /usr/src

then compile your alsa-driver.

or file a bug.


AKA uknowme

I am not your friend

Offline

#7 2004-05-08 09:50:13

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

Re: problem compiling alsa-driver

I followed sarah31's suggestion and alsa-driver succesfully compiled, but after installing the new package and running depmod -a I still get the same error regarding kernel version

When I get a chance I will file a bug

Offline

#8 2004-05-09 00:54:32

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: problem compiling alsa-driver

I had this problem too.  I kept the updated kernel24 but downgraded to alsa-driver 1.0.4-2 and that solved the problem.  Good luck.

Offline

#9 2004-05-11 20:40:20

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: problem compiling alsa-driver

Alsa-driver still doesn't work with kernel24 after upgrade. I've just filled a bug report: http://bugs.archlinux.org/index.php?do=details&id=903 (I'm surprised that nobody have done it so far :-) - everybody is using only kernel26? I'd better do the same ;-) and until it gets fixed I'll just use emu10k with kernel24).

Offline

#10 2004-05-13 00:16:43

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: problem compiling alsa-driver

one reason may be that it may not be a arch problem but a kernel problem. have you researched to see if anyone outside arch is having these issues?

or could it be a GCC issue? are you using 3.4?


AKA uknowme

I am not your friend

Offline

#11 2004-05-13 14:14:58

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: problem compiling alsa-driver

Unfortunatelly even after last upgrade of kernel24 and alsa-driver the problem is still not corrected :-( I'll try to search with google for possible reasons and for now I'm just using kernel26. I'll let you know If I find something. You can try to recompile the kernel and alsa driver yourself with gcc 3.4 and see if it helps...

Offline

#12 2004-05-13 14:27:01

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 786

Re: problem compiling alsa-driver

I'm using 2.6 now and everything is fine...

Offline

#13 2004-05-16 23:05:32

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: problem compiling alsa-driver

The problem is that the new version of GCC 3.4 throws out unreferenced static variables, such as the kernel_version string.  You need to recompile the alsa-driver package with -O1 instead of -O2 optimizations.

See the bug report I submitted: http://bugs.archlinux.org/index.php?id=912&do=details

Here's the GCC changelog, check out the 13th bullet:
http://gcc.gnu.org/gcc-3.4/changes.html

Offline

#14 2004-05-17 14:04:34

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: problem compiling alsa-driver

Specifically it's a new optimization in gcc3.4 unit-at-a-time.  Compile with -O2 -fno-unit-at-a-time.

Offline

Board footer

Powered by FluxBB