configure failure for --host=armv7-apple-darwin with assembly

Taner Sener tanersener at gmail.com
Fri Jun 15 13:25:42 UTC 2018


Hello,


I'm trying to cross-compile gmp 6.1.2 on macOS High Sierra for IOS
platform. Unfortunately armv7, armv7s and arm64 architectures all fail with
"configure: error: cannot determine how to define a 32-bit word" error. I
tried different options. I was successful when I used
"--host=none-apple-darwin"
option but I don't think it includes ARM optimizations. Do you have any
solutions for this?


I'm using clang, Apple LLVM version 9.1.0 (clang-902.0.39.2), for
compilation with libav's gas-preprocessor. Below you can find configure
output, config.log is also attached.



./configure

--prefix=/tmp/gmp

--with-pic

--with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk


--enable-static

--disable-shared

--enable-assembly

--disable-fast-install

--disable-maintainer-mode

--host=armv7-apple-darwin

...

checking for suitable m4... m4

checking if m4wrap produces spurious output... no

checking how to switch to text section... .text

checking how to switch to data section... .data

checking for assembler label suffix... :

checking for assembler global directive... .globl

checking for assembler global directive attribute...

checking if globals are prefixed by underscore... yes

checking how to switch to read-only data section...     .section
__TEXT,__const

checking for assembler .type directive...

checking for assembler .size directive...

checking for assembler local label prefix... L

checking for assembler byte directive... .byte

checking how to define a 32-bit word... configure: error: cannot determine
how to define a 32-bit word



Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 21472 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20180615/d4805503/attachment-0001.bin>


More information about the gmp-bugs mailing list