Cross compile GMP for Apple Silicon

Pierre Chatelier pierre at
Wed Nov 18 09:06:34 UTC 2020


I tried to compile GMP on a x86_64 buidl machien to target apple silicon systems:
./configure --enable-fat --build=x86_64-apple-darwin13.0.0 --host=arm64-apple-darwin

But this resulst in assembler code not being recognized :
tmp-add_n.s:71:10: error: unknown token in expression
 cmp x4, #1

I assume that GMP is not yet ready for the aamd64 architecture (or whatever its name)
Are there plans for that ? (I could not find that information while browsing <>)

Secondary question : will the configure script support Universal binaries natively, or will it end to the developer's responsability to merge x_86_64 and aamd64 builds ? (lipo -create ...)

More information about the gmp-discuss mailing list