Compile error with "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No such file or directory".

Bug #778887 reported by Takashi Sakamoto
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Natty's kernel is linux 2.6.38 and it includes ALSA 1.0.23 stuff. But the latest version of ALSA is 1.0.24. We can get the latest ALSA kernel module source by installing alsa-source package but get compile error below,

In file included from /usr/src/modules/alsa-driver/include/linux/config.h:4:0,
                 from /usr/src/modules/alsa-driver/include/alsa-autoconf.h:9,
                 from /usr/src/modules/alsa-driver/acore/memory_wrapper.c:1:
/usr/src/modules/alsa-driver/include/generated/autoconf.h:4600:0: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
./include/generated/autoconf.h:2385:0: note: this is the location of the previous definition
In file included from /usr/src/modules/alsa-driver/include/linux/config.h:4:0,
                 from /usr/src/modules/alsa-driver/include/alsa-autoconf.h:9,
                 from /usr/src/modules/alsa-driver/acore/memalloc.inc:1,
                 from /usr/src/modules/alsa-driver/acore/memalloc.c:1:
/usr/src/modules/alsa-driver/include/generated/autoconf.h:4600:0: warning: "CONFIG_SND_HDA_INPUT_BEEP_MODE" redefined
./include/generated/autoconf.h:2385:0: note: this is the location of the previous definition
In file included from include/linux/pci.h:58:0,
                 from /usr/src/modules/alsa-driver/acore/memalloc.inc:13,
                 from /usr/src/modules/alsa-driver/acore/memalloc.c:1:
/usr/src/modules/alsa-driver/include/linux/pci_ids.h:2:58: fatal error: @CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No such file or directory
compilation terminated.
make[3]: *** [/usr/src/modules/alsa-driver/acore/memalloc.o] Error 1
make[2]: *** [/usr/src/modules/alsa-driver/acore] Error 2
make[1]: *** [_module_/usr/src/modules/alsa-driver] Error 2
make: *** [compile] Error 2

This bus is related to "module-assistant" package.

I hope to fix this bug and to be able to generate the latest ALSA kernel module package by utilizing module-assistant.

Regards

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: alsa-source 1.0.24+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mocchi 1719 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe020000 irq 44'
   Mixer name : 'Analog Devices AD1984'
   Components : 'HDA:11d41984,17aa20d6,00100400'
   Controls : 31
   Simple ctrls : 19
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7MHT25WW-1.03'
   Mixer name : 'ThinkPad EC 7MHT25WW-1.03'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Sat May 7 15:31:05 2011
InstallationMedia: Ubuntu-Studio 11.04 "Natty Narwhal" - Alpha i386 (20110112)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=ja_JP:ja:en_GB:en
 LANG=ja_JP.UTF-8
 SHELL=/bin/bash
SourcePackage: alsa-driver
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/09/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7NETC1WW (2.21 )
dmi.board.name: 7675A63
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7NETC1WW(2.21):bd10/09/2009:svnLENOVO:pn7675A63:pvrThinkPadX61:rvnLENOVO:rn7675A63:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7675A63
dmi.product.version: ThinkPad X61
dmi.sys.vendor: LENOVO

Revision history for this message
Takashi Sakamoto (mocchi) wrote :
Revision history for this message
Takashi Sakamoto (mocchi) wrote :
Revision history for this message
Luke Yelavich (themuso) wrote :

What version of the alsa drivers are you trying to build, and for what reason? If you need newer alsa drivers than what the 11.04 kernel requires, then we will shortly have daily builds of the latest alsa driver code for 11.04, as per the instructions at https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules. Please keep an eye out for these packages, which should be available very shortly.

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Takashi Sakamoto (mocchi) wrote :

I would like to build ALSA 1.0.24.

I'm a member of Japanese LoCo and active to support users for sound system in Japanese forum. This time a user post HDMI sound trouble and I want to suggest to update ALSA kernel module to him or her. At first I have a plan to utilize module-assistant script and install ALSA kernel module 1.0.24 as a maintainable package.

But I failed to do this with the reported bug. This bug causes "fail to build" in module-assistant script.

I'm very welcome to your work in Ubuntu Audio Dev team but this PPA serves Daily Build. In my opinion, daily build includes some bugs and should be used by the users who can find solutions by their own effort when facing bugs.

Of cource, I hope to be such a user but all of members in my LoCo is not such users. So I'm hesitate to introduce your packages to all users. I think It a good way to use the same source then I need build-able alsa-source package.

I say again that I'm very welcome to your work for daily build. But what I want is to keep both ways of utilizing daily build and utilize the same source, for good solutions.

Best Regards

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Kit Peters (popefelix+launchpad) wrote :

I have the same problem trying to install the latest ALSA drivers on Ubuntu 11.04 with kernel 2.6.38-11-generic-pae. The file "pci_ids.h" does not appear to be present in the linux-headers-2.6.38-11-generic-pae package.

Changed in alsa-driver (Ubuntu):
status: Expired → New
Revision history for this message
Takashi Sakamoto (mocchi) wrote :

You can refer to my in-depth report about this at # 832137.

Revision history for this message
Takashi Sakamoto (mocchi) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
sdaau (sd-imi) wrote :

Probably doesn't matter anymore, but just bumped into this (also on natty); did:

apt-get source alsa-driver
cd alsa-driver
./configure --with-debug=full --with-cards=seq-dummy

Configure passes fine, then:

make
# ...
# /path/to/alsa-driver-1.0.24+dfsg/include/linux/pci_ids.h:2:58: fatal error: @CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No such file or directory

alsa-driver-1.0.24+dfsg$ grep -r @CONFIG_SND_KERNELSRC@ .
./include/i2c-id_compat.h:#include "@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/pci_ids_compat.h.in:#include "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./include/linux/i2c-id.h:#include "@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/linux/pci_ids.h:#include "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./include/i2c-id_compat.h.in:#include "@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/pci_ids_compat.h:#include "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./debian/patches/distinguish_kernel_makefile_and_source_dirs.patch:+#include "@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./debian/patches/distinguish_kernel_makefile_and_source_dirs.patch:+#include "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"

... so apparently it is debian patches... check replacement:

$ sed -n "s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>p" ./include/i2c-id_compat.h
#include "/usr/src/linux-headers-2.6.38-16-generic/include/linux/i2c-id.h"

... then replace:

alsa-driver-1.0.24+dfsg$ sed -i "s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>" ./include/i2c-id_compat.h
alsa-driver-1.0.24+dfsg$ sed -i "s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>" ./include/pci_ids_compat.h

... run `make` again, and finally it says: "ALSA modules were successfully compiled."

Cheers!

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.