ARM assembly fails to build for iOS/ARM

Sebastian Dröge slomo at
Mon Mar 10 12:24:39 UTC 2014


the ARM assembly in version 5.1.3 fails to build for iOS/ARM. The MachO
assembly does not know anything about .protected (or .hidden
or .internal for that matter).

Workaround is to build with --disable-assembly but that's of course not
ideal. 5.0.5 had no ARM assembly for that part of the code and thus
built fine too.

Compiler output:
/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" clang -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mode1o | sed 's/_$//'`  -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/  -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/ -miphoneos-version-min=5.1 -Wall -g -Os -Wno-error=format-nonliteral   `test -f 'mode1o.asm' || echo './'`mode1o.asm
libtool: compile:  ../mpn/m4-ccas --m4=m4 clang -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/ -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/ -miphoneos-version-min=5.1 -Wall -g -Os -Wno-error=format-nonliteral mode1o.asm  -fno-common -DPIC -o .libs/mode1o.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mode1o -DPIC mode1o.asm >tmp-mode1o.s
 clang -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/ -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/ -miphoneos-version-min=5.1 -Wall -g -Os -Wno-error=format-nonliteral tmp-mode1o.s -fno-common -DPIC -o .libs/mode1o.o
tmp-mode1o.s:58:2: error: unknown directive
 .protected ___gmp_binvert_limb_table
make: *** [mode1o.lo] Error 1

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gmp-bugs mailing list