[alsa-devel] Alsa-driver compile fail on Ubuntu powerpc
Hi all,
I'm trying to bring up audio on powerpc AMCC 440EPX board with the soundcard Sound Blaster Audigy CA0106. The board is runing Ubuntu 7.04. I configured: ./configure --with-cards=ca0106 --with-sequencer=yes --with-kernel=/usr/src/linux Then I make and get issue:
make[2]: Leaving directory `/root/alsa-driver-1.0.17/usb' make[2]: Entering directory `/root/alsa-driver-1.0.17/misc' make[2]: Leaving directory `/root/alsa-driver-1.0.17/misc' make[1]: Leaving directory `/root/alsa-driver-1.0.17' make -C /usr/src/linux SUBDIRS=/root/alsa-driver-1.0.17 CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/linux' CC [M] /root/alsa-driver-1.0.17/acore/memory_wrapper.o make[1]: Leaving directory `/usr/src/linux' root@sequoia:~/alsa-driver-1.0.17# vim log In file included from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: /root/alsa-driver-1.0.17/include/adriver.h:278:1: warning: "GFP_DMA32" redefined In file included from include/linux/slab.h:14, from include/linux/percpu.h:5, from include/linux/rcupdate.h:41, from include/linux/pid.h:4, from include/linux/sched.h:76, from /root/alsa-driver-1.0.17/include/asm/elf.h:5, from include/linux/elf.h:7, from include/linux/module.h:14, from /root/alsa-driver-1.0.17/include/adriver.h:26, from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: include/linux/gfp.h:105:1: warning: this is the location of the previous definition In file included from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: /root/alsa-driver-1.0.17/include/adriver.h:828: error: static declaration of âjiffies_to_msecsâ follows non-static declaration include/linux/jiffies.h:270: error: previous declaration of âjiffies_to_msecsâ was here /root/alsa-driver-1.0.17/include/adriver.h:847: error: static declaration of âmsecs_to_jiffiesâ follows non-static declaration include/linux/jiffies.h:272: error: previous declaration of âmsecs_to_jiffiesâ was here In file included from /root/alsa-driver-1.0.17/include/adriver.h:944, from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: include/linux/pci.h:594: error: expected identifier or â(â before numeric constant In file included from /root/alsa-driver-1.0.17/include/asm/pci.h:8, from include/linux/pci.h:945, from /root/alsa-driver-1.0.17/include/adriver.h:944, from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: include/linux/mm.h:235: error: conflicting types for âsnd_compat_vmalloc_to_pageâ /root/alsa-driver-1.0.17/include/adriver.h:748: error: previous declaration of âsnd_compat_vmalloc_to_pageâ was here In file included from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: /root/alsa-driver-1.0.17/include/adriver.h: In function âsnd_pci_orig_save_stateâ: /root/alsa-driver-1.0.17/include/adriver.h:1186: error: too many arguments to function âpci_save_stateâ /root/alsa-driver-1.0.17/include/adriver.h: In function âsnd_pci_orig_restore_stateâ: /root/alsa-driver-1.0.17/include/adriver.h:1190: error: too many arguments to function âpci_restore_stateâ In file included from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: /root/alsa-driver-1.0.17/include/adriver.h:1552:1: warning: "page_to_pfn" redefined In file included from /root/alsa-driver-1.0.17/include/asm/page.h:150, from /root/alsa-driver-1.0.17/include/asm/thread_info.h:30, from include/linux/thread_info.h:35, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/stat.h:60, from include/linux/module.h:10, from /root/alsa-driver-1.0.17/include/adriver.h:26, from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: include/asm-generic/memory_model.h:79:1: warning: this is the location of the previous definition /root/alsa-driver-1.0.17/acore/memory_wrapper.c: In function âsnd_compat_vmalloc_to_pageâ: /root/alsa-driver-1.0.17/acore/memory_wrapper.c:44: error: implicit declaration of function âVMALLOC_VMADDRâ /root/alsa-driver-1.0.17/acore/memory_wrapper.c:50: error: implicit declaration of function âpte_offsetâ /root/alsa-driver-1.0.17/acore/memory_wrapper.c:50: warning: assignment makes pointer from integer without a cast make[3]: *** [/root/alsa-driver-1.0.17/acore/memory_wrapper.o] Error 1 make[2]: *** [/root/alsa-driver-1.0.17/acore] Error 2 make[1]: *** [_module_/root/alsa-driver-1.0.17] Error 2
The issue looks like an error in alsa-driver source code. I searched the error information and It seems there're lots of people having the same issue but no helpful answers.
Do anyone knows how to pass the issue?
Thanks,
TaiNguyen
At Thu, 14 Aug 2008 16:25:24 +0700, nguyen tritai wrote:
Hi all,
I'm trying to bring up audio on powerpc AMCC 440EPX board with the soundcard Sound Blaster Audigy CA0106. The board is runing Ubuntu 7.04. I configured: ./configure --with-cards=ca0106 --with-sequencer=yes --with-kernel=/usr/src/linux Then I make and get issue:
make[2]: Leaving directory `/root/alsa-driver-1.0.17/usb' make[2]: Entering directory `/root/alsa-driver-1.0.17/misc' make[2]: Leaving directory `/root/alsa-driver-1.0.17/misc' make[1]: Leaving directory `/root/alsa-driver-1.0.17' make -C /usr/src/linux SUBDIRS=/root/alsa-driver-1.0.17 CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/linux' CC [M] /root/alsa-driver-1.0.17/acore/memory_wrapper.o make[1]: Leaving directory `/usr/src/linux' root@sequoia:~/alsa-driver-1.0.17# vim log In file included from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: /root/alsa-driver-1.0.17/include/adriver.h:278:1: warning: "GFP_DMA32" redefined In file included from include/linux/slab.h:14, from include/linux/percpu.h:5, from include/linux/rcupdate.h:41, from include/linux/pid.h:4, from include/linux/sched.h:76, from /root/alsa-driver-1.0.17/include/asm/elf.h:5, from include/linux/elf.h:7, from include/linux/module.h:14, from /root/alsa-driver-1.0.17/include/adriver.h:26, from /root/alsa-driver-1.0.17/acore/memory_wrapper.c:25: include/linux/gfp.h:105:1: warning: this is the location of the previous definition
This means that configure script didn't detect the things correctly. Doesn't the snapshot version work, too? If no, check config.log about the relevant part checking DMA32.
Takashi
participants (2)
-
nguyen tritai
-
Takashi Iwai