View previous topic :: View next topic |
Author |
Message |
Xipher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2004 Posts: 24
|
Posted: Wed Mar 01, 2006 7:43 pm Post subject: Alsa driver failing to load after gcc upgrade |
|
|
ok, I have tried every idea I can think of, and I can't seem to figure out how to fix this. On boot, init runs the alsa init script, and i end up with a few lines of errors about invalid module format. After boot I try to directly load the module for my soundcard via modprobe, and I get this
Code: |
# modprobe snd-emu10k1
WARNING: Error inserting snd (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_util_mem (/lib/modules/2.6.15-gentoo-r5/misc/synth/snd-util-mem.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.15-gentoo-r5/misc/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd-pcm.ko): Invalid module format
WARNING: Error inserting snd_ac97_bus (/lib/modules/2.6.15-gentoo-r5/misc/pci/ac97/snd-ac97-bus.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.15-gentoo-r5/misc/pci/ac97/snd-ac97-codec.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.15-gentoo-r5/misc/acore/snd-rawmidi.ko): Invalid module format
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.15-gentoo-r5/alsa-driver/pci/emu10k1/snd-emu10k1.ko): Unknown symbol in module, or unknown parameter (see dmesg)
|
Here is the dmesg entry its talking about
Code: |
snd: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_hwdep: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_util_mem: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_page_alloc: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_timer: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_seq_device: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_pcm: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_ac97_bus: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_ac97_codec: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_rawmidi: version magic '2.6.15-gentoo-r5 preempt K8 gcc-3.3' should be '2.6.15-gentoo-r5 preempt K8 gcc-3.4'
snd_emu10k1: Unknown symbol snd_rawmidi_receive
snd_emu10k1: Unknown symbol snd_rawmidi_transmit
snd_emu10k1: Unknown symbol snd_ac97_write_cache
snd_emu10k1: Unknown symbol snd_ctl_add
snd_emu10k1: Unknown symbol snd_ac97_resume
snd_emu10k1: Unknown symbol snd_pcm_new
snd_emu10k1: Unknown symbol snd_seq_device_new
snd_emu10k1: Unknown symbol snd_card_register
snd_emu10k1: Unknown symbol snd_card_free
snd_emu10k1: Unknown symbol snd_pcm_lib_preallocate_pages_for_all
snd_emu10k1: Unknown symbol snd_card_proc_new
snd_emu10k1: Unknown symbol snd_pcm_hw_constraint_minmax
snd_emu10k1: Unknown symbol snd_timer_interrupt
snd_emu10k1: Unknown symbol snd_ac97_mixer
snd_emu10k1: Unknown symbol snd_ctl_remove
snd_emu10k1: Unknown symbol snd_ac97_bus
snd_emu10k1: Unknown symbol snd_ctl_find_id
snd_emu10k1: Unknown symbol snd_verbose_printk
snd_emu10k1: Unknown symbol snd_dma_free_pages
snd_emu10k1: Unknown symbol snd_ctl_new1
snd_emu10k1: Unknown symbol snd_ctl_remove_id
snd_emu10k1: Unknown symbol snd_card_new
snd_emu10k1: Unknown symbol snd_ac97_suspend
snd_emu10k1: Unknown symbol snd_iprintf
snd_emu10k1: Unknown symbol snd_pcm_lib_malloc_pages
snd_emu10k1: Unknown symbol __snd_util_mem_alloc
snd_emu10k1: Unknown symbol snd_util_memhdr_new
snd_emu10k1: Unknown symbol snd_pcm_lib_ioctl
snd_emu10k1: Unknown symbol snd_pcm_lib_free_pages
snd_emu10k1: Unknown symbol snd_hwdep_new
snd_emu10k1: Unknown symbol snd_cards
snd_emu10k1: Unknown symbol snd_ecards_limit
snd_emu10k1: Unknown symbol snd_ctl_notify
snd_emu10k1: Unknown symbol snd_pcm_set_ops
snd_emu10k1: Unknown symbol snd_timer_new
snd_emu10k1: Unknown symbol snd_pcm_hw_constraint_list
snd_emu10k1: Unknown symbol snd_device_new
snd_emu10k1: Unknown symbol snd_pcm_sgbuf_ops_page
snd_emu10k1: Unknown symbol snd_pcm_suspend_all
snd_emu10k1: Unknown symbol snd_rawmidi_new
snd_emu10k1: Unknown symbol snd_pcm_hw_constraint_integer
snd_emu10k1: Unknown symbol __snd_util_mem_free
snd_emu10k1: Unknown symbol snd_rawmidi_set_ops
snd_emu10k1: Unknown symbol snd_pcm_lib_preallocate_pages
snd_emu10k1: Unknown symbol snd_util_memhdr_free
snd_emu10k1: Unknown symbol snd_device_free
snd_emu10k1: Unknown symbol snd_dma_alloc_pages
snd_emu10k1: Unknown symbol snd_pcm_period_elapsed
snd_emu10k1: Unknown symbol __snd_util_memblk_new
snd_emu10k1: Unknown symbol snd_pcm_format_width
|
Now, as the topic said, this started happening after an upgrade from gcc 3.3.6 to 3.4.5, so I thought it was probably a problem with the kernel being compiled with 3.3.6. I have tried recompiling, doing a distclean and then compiling, every thing I can think of. /proc/version is showing that the kernel is compiled with 3.4, and modinfo for every module matches, weather its a different 3rd party one (such as the nvidia), or one that was compiled with the kernel (checked usblp).
now, currently I can get the modules to load seperatly, but having these errors crop up ever single boot is annoying. I have thought possible I needed to try and recompile module-init-tools, but that should have been done durring the upgrade procedure (I did the upgrade using emerge -e).
if there is any more info needed about the problem, let me know. _________________ Xipher |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
EzInKy Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/owner.gif)
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Wed Mar 01, 2006 8:31 pm Post subject: |
|
|
Well the error sure looks like it's telling you the kernel and the modules were built with different compilers. Did you use clean sources or could you perhaps have some old kernel object files lying around that didn't get rebuilt? _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Xipher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2004 Posts: 24
|
Posted: Wed Mar 01, 2006 9:23 pm Post subject: |
|
|
Yea, I had thought that could be a problem, so I did a make distclean, and recompiled, and then rebooted, remerged alsa-driver, and still seem to be getting the same error. Might have to try remerging the kernel sources I guess. _________________ Xipher |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
EzInKy Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/owner.gif)
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Wed Mar 01, 2006 9:32 pm Post subject: |
|
|
Xipher wrote: | Yea, I had thought that could be a problem, so I did a make distclean, and recompiled, and then rebooted, remerged alsa-driver, and still seem to be getting the same error. Might have to try remerging the kernel sources I guess. |
You could do that or...
Code: |
cd /usr/src/linux
cp ./.config ../
make mrproper
mv ../.config ./
|
...which should ensure a clean build. If that doesn't work then you might want to try unemerging the alsa-driver and building them in the kernel itself. _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Xipher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2004 Posts: 24
|
Posted: Sun Mar 05, 2006 9:04 am Post subject: |
|
|
EDIT:!
found out my stupid mistake. next time, I need to remeber to clean out the /lib/modules/`uname -r`/ directory *Smacks forehead* _________________ Xipher |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AtteB n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Jun 2005 Posts: 15
|
Posted: Wed Mar 08, 2006 6:58 am Post subject: |
|
|
Hi I'm having the same issue could you please summarize what you did? or is it just to make a rm -Fr in /lib/modules/2.6.11-gentoo-r9 dir? how about symlinks and directories? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Xipher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2004 Posts: 24
|
Posted: Wed Mar 08, 2006 9:48 pm Post subject: |
|
|
ok, I went into the module directory for the kernel, and simply removed every thing (alsa-driver etc). I then redid make modules_install in /usr/src/linux, and remerged alsa-driver, this cleaned it up for me. if you have any other drivers (like nvidia-kernel) those will need to be reinstalled as well. all the subdirectories were recreated for me during make modules_install _________________ Xipher |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|