Compiling newlib-1.20 for ARM/CYGWIN
Metin Karatas
meka.gmci@googlemail.com
Tue Feb 28 00:18:00 GMT 2012
Hi,
I try to compile newlib-1.20 for an ARM architecture with CYGWIN. I
get these error:
/../../../newlib-1.20.0/libgloss/arm/.. -g -fshort-wchar -c
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s: Assembler messages:
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:23: Error:
bad instruction `global(_ ##name)'
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:23: Error:
junk at end of line, first unrecognized character is `\'
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:24: Error:
garbage following instruction -- `swi #SYS_##name'
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:24: Error:
junk at end of line, first unrecognized character is `\'
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:25: Error:
junk at end of line, first unrecognized character is `\'
../../../../newlib-1.20.0/libgloss/arm/linux-syscalls0.s:26: Error:
bad instruction `size(_ ##name)'
...
I can compile newlib-1.19 without errors.
Here's my configure:
../$NEWLIB_SRC/configure CFLAGS=-fshort-wchar CXXFLAGS=-fshort-wchar
AFLAGS=-fshort-wchar \
--target=$target --prefix=$prefix \
--enable-interwork --enable-multilib \
--disable-newlib-supplied-syscalls \
Any help would be appreciated.
More information about the Newlib
mailing list