I'm encountering an unusual error when attempting to compile DirectFB 1.5.3 for arm7. The strange thing is that this same error occurs when attempting to cross-compile DirectFB using the CodeSourcery toolchain, and also when attempting to compile using native GCC 4.4, 4.5 and 4.6 on the device. The error is as follows:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -DDATADIR=\"/usr/local/share/directfb-1.5.3\" -DSOPATH=\"/usr/local/lib/libdirectfb-1.5.so.0\" -DMODULEDIR=\"/usr/local/lib/directfb-1.5-0\" "-DBUILDTIME=\"2011-10-20 09:21\"" -D_REENTRANT -Wall -Wno-strict-aliasing -march=armv7-a -O2 -g2 -ffast-math -pipe -march=armv7-a -D_GNU_SOURCE -MT CoreDFB.lo -MD -MP -MF .deps/CoreDFB.Tpo -c CoreDFB.cpp -fPIC -DPIC -o .libs/CoreDFB.o In file included from ../../lib/direct/serial.h:32:0, from ../../src/core/state.h:36, from ../../src/core/graphics_state.h:36, from CoreDFB_includes.h:16, from CoreDFB.h:32, from CoreDFB.cpp:31: ../../lib/direct/atomic.h:188:70: error: expected ',' or '...' before 'new' ../../lib/direct/atomic.h: In function 'int _D__atomic_cmpxchg(volatile int*, int, int)': ../../lib/direct/atomic.h:199:40: error: expected type-specifier before ')' token In file included from ../../src/core/state.h:36:0, from ../../src/core/graphics_state.h:36, from CoreDFB_includes.h:16, from CoreDFB.h:32, from CoreDFB.cpp:31: ../../lib/direct/serial.h: In function 'void direct_serial_init_from_counting(DirectSerial*, DirectSerial*)': ../../lib/direct/serial.h:112:14: error: invalid conversion from 'void*' to 'volatile int*' [-fpermissive] ../../lib/direct/atomic.h:221:19: error: initializing argument 2 of 'int _D__atomic_add_return(int, volatile int*)' [-fpermissive] make[3]: *** [CoreDFB.lo] Error 1 make[3]: Leaving directory `/opt/DirectFB-1.5.3/src/core' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/DirectFB-1.5.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/DirectFB-1.5.3' make: *** [all] Error 2 When attempting to cross-compile, I pass the following to configure: CFLAGS="-march=armv7-a" CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ AR=arm-none-linux-gnueabi-ar RANLIB=arm-none-linux-gnueabi-ranlib LD=arm-none-linux-gnueabi-ld ./autogen.sh --target=arm-linux --host=i686-pc-linux-gnu --enable-pvr2d When attempting to compile on the device, the following configure is used: CFLAGS="-march=armv7-a" CXXFLAGS="-march=armv7-a" ./configure If anyone has any idea of what might be causing this, I'd appreciate it if you could let me know. Also, are there instructions anywhere on how to compile DirectFB for arm devices? Please let me know. Thanks, Jake _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users