[U-Boot-Users] compiling error

Detlev Zundel dzu at denx.de
Fri Oct 8 01:54:56 CEST 2004


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




More information about the U-Boot mailing list