Re: [Alsa-user] Alsa build errors on HP t5325
Brought to you by:
perex
|
From: Jeffrey L. <j.l...@ma...> - 2011-08-01 09:15:01
|
Hi,
As addendum, this error comes up when compiling the "alsa-driver" source.
Jeffrey
Op 01-08-11 10:23, Jeffrey Langerak schreef:
> Hi,
>
> I'm new to this mailing list, therefore it's possible that I need to
> supply additional information. If so, please ask, so I can supply it :).
>
> I have a HP t5325 thin client, powered by the Marvell Kirkwood ARM
> SoC. This device has a soundcard onboard, which ALSA supports as of
> 1.0.24. I run the 3.0 mainline kernel with ALSA support as a module
> and support for the ALSA t5325 asoc.
>
> When downloading the 1.0.24 source and setting the ARCH=arm option
> (else it won't see my architecture in the kernel sources), I'm stuck
> on a "make" error, being:
>
> make[3]: Leaving directory
> `/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/usb/usx2y'
> make[2]: Leaving directory
> `/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/usb'
> make[1]: Leaving directory
> `/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70'
> make -C /lib/modules/3.0.0/build
> SUBDIRS=/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70 CPP="gcc -E"
> CC="gcc" modules
> make[1]: Entering directory `/root/linux-3.0'
> CC [M]
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.o
> In file included from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/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
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:63,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> include/linux/gfp.h:147:1: warning: this is the location of the
> previous definition
> In file included from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:752:
> 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
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:771:
> 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 include/linux/scatterlist.h:6,
> from include/linux/dma-mapping.h:7,
> from include/asm-generic/pci-dma-compat.h:7,
> from /root/linux-3.0/arch/arm/include/asm/pci.h:5,
> from include/linux/pci.h:1293,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:872,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> include/linux/mm.h:290: error: conflicting types for
> 'snd_compat_vmalloc_to_page'
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:673:
> note: previous declaration of 'snd_compat_vmalloc_to_page' was here
> In file included from /root/linux-3.0/arch/arm/include/asm/pci.h:5,
> from include/linux/pci.h:1293,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:872,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> include/asm-generic/pci-dma-compat.h:110: error: expected identifier
> or '(' before numeric constant
> In file included from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h: In
> function 'snd_pci_orig_save_state':
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1121:
> error: too many arguments to function 'pci_save_state'
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h: In
> function 'snd_pci_orig_restore_state':
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1125:
> error: too many arguments to function 'pci_restore_state'
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1125:
> error: void value not ignored as it ought to be
> In file included from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1526:1:
> warning: "page_to_pfn" redefined
> In file included from /root/linux-3.0/arch/arm/include/asm/memory.h:304,
> from /root/linux-3.0/arch/arm/include/asm/system.h:165,
> from /root/linux-3.0/arch/arm/include/asm/bitops.h:27,
> from include/linux/bitops.h:22,
> from include/linux/kernel.h:17,
> from include/linux/cache.h:4,
> from include/linux/time.h:7,
> from include/linux/stat.h:60,
> from include/linux/module.h:10,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:63,
> from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/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
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h: At
> top level:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1697:
> error: static declaration of 'pci_ioremap_bar' follows non-static
> declaration
> include/linux/pci.h:1444: note: previous declaration of
> 'pci_ioremap_bar' was here
> In file included from
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:19:
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/include/adriver.h:1927:
> error: static declaration of 'vzalloc' follows non-static declaration
> include/linux/vmalloc.h:54: note: previous declaration of 'vzalloc'
> was here
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:
> In function 'snd_compat_vmalloc_to_page':
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:38:
> error: implicit declaration of function 'VMALLOC_VMADDR'
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:40:
> error: 'init_mm' undeclared (first use in this function)
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:40:
> error: (Each undeclared identifier is reported only once
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:40:
> error: for each function it appears in.)
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:44:
> error: implicit declaration of function 'pte_offset'
> /root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.c:44:
> warning: assignment makes pointer from integer without a cast
> make[3]: ***
> [/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore/memory_wrapper.o] Error
> 1
> make[2]: *** [/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70/acore]
> Error 2
> make[1]: *** [_module_/root/alsa-driver-1.0.24.47.gfa552.1132.g89a70]
> Error 2
> make[1]: Leaving directory `/root/linux-3.0'
> make: *** [compile] Error 2
>
> The section in my kernel config regarding sound is as follows:
>
> CONFIG_SOUND=m
> # CONFIG_SOUND_OSS_CORE is not set
> CONFIG_SND=m
> CONFIG_SND_TIMER=m
> CONFIG_SND_PCM=m
> CONFIG_SND_JACK=y
> CONFIG_SND_SEQUENCER=m
> # CONFIG_SND_SEQ_DUMMY is not set
> # CONFIG_SND_MIXER_OSS is not set
> # CONFIG_SND_PCM_OSS is not set
> # CONFIG_SND_SEQUENCER_OSS is not set
> # CONFIG_SND_HRTIMER is not set
> # CONFIG_SND_DYNAMIC_MINORS is not set
> CONFIG_SND_SUPPORT_OLD_API=y
> CONFIG_SND_VERBOSE_PROCFS=y
> # CONFIG_SND_VERBOSE_PRINTK is not set
> # CONFIG_SND_DEBUG is not set
> # CONFIG_SND_RAWMIDI_SEQ is not set
> # CONFIG_SND_OPL3_LIB_SEQ is not set
> # CONFIG_SND_OPL4_LIB_SEQ is not set
> # CONFIG_SND_SBAWE_SEQ is not set
> # CONFIG_SND_EMU10K1_SEQ is not set
> # CONFIG_SND_DRIVERS is not set
> # CONFIG_SND_PCI is not set
> CONFIG_SND_ARM=y
> # CONFIG_SND_SPI is not set
> # CONFIG_SND_USB is not set
> CONFIG_SND_SOC=m
> CONFIG_SND_SOC_CACHE_LZO=y
> CONFIG_SND_KIRKWOOD_SOC=m
> CONFIG_SND_KIRKWOOD_SOC_I2S=m
> # CONFIG_SND_KIRKWOOD_SOC_OPENRD is not set
> CONFIG_SND_KIRKWOOD_SOC_T5325=m
> CONFIG_SND_SOC_I2C_AND_SPI=m
> # CONFIG_SND_SOC_ALL_CODECS is not set
> CONFIG_SND_SOC_ALC5623=m
> # CONFIG_SOUND_PRIME is not set
> CONFIG_HID_SUPPORT=y
> CONFIG_HID=y
> CONFIG_HIDRAW=y
> Am I missing certain settings in my kernel config? I've configured
> ALSA with:
> ./configure --with-cards=kirkwood-soc-t5325
>
> Kernel output (uname -a):
> Linux t5325.langerak.ath.cx 3.0.0 #1 PREEMPT Sun Jul 31 17:16:27 UTC
> 2011 armv5tel GNU/Linux
>
> Gcc version:
> root@t5325:~/linux-3.0# gcc -v
> Using built-in specs.
> Target: arm-linux-gnueabi
> Configured with: ../src/configure -v --with-pkgversion='Debian
> 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.4 --enable-shared --enable-multiarch
> --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix
> --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
> --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
> --enable-objc-gc --disable-sjlj-exceptions --enable-checking=release
> --build=arm-linux-gnueabi --host=arm-linux-gnueabi
> --target=arm-linux-gnueabi
> Thread model: posix
> gcc version 4.4.5 (Debian 4.4.5-8)
>
> Debian version:
> root@t5325:~/linux-3.0# cat /etc/debian_version
> 6.0.2
>
> I've supplied as much info as I could find, should you need more, ask
> so I can supply it!
>
> Thanks in advance!
>
> Best regards,
>
> Jeffrey Langerak
>
>
> ------------------------------------------------------------------------------
> Got Input? Slashdot Needs You.
> Take our quick survey online. Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
>
>
> _______________________________________________
> Alsa-user mailing list
> Als...@li...
> https://lists.sourceforge.net/lists/listinfo/alsa-user
|