[U-Boot-Users] need help regarding u-boot for csb226

George G. Davis davis_g at comcast.net
Thu Sep 11 18:34:10 CEST 2003


renjithgopal wrote:
> Hello
> I am a beginner
> I was trying to compie u-boot for csb226. but it is giving some compiler error.
>  
> make[1]: Entering directory `/uboot/lib_generic'
> arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xa1fe0000 -I/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes -c -o crc32.o crc32.c
> as: unrecognized option `-marmv4'
> In file included from /uboot/include/common.h:77,
>                  from crc32.c:12:
> /uboot/include/image.h:148: output pipe has been closed
> cpp0: output pipe has been closed
> make[1]: *** [crc32.o] Error 1
> make[1]: Leaving directory `/uboot/lib_generic'
> make: *** [subdirs] Error 1
> 
> but when i asked some of my friends they told it should work fine with out any problem..
> i am using u-boot 0.4.6
> and arm-linux-gcc 2.95.3
> 
> i am also attaching the log of compilation ...
> please tell me what to do?

You apparently have issues with your cross gcc+binutils installation and/or
forgot to set your PATH to point to your tools. I just did the following:

	PATH=${PATH}:/usr/local/arm/2.95.3/bin make distclean
	PATH=${PATH}:/usr/local/arm/2.95.3/bin make csb226_config
	PATH=${PATH}:/usr/local/arm/2.95.3/bin make all

and do not encounter the get the "as: unrecognized option `-marmv4'" error.

However, it looks like someone has recently broken the build since I get
this error now with recent CVS (as of today +/- and hour):

make[1]: Entering directory `/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/drivers/sk98lin'
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xa1fe0000 -I/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc-lib/i386-redhat-linux/2.96/include -pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=strongarm1100 -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=0xa1fe0000 -I/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc-lib/i386-redhat-linux/2.96/include -pipe  -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=strongarm1100  -c -o skge.o skge.c
In file included from /Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include/common.h:40,
                  from u-boot_compat.h:30,
                  from h/skdrv1st.h:158,
                  from skge.c:349:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: parse error before `__gnuc_va_list'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:43: warning: data definition has no type or storage class
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:110: parse error before `va_list'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h:110: warning: data definition has no type or storage class
In file included from u-boot_compat.h:30,
                  from h/skdrv1st.h:158,
                  from skge.c:349:
/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include/common.h:438: parse error before `va_list'
/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include/common.h:438: warning: function declaration isn't a prototype
/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include/common.h:468: parse error before `va_list'
/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/include/common.h:468: warning: function declaration isn't a prototype
skge.c:4732: warning: `DumpMsg' defined but not used
skge.c:4818: warning: `DumpLong' defined but not used
make[1]: *** [skge.o] Error 1
make[1]: Leaving directory `/Projects/OSS/cvs.sourceforge.net/u-boot/u-boot/drivers/sk98lin'
make: *** [subdirs] Error 1

> 
> 
> 
> 
> Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
> 
>  Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
> 
> Bid for for Air Tickets on Air Sahara Flights at Prices Lower Than Before. Just log on to http://airsahara.indiatimes.com and Bid Now!





More information about the U-Boot mailing list