* ALSA 1.0.13 + 2.6.19rc5 configuration/compilation error
@ 2006-11-19 10:58 Krzysztof Helt
2006-11-19 11:15 ` James Courtier-Dutton
2006-11-20 10:01 ` Takashi Iwai
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Helt @ 2006-11-19 10:58 UTC (permalink / raw)
To: alsa-devel
Hello,
I tried to build an alsa 1.0.13 with kernel 2.6.19rc5 for ARM.
Configuration worked ok, but then compilation failed. I used
these commands:
./configure ARCH=arm --with-cross=arm-linux- \
--with-kernel=/usr/src/linux-2.6.18
make ARCH=arm
The error returned:
make -C /usr/src/linux-2.6.18 SUBDIRS=/usr/src/alsa-driver-1.0.13
CPP="arm-linux-gcc -E" CC="arm-linux-gcc " modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
CC [M] /usr/src/alsa-driver-1.0.13/acore/hwdep.o
In file included from
/usr/src/alsa-driver-1.0.13/include/sound/driver.h:46,
from /usr/src/alsa-driver-1.0.13/acore/hwdep.c:22:
/usr/src/alsa-driver-1.0.13/include/adriver.h:742: error:
redefinition of 'jiffies_to_msecs'
include/linux/jiffies.h:268: error: previous definition of
'jiffies_to_msecs' was here
/usr/src/alsa-driver-1.0.13/include/adriver.h:761: error:
redefinition of 'msecs_to_jiffies'
include/linux/jiffies.h:290: error: previous definition of
'msecs_to_jiffies' was here
make[3]: *** [/usr/src/alsa-driver-1.0.13/acore/hwdep.o] Error 1
make[2]: *** [/usr/src/alsa-driver-1.0.13/acore] Error 2
make[1]: *** [_module_/usr/src/alsa-driver-1.0.13] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [compile] Error 2
I traced the problem back to configuration script. It uses the
linux/config.h in few tests programs and this file does not exist
in the $KERNEL/include/linux directory.
Here is a snippet from configuration log:
configure:7720: checking for msecs_to_jiffies
configure:7751: arm-linux-gcc -c -Wall -fno-strict-aliasing -g
-O2 -I/usr/src/linux-2.6.18/include -nostdinc -iwithprefix
include -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(dummy)
-Iinclude conftest.c >&5
conftest.c:20:26: linux/config.h: No such file or directory
In file included from /usr/src/linux-2.6.18/include/linux/bitops.h:9,
from
/usr/src/linux-2.6.18/include/linux/kernel.h:15,
from
/usr/src/linux-2.6.18/include/linux/jiffies.h:5,
from conftest.c:21:
/usr/src/linux-2.6.18/include/asm/bitops.h: In function
`____atomic_set_bit':
/usr/src/linux-2.6.18/include/asm/bitops.h:40: warning: implicit
declaration of function `local_irq_save'
/usr/src/linux-2.6.18/include/asm/bitops.h:42: warning: implicit
declaration of function `local_irq_restore'
In file included from conftest.c:21:
/usr/src/linux-2.6.18/include/linux/jiffies.h:33:3: #error You lose.
I hope someone can point how to fix it (or fix it).
Krzysztof
----------------------------------------------------
WROCŁAWSKIE TARGI PRACY! Największe Targi Pracy w Polsce, ponad 150
firm, tysiące ofert pracy - Wrocław 22.11.2006 Hala Ludowa - Zobacz:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd36.html&sid=935
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-20 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-19 10:58 ALSA 1.0.13 + 2.6.19rc5 configuration/compilation error Krzysztof Helt
2006-11-19 11:15 ` James Courtier-Dutton
2006-11-20 10:01 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.