ARM assembly fails to build for iOS/ARM

Geoff Nixon geoff.nixon at aol.com
Tue Mar 18 03:53:42 UTC 2014


I can confirm this. Neither the Clang integrated assembler nor the 
Apple-provided version of GAS know anything about these pseudo-ops.

This errors on at least 5 .asm files; after that, I stopped trying to 
weed them out. I think --disable-assembly is a must for now.

Geoff Nixon
geoff.nixon at aol.com


-----Original Message-----
From: Sebastian Dröge <slomo at coaxion.net>
To: gmp-bugs <gmp-bugs at gmplib.org>
Sent: Mon, Mar 10, 2014 7:12 am
Subject: ARM assembly fails to build for iOS/ARM


Hi,the ARM assembly in version 5.1.3 fails to build for iOS/ARM. The 
MachOassembly does not know anything about .protected (or .hiddenor 
.internal for that matter).Workaround is to build with 
--disable-assembly but that's of course notideal. 5.0.5 had no ARM 
assembly for that part of the code and thusbuilt 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/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk  -arch armv7 -mcpu=cortex-a8 -pipe 
-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=5.1 -Wall -g -Os 
-Wno-error=format-nonliteral   `test -f 'mode1o.asm' || echo 
'./'`mode1o.asmlibtool: 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/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk -arch armv7 -mcpu=cortex-a8 -pipe 
-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=5.1 -Wall -g -Os 
-Wno-error=format-nonliteral mode1o.asm  -fno-common -DPIC -o 
.libs/mode1o.om4  -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/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk -arch armv7 -mcpu=cortex-a8 -pipe 
-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/De
veloper/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=5.1 -Wall -g -Os 
-Wno-error=format-nonliteral tmp-mode1o.s -fno-common -DPIC -o 
.libs/mode1o.otmp-mode1o.s:58:2: error: unknown directive .protected 
___gmp_binvert_limb_table ^make: *** [mode1o.lo] Error 1Best 
regards,Sebastian

_______________________________________________gmp-bugs mailing 
listgmp-bugs at gmplib.orghttps://gmplib.org/mailman/listinfo/gmp-bugs
  


More information about the gmp-devel mailing list