On Fri, 25 Sep 2009 10:57:06 +0200, "Vincent R." <forumer@xxxxxxxxxxxxxxx> wrote: > On Thu, 24 Sep 2009 22:56:52 -0700, Ian Lance Taylor <iant@xxxxxxxxxx> > wrote: >> "Vincent R." <forumer@xxxxxxxxxxxxxxx> writes: >> >>> I am trying to compile libffi-3.0.8 using cegcc-4.4.0 and there are > some >>> compilation errors >>> with assembler file: >>> >>> arm-mingw32ce-gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src >>> -I. -I./include -Iinclude -I./src -g -O2 -MT src/arm/sysv.lo -MD -MP > -MF >>> src/arm/.deps/sysv.Tpo -c src/arm/sysv.S -DDLL_EXPORT -DPIC -o >>> src/arm/.libs/sysv.o >>> src/arm/sysv.S: Assembler messages: >>> src/arm/sysv.S:138: Warning: .type pseudo-op used outside of > .def/.endef >>> ignored. >> >> The code is using ELF-style pseudo-ops, but the assembler is looking >> for PE-style. You will need to port the code to support PE. Actually >> you will be fine if you simply delete the .type and .size pseudo-ops. > > Ok I have removed .size .type and .pad but still some errors : > > arm-mingw32ce-gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src > -I. -I./include -Iinclude -I./src -g -O2 -MT src/arm/sysv.lo -MD -MP -MF > src/arm/.deps/sysv.Tpo -c src/arm/sysv.S -DDLL_EXPORT -DPIC -o > src/arm/.libs/sysv.o > src/arm/sysv.S: Assembler messages: > src/arm/sysv.S:138: Error: bad instruction `ffi_call_sysv,%function' > src/arm/sysv.S:223: Error: bad instruction > `ffi_call_sysv,.ffi_call_SYSV_end-ffi_call_SYSV' > src/arm/sysv.S:233: Error: bad instruction `ffi_closure_sysv,%function' > src/arm/sysv.S:295: Error: bad instruction > `ffi_closure_sysv,.ffi_closure_SYSV_end-ffi_closure_SYSV' > make[2]: *** [src/arm/sysv.lo] Error 1 Ok I think I found ! thanks