Re: [arm-gnu] 2005-Q1 release and RVDS 2.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] 2005-Q1 release and RVDS 2.2



On Thu, 2005-06-16 at 23:27, Ioi K Lam wrote:
> Hi,
> 
> I am trying to build a linux app using RVDS 2.2 and link it with the 
> linker from the 2005-Q1 release. So far I am able to compile and link a 
> dummy program with an empty main() function. However, as soon as I try 
> to use <stdio.h>, I am seeing this error:
> 
> --------------------------------------------------------------------
> GCCROOT = /export1/ioi/codesourcery/2005-q1
> CFLAGS = -I$(GCCROOT)/arm-none-linux-gnueabi/libc/usr/include \
>           -I$(GCCROOT)/lib/gcc/arm-none-linux-gnueabi/3.4.3/include \
>           -J --gnu -Ono-known-library --no-hide-all
> 
> helloworld.o: helloworld.c
> 	armcc -O1 $(CFLAGS) -c $< -o $@
> 
> --------------------------------------------------------------------
> 
> "/export1/ioi/codesourcery/2005-q1/lib/gcc/arm-none-linux-gnueabi/3.4.3/include/stdarg.h", 
> line 43: Error:  #20: identifier "__builtin_va_list" is undefined
>    typedef __builtin_va_list __gnuc_va_list;
>            ^
> 
> Does that mean the --gnu flag in RVDS is not really 100% compilant with 
> gcc 3.4?

You need to arrange things so that 'stdarg.h' is picked up from the RVCT
include directories.  RVCT cannot handle GNU's implementation of this
header, but it can handle its own in conjunction with other headers.

R.