arm cross-compiler and asm errors

Vincent R. forumer@smartmobili.com
Thu Sep 24 19:27:00 GMT 2009


Hi,

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.
src/arm/sysv.S:138: Error: junk at end of line, first unrecognized
character is `f'
src/arm/sysv.S:223: Warning: .size pseudo-op used outside of .def/.endef
ignored.
src/arm/sysv.S:223: Error: junk at end of line, first unrecognized
character is `f'
src/arm/sysv.S:233: Warning: .type pseudo-op used outside of .def/.endef
ignored.
src/arm/sysv.S:233: Error: junk at end of line, first unrecognized
character is `f'
src/arm/sysv.S:239: Error: unknown pseudo-op: `.pad'
src/arm/sysv.S:295: Warning: .size pseudo-op used outside of .def/.endef
ignored.
src/arm/sysv.S:295: Error: junk at end of line, first unrecognized
character is `f'
make[2]: *** [src/arm/sysv.lo] Error 1
make[2]: Leaving directory
`/cygdrive/z/cygming-home/Realeyes/projects/gnustep/libffi-3.0.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/z/cygming-home/Realeyes/projects/gnustep/libffi-3.0.8'
make: *** [all] Error 2

When I look at asm file I don't know why compiler is not happy :

137:        @ r0:   ffi_prep_args
138:        @ r1:   &ecif
139:        @ r2:   cif->bytes
140:        @ r3:   fig->flags
141:        @ sp+0: ecif.rvalue
142:        @ sp+4: fn
...

221:        .ffi_call_SYSV_end:
222:               UNWIND .fnend
223:               .size   
CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)137:

...
239:        .pad #16
...

293:        .ffi_closure_SYSV_end:
294:                UNWIND .fnend
295:                .size   
CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV)

Any idea ?



More information about the Gcc-help mailing list