snd-usb-audio and snd-virmidi problems
Hi All,
Sorry about posting to this list with what is probably a trivial and annoying request for assistance, however I've posted to the alsa-users and other lists and haven't been able to work this out for myself so I figured I'd ask the people most likely to know. I'm having problems compiling snd-usb-audio and snd-virmidi. The kernel versions I'm working with are 2.6.12.5 and 2.6.12.6. I've tried compiling the modules into the kernel, and when that failed from the alsa-drivers-1.0.10 package. I came across this post to the alsa-users list:
http://sourceforge.net/mailarchive/message.php?msg_id=13731737
and have tried GCC-3.3.6 and GCC-4.0.2 (my default version). In all cases I get these warnings when compiling snd-usb-audio:
*** Warning: "__compound_literal.132" [sound/usb/snd-usb-audio.ko] undefined!
*** Warning: "__compound_literal.189" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.130" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.122" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.91" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.85" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.104" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.152" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.100" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.145" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.106" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.164" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.136" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.154" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.175" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.81" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.95" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.83" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.182" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.139" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.87" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.156" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.118" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.143" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.148" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.168" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.160" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.116" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.124" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.187" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.126" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.128" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.93" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.141" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.185" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.162" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.134" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.180" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.177" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.108" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.166" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.79" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.120" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.114" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.158" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.102" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.150" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.110" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.112" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.173" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.89" [sound/usb/snd-usb-audio.ko] undefined! *** Warning: "__compound_literal.170" [sound/usb/snd-usb-audio.ko] undefined!
and the module is built but will not load. snd-virmidi gives no warnings during compilation however when I try to load it it segfaults. Here is the dump from dmesg:
Oops: 0000 [#1]
PREEMPT
Modules linked in: snd_virmidi snd_seq_virmidi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device snd_ali5451 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd snd_page_alloc
CPU: 0
EIP: 0060:[<00000000>] Not tainted VLI
EFLAGS: 00010282 (2.6.12.5)
EIP is at stext+0x3feffdd8/0x8
eax: f6fa7780 ebx: f88b5874 ecx: 00000000 edx: f88b5874
esi: f6fa7788 edi: c04848a0 ebp: f6fa77ac esp: f1801e8c
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 3748, threadinfo=f1800000 task=f4b24a20)
Stack: c02a7640 f6fa7780 f88b5874 f88b58a4 f6fa7788 c02a76da f88b5874 f6fa7788
c02301f4 c048486c f6fa7788 f6fa7788 c0484840 c02a797c f6fa7788 c02aab93
f6fa7788 f6fa7788 f6fa77e0 00000000 c02a6a12 f6fa7788 00000001 f6fa77e0
Call Trace:
[<c02a7640>] driver_probe_device+0x29/0x64
[<c02a76da>] device_attach+0x5f/0xaa
[<c02301f4>] kobject_get+0x17/0x1e
[<c02a797c>] bus_add_device+0x56/0xb7
[<c02aab93>] device_pm_add+0x56/0x8b
[<c02a6a12>] device_add+0xca/0x14f
[<c02a9190>] platform_device_register+0x13f/0x186
[<f88a9766>] snd_generic_device_register+0x5c/0xa3 [snd]
[<f88a97f0>] snd_card_set_generic_dev+0x10/0x3b [snd]
[<f888d13b>] snd_card_virmidi_probe+0x13b/0x1ac [snd_virmidi]
[<f888d1c5>] alsa_card_virmidi_init+0x19/0x59 [snd_virmidi]
[<c0133c66>] sys_init_module+0xc0/0x1fc
[<c0102f0f>] sysenter_past_esp+0x54/0x75
Code: Bad EIP value.If anyone could provide me with the following pieces of information I would be grateful:
1. What is the recommended version of GCC to use when compiling alsa-drivers-1.0.10?
2. Are there known issues with the kernel versions that I'm trying to use, and if so which version of the 2.6.12 kernel is known to work best, and/or are there patches that will help.
3. Are there possible conflicts with other USB related areas in the kernel? Anything (other than obviously CONFIG_USB=y) which needs to be turned on or off in order for snd-usb-audio to compile cleanly?
Thanking you in advance,
Jonathan Murphy.
---------------------------------
Find your next car at Yahoo! Canada Autos
On Sat, Dec 10, 2005 at 01:10:29PM -0500, Jonathan Murphy wrote:
[skip]
Quoted 21 lines
Oops: 0000 [#1]
PREEMPT
Modules linked in: snd_virmidi snd_seq_virmidi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device snd_ali5451 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd snd_page_alloc
CPU: 0
EIP: 0060:[<00000000>] Not tainted VLI
EFLAGS: 00010282 (2.6.12.5)
EIP is at stext+0x3feffdd8/0x8
eax: f6fa7780 ebx: f88b5874 ecx: 00000000 edx: f88b5874
esi: f6fa7788 edi: c04848a0 ebp: f6fa77ac esp: f1801e8c
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 3748, threadinfo=f1800000 task=f4b24a20)
Stack: c02a7640 f6fa7780 f88b5874 f88b58a4 f6fa7788 c02a76da f88b5874 f6fa7788
c02301f4 c048486c f6fa7788 f6fa7788 c0484840 c02a797c f6fa7788 c02aab93
f6fa7788 f6fa7788 f6fa77e0 00000000 c02a6a12 f6fa7788 00000001 f6fa77e0
Call Trace:
[<c02a7640>] driver_probe_device+0x29/0x64
[<c02a76da>] device_attach+0x5f/0xaa
[<c02301f4>] kobject_get+0x17/0x1e
[<c02a797c>] bus_add_device+0x56/0xb7
[<c02aab93>] device_pm_add+0x56/0x8b
[<c02a6a12>] device_add+0xca/0x14fQuoted 8 lines
[<c02a9190>] platform_device_register+0x13f/0x186 [<f88a9766>] snd_generic_device_register+0x5c/0xa3 [snd] [<f88a97f0>] snd_card_set_generic_dev+0x10/0x3b [snd] [<f888d13b>] snd_card_virmidi_probe+0x13b/0x1ac [snd_virmidi] [<f888d1c5>] alsa_card_virmidi_init+0x19/0x59 [snd_virmidi] [<c0133c66>] sys_init_module+0xc0/0x1fc [<c0102f0f>] sysenter_past_esp+0x54/0x75 Code: Bad EIP value.
Not sure about your first problem (undefined symbols), but this oops looks similar to the one described in the bug #1623:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1623
Please try the patch attached to that report - it should fix the oops.
Thanks for your advice, Sergey, and for the patch. snd-virmidi is loading properly now. I'm still unable to compile snd-usb-audio. I'm beginning to think that I've got something very weird going on with my kernel headers. I have CONFIG_KMOD=y in my /boot/config, however when I run the alsa-drivers configure script it can't find kmod.h. Now that I've used Sergey's patch platform_device.h is there, and so is everything else. I'm using the 2.6.12 headers from:
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
The weird thing is that kmod.h is in the /include/linux subdirectories of both the build and source directories, and yet it's not in the /include/config/module subdirectory. What exactly is the configure script wanting to do when it says that it's 'checking to modify'?
checking to modify of kernel linux/kmod.h... "no"
I'm running the script as root, and I chowned the alsa-drivers directory to root just to make sure that it should be able to do whatever it needs. From what I understand of kmod
http://www.xml.com/ldd/chapter/book/ch11.html
It pretty much fits the bill of what you'd want in a USB driver, there when you need it, so I'm guessing that there's probably a dependency there. Should I add kmod.h to the ../include/config/module subdirectory or will that just cause serious confusion?
Thanks for your time,
Jonathan.
---------------------------------
Find your next car at Yahoo! Canada Autos
Signature · 3 lines
http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Quoted 4 lines · Jonathan Murphy
tried GCC-3.3.6 and GCC-4.0.2 (my default version). In all cases I get these warnings when compiling snd-usb-audio:
*** Warning: "__compound_literal.132" undefined!
See
http://groups.google.com/group/linux.kernel/browse_thread/thread/e93a42f548ee48ba/b98f65ad76c6f986
HTH
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click