Hi,
I run into problem compiling l4linux. I've been able to compile it many times before. But after few weeks while I was not with l4linux stuff, I run into problem when building it. I'm pretty sure it will be some "stupid" mistake I've made, but since I need to quickly finish some testing, I would really appreciate any advise...
Here is configuration I use: Debian {sarge, etch}; gcc version: 3.{3,4}, l4linux-2.6-17 Everything is mainly based on chenggh's kickstart and tarball he provided. (http://os.inf.tu-dresden.de/pipermail/l4-hackers/2007/002732.html)
< l4linux make log start > include/asm-l4/i386-arch/asm/alternative.h:7: error: syntax error before "u8" include/asm-l4/i386-arch/asm/alternative.h:7: warning: no semicolon at end of struct or union include/asm-l4/i386-arch/asm/alternative.h:8: warning: type defaults to `int' in declaration of `replacement' include/asm-l4/i386-arch/asm/alternative.h:8: warning: data definition has no type or storage class include/asm-l4/i386-arch/asm/alternative.h:9: error: syntax error before "cpuid" include/asm-l4/i386-arch/asm/alternative.h:9: warning: type defaults to `int' in declaration of `cpuid' include/asm-l4/i386-arch/asm/alternative.h:9: warning: data definition has no type or storage class include/asm-l4/i386-arch/asm/alternative.h:10: error: syntax error before "instrlen" include/asm-l4/i386-arch/asm/alternative.h:10: warning: type defaults to `int' in declaration of `instrlen' include/asm-l4/i386-arch/asm/alternative.h:10: warning: data definition has no type or storage class include/asm-l4/i386-arch/asm/alternative.h:11: error: syntax error before "replacementlen" include/asm-l4/i386-arch/asm/alternative.h:11: warning: type defaults to `int' in declaration of `replacementlen' include/asm-l4/i386-arch/asm/alternative.h:11: warning: data definition has no type or storage class include/asm-l4/i386-arch/asm/alternative.h:12: error: syntax error before "pad" include/asm-l4/i386-arch/asm/alternative.h:12: warning: type defaults to `int' in declaration of `pad' include/asm-l4/i386-arch/asm/alternative.h:12: warning: data definition has no type or storage class In file included from include/asm-l4/i386-arch/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/interrupt.h:9, from arch/l4/l4lxlib/l4env/irq_multi.c:12: include/asm-l4/l4-arch/asm/processor.h:154: error: `cpuid' redeclared as different kind of symbol include/asm-l4/i386-arch/asm/alternative.h:9: error: previous declaration of `cpuid' include/asm-l4/l4-arch/asm/processor.h:154: warning: `cpuid' was declared `extern' and later `static' make[1]: *** [arch/l4/l4lxlib/l4env/irq_multi.o] Error 1 make: *** [arch/l4/l4lxlib/l4env] Error 2 < l4linux make log end >
Thank you,
Eduard Benes
On Sun Apr 08, 2007 at 22:53:20 +0200, Eduard Benes wrote:
I run into problem compiling l4linux. I've been able to compile it many times before. But after few weeks while I was not with l4linux stuff, I run into problem when building it. I'm pretty sure it will be some "stupid" mistake I've made, but since I need to quickly finish some testing, I would really appreciate any advise...
Here is configuration I use: Debian {sarge, etch}; gcc version: 3.{3,4}, l4linux-2.6-17 Everything is mainly based on chenggh's kickstart and tarball he provided. (http://os.inf.tu-dresden.de/pipermail/l4-hackers/2007/002732.html)
Could you also show the gcc call? (make V=1)
< l4linux make log start > include/asm-l4/i386-arch/asm/alternative.h:7: error: syntax error before "u8" include/asm-l4/i386-arch/asm/alternative.h:7: warning: no semicolon at end of struct or union include/asm-l4/i386-arch/asm/alternative.h:8: warning: type defaults to `int' in declaration of `replacement' include/asm-l4/i386-arch/asm/alternative.h:8: warning: data definition has no type or storage class
I guess gcc doesn't like the u8 because it doesn't know what it means. Does it help if you add '#include <linux/types.h>' in the beginning of irq_multi.c? If it doesn't go away now, please also show your .config.
Adam
l4-hackers@os.inf.tu-dresden.de