来信收到,谢谢!
------ 原始邮件 ------
From:"Christopher Harvey"<char...@matrox.com>;
Date:2011年9月16日(星期五) 凌晨3:33
To:"directfb-dev"<directfb-dev@directfb.org>;
Subject:[directfb-dev] git down? ARM compilation errors?

I can't seem to run a

git clone git://git.directfb.org/git/directfb/core/DirectFB.git

It's been that way for me for about 2 weeks.

On another note:
While cross compiling DirectFB-1.5.3 for ARM I noticed that the file 
atomic.h gets included into C++ files, but GCC refuses to compile it 
because

(line 188)
static inline int _D__atomic_cmpxchg(volatile int *ptr,
                                      int old,
                                      int new)

the 3rd parameter's name is "new" which, of course, is a C++ keyword. 
Renaming it to anything else allows the compilation to continue.

In the file serial.h (line 112):
value = D_SYNC_ADD_AND_FETCH( &counter->value, 1 );
passes DirectSerial::value which is an unsigned long into
atomic.h (line 221)
static inline int _D__atomic_add_return(int i, volatile int *v)
which expects a pointer to an int. The "_D__atomic_add_return" function 
is implemented in assembly which I can't read without constantly 
checking the architecture manual, but the parameter type mismatch 
worries me. (also fails to compile on gcc-4.4.5)

thanks for reading,
Chris

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to