configure and compile errors (possibly because of gcc 3.3)
Hi,
I cannot get the latest alsa-driver to compile.
First, I get a configure-error:
[...]
checking whether time.h and sys/time.h may both be included... yes checking whether gcc needs -traditional... no
checking for current directory... /home/hanno/tmp/alsa-driver-0.9.4-alt checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.21-ac1/build checking for kernel version... 2.4.21-ac1 checking for GCC version... Kernel compiler: gcc-Version 3.3 (Gentoo Linux 1.4, PVR 3.3) Used compiler: gcc (GCC) 3.3 (Gentoo Linux 1.4, PVR 3.3) Fatal error: Compiler type does not match
Decoded kernel compiler: type=gcc-Version version=3.3 Decoded used compiler: type=gcc version=3.3
Please, send ./configure output to <[email protected]>
Well, the kernel compiler and the used compiler are definitely the same.
Anyway, after changing the configure-script not to check the compiler, I get a compile error. I tried to fix it, but I didn't find a reason for it:
[...]
gcc -D__KERNEL__ -DMODULE=1 -I/home/hanno/tmp/alsa-driver-0.9.4-alt/include -I/lib/modules/2.4.21-ac1/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD
-DKBUILD_BASENAME=serial_u16550 -c -o serial-u16550.o serial-u16550.c
gcc -D__KERNEL__ -DMODULE=1 -I/home/hanno/tmp/alsa-driver-0.9.4-alt/include -I/lib/modules/2.4.21-ac1/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD
-DKBUILD_BASENAME=serialmidi -c -o serialmidi.o serialmidi.cserialmidi.c: In function open_tty': serialmidi.c:158: error: invalid operands to binary > make[1]: *** [serialmidi.o] Fehler 1 make[1]: Leaving directory /home/hanno/tmp/alsa-driver-0.9.4-alt/drivers' make: *** [compile] Fehler 1
So what can I do? How can I help to fix these issues?
Signature · 1 line
Hanno Böck - [email protected]
Quoted 7 lines · Hanno Böck
Kernel compiler: gcc-Version 3.3 (Gentoo Linux 1.4, PVR 3.3) Used compiler: gcc (GCC) 3.3 (Gentoo Linux 1.4, PVR 3.3) ... Decoded kernel compiler: type=gcc-Version version=3.3 Decoded used compiler: type=gcc version=3.3Well, the kernel compiler and the used compiler are definitely the same.
Well, the identification strings aren't (not exactly).
Quoted 3 lines
checking for kernel version... 2.4.21-ac1
...serialmidi.c: In function `open_tty': serialmidi.c:158: error: invalid operands to binary >
The -ac patch changes the count field's type to atomic_t. Change the offending line to:
if (atomic_read(&tty->count) > 1) {HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Quoted 10 lines
Quoted 8 lines
Kernel compiler: gcc-Version 3.3 (Gentoo Linux 1.4, PVR 3.3) Used compiler: gcc (GCC) 3.3 (Gentoo Linux 1.4, PVR 3.3) ... Decoded kernel compiler: type=gcc-Version version=3.3 Decoded used compiler: type=gcc version=3.3Well, the kernel compiler and the used compiler are definitely the same.
Well, the identification strings aren't (not exactly).
It seems the detection routine of the configure-script contains bugs. I'm not the only one with this problem. There are at least two bugs in the gentoo-bugzilla containing the same problem:
http://bugs.gentoo.org/show_bug.cgi?id=22841
http://bugs.gentoo.org/show_bug.cgi?id=21990
Quoted 9 lines
Quoted 4 lines
checking for kernel version... 2.4.21-ac1
...serialmidi.c: In function `open_tty': serialmidi.c:158: error:
invalid operands to binary >The -ac patch changes the count field's type to
atomic_t. Change the offending line to:if (atomic_read(&tty->count) > 1) {
Okay, now I know how to workaround the bugs for me. Will they be fixed in future alsa-versions?
Signature · 4 lines
Hanno Böck - [email protected] "Immer wenn man die Meinung der Mehrheit teilt, ist es Zeit sich zu besinnen." Mark Twain