02.06.2010 14:14, Takashi Iwai пишет:
At Wed, 2 Jun 2010 10:22:39 +0200, Uros Bizjak wrote:
On Tue, Jun 1, 2010 at 9:30 PM, Mads Kiilerichmads@kiilerich.com wrote:
Trying to compile alsa-driver-1.0.23 on Fedora 13, I got following failure:
gmake -C /lib/modules/2.6.33.5-112.fc13.x86_64/source SUBDIRS=/home/uros/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules gmake[1]: Entering directory `/usr/src/kernels/2.6.33.5-112.fc13.x86_64' Makefile:535: /usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch//Makefile: No such file or directory gmake[1]: *** No rule to make target `/usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch//Makefile'. Stop. gmake[1]: Leaving directory `/usr/src/kernels/2.6.33.5-112.fc13.x86_64' gmake: *** [compile] Error 2
I have installed required kernel-devel package.
Am I missing something else to successfully compile alsa-kernel drivers?
Uros, I don't think you are missing anything - it seems like there is a real problem with the Fedora kernels and the latest alsa drivers.
alsa-compile.sh as described on http://www.alsa-project.org/main/index.php/Driver_Compilation used to work for me on Fedora 12 and check for all dependencies, but now I get the same error.
The Makefile fails in line 535 because SRCARCH (and ARCH) is empty even though SUBARCH is correctly (on my machine) set to i386. I don't know why or how it usually works.
Thanks!
I have to note, that adding ARCH=x86 to make command also doesn't fly. Also, I have found [1], where the same problem is reported.
So, I guess I'll just lean back and wait for things to get resolved... I can provide further information on request, though.
Could you try the latest alsa-driver snapshot tarball below? ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
Takashi _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Same error. If ARCH=x86 added then the error is the following:
make -C /lib/modules/2.6.33.5-112.fc13.x86_64/build SUBDIRS=/mnt/d/distr/alsa-driver CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/kernels/2.6.33.5-112.fc13.x86_64' CC [M] /mnt/d/distr/alsa-driver/acore/memory_wrapper.o In file included from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: /mnt/d/distr/alsa-driver/include/adriver.h:293:1: warning: "GFP_DMA32" redefined In file included from include/linux/kmod.h:22, from include/linux/module.h:13, from /mnt/d/distr/alsa-driver/include/adriver.h:63, from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: include/linux/gfp.h:116:1: warning: this is the location of the previous definition In file included from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: /mnt/d/distr/alsa-driver/include/adriver.h:864: error: static declaration of ‘jiffies_to_msecs’ follows non-static declaration include/linux/jiffies.h:296: note: previous declaration of ‘jiffies_to_msecs’ was here /mnt/d/distr/alsa-driver/include/adriver.h:883: error: static declaration of ‘msecs_to_jiffies’ follows non-static declaration include/linux/jiffies.h:298: note: previous declaration of ‘msecs_to_jiffies’ was here In file included from /mnt/d/distr/alsa-driver/include/adriver.h:984, from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: include/linux/pci.h:724: error: expected identifier or ‘(’ before numeric constant In file included from /usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch/x86/include/asm/pci.h:4, from include/linux/pci.h:1145, from /mnt/d/distr/alsa-driver/include/adriver.h:984, from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: include/linux/mm.h:269: error: conflicting types for ‘snd_compat_vmalloc_to_page’ /mnt/d/distr/alsa-driver/include/adriver.h:785: note: previous declaration of ‘snd_compat_vmalloc_to_page’ was here In file included from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: /mnt/d/distr/alsa-driver/include/adriver.h: In function ‘snd_pci_orig_save_state’: /mnt/d/distr/alsa-driver/include/adriver.h:1233: error: too many arguments to function ‘pci_save_state’ /mnt/d/distr/alsa-driver/include/adriver.h: In function ‘snd_pci_orig_restore_state’: /mnt/d/distr/alsa-driver/include/adriver.h:1237: error: too many arguments to function ‘pci_restore_state’ In file included from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: /mnt/d/distr/alsa-driver/include/adriver.h:1638:1: warning: "page_to_pfn" redefined In file included from /usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch/x86/include/asm/page.h:58, from /usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch/x86/include/asm/processor.h:18, from include/linux/prefetch.h:14, from include/linux/list.h:6, from include/linux/module.h:9, from /mnt/d/distr/alsa-driver/include/adriver.h:63, from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: include/asm-generic/memory_model.h:72:1: warning: this is the location of the previous definition In file included from /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:19: /mnt/d/distr/alsa-driver/include/adriver.h: At top level: /mnt/d/distr/alsa-driver/include/adriver.h:1805: error: static declaration of ‘pci_ioremap_bar’ follows non-static declaration include/linux/pci.h:1292: note: previous declaration of ‘pci_ioremap_bar’ was here /mnt/d/distr/alsa-driver/acore/memory_wrapper.c: In function ‘snd_compat_vmalloc_to_page’: /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:38: error: implicit declaration of function ‘VMALLOC_VMADDR’ /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:40: error: ‘init_mm’ undeclared (first use in this function) /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:40: error: (Each undeclared identifier is reported only once /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:40: error: for each function it appears in.) /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:43: warning: passing argument 1 of ‘pmd_offset’ from incompatible pointer type /usr/src/kernels/2.6.33.5-112.fc13.x86_64/arch/x86/include/asm/pgtable.h:425: note: expected ‘struct pud_t *’ but argument is of type ‘struct pgd_t *’ /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:44: error: implicit declaration of function ‘pte_offset’ /mnt/d/distr/alsa-driver/acore/memory_wrapper.c:44: warning: assignment makes pointer from integer without a cast make[3]: *** [/mnt/d/distr/alsa-driver/acore/memory_wrapper.o] Error 1 make[2]: *** [/mnt/d/distr/alsa-driver/acore] Error 2 make[1]: *** [_module_/mnt/d/distr/alsa-driver] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.33.5-112.fc13.x86_64' make: *** [compile] Error 2