From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 08 Oct 2004 01:54:56 +0200 Subject: [U-Boot-Users] compiling error In-Reply-To: <1097170069.2908.15.camel@BART> (Alessio Raccis's message of "07 Oct 2004 19:27:50 +0200") References: <1097170069.2908.15.camel@BART> Message-ID: <87brfegk33.fsf@deepthought.outer.space.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Alessio, > arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 > -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/ > u-boot-0.4.8_new/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/ > lib/gcc-lib/i386-redhat-linux/3.2.2/include -pipe -DCONFIG_ARM -D__ARM__ > -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes -I. -DSK_USE_CSUM -g -Os > -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float > -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/root/u-boot-0.4.8_new/include > -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc-lib/ > i386-redhat-linux/3.2.2/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march= > armv4 -c -o uboot_drv.o uboot_drv.c > In file included from /root/u-boot-0.4.8_new/include/common.h:40, > from uboot_drv.c:26: > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:43: parse error > before `__gnuc_va_list' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:43: warning: data > definition has no type or storage class > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:110: parse error > before `va_list' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:110: warning: data > definition has no type or storage class > In file included from uboot_drv.c:26: > /root/u-boot-0.4.8_new/include/common.h:438: parse error before `va_list' > /root/u-boot-0.4.8_new/include/common.h:438: warning: function declaration > isn't a prototype > /root/u-boot-0.4.8_new/include/common.h:468: parse error before `va_list' > /root/u-boot-0.4.8_new/include/common.h:468: warning: function declaration > isn't a prototype > make[1]: *** [uboot_drv.o] Error 1 > make[1]: Leaving directory `/root/u-boot-0.4.8_new/drivers/sk98lin' > make: *** [subdirs] Error 1 First - U-Boot 0.4.8 is _old_ try the CVS version Second - it looks like your arm-linux cross-compiler picks up i386 headers on the way which is not very friendly. Try a different tool chain. > these are my compilers: > > gcc-3.2.2-5 Just out of curiosity where does this come from? The -5 hints at a distribution and not at self built toolchains so I just wondered. Cheers Detlev -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot