Fwd: libgcrypt fails to compile with Xcode 9 against iOS 11 SDK
Chris Ballinger
chrisballinger at gmail.com
Sat Sep 30 21:57:22 CEST 2017
Resending due to DMARC failure...
---------- Forwarded message ----------
From: Chris Ballinger <chris at chatsecure.org>
Date: Fri, Sep 29, 2017 at 1:44 PM
Subject: Re: libgcrypt fails to compile with Xcode 9 against iOS 11 SDK
To: gcrypt-devel <gcrypt-devel at gnupg.org>
An additional problem I found in v1.8.1 with Xcode 9. The
mpih-add1-asm.S asm fails to compile for arm64. Reverting to 1.7.9 also
does not fix the issue.
mpih-add1-asm.S:37:1: error: unknown directive
.type _gcry_mpih_add_n,%function
^
mpih-add1-asm.S:71:1: error: unknown directive
.size _gcry_mpih_add_n,.-_gcry_mpih_add_n;
^
On Fri, Sep 29, 2017 at 12:00 PM, Chris Ballinger <chris at chatsecure.org>
wrote:
> This affects 1.7.x (and probably lower) through 1.8.1. The issue is that
> calling 'system()' is not allowed on iOS and is a now compile error with
> the latest Xcode 9 / iOS 11 toolchain.
>
> For now I will just comment out the system() calls, but I'll submit a
> better ifdef patch when I get around to it.
>
>
> random.c:556:11: error: 'system' is unavailable: not available on iOS
>
> if (system (cmdline))
>
> ^
>
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneS
> imulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk/usr/include/stdlib.h:195:6:
> note:
>
> 'system' has been explicitly marked unavailable here
>
> int system(const char *) __DARWIN_ALIAS_C(system);
>
> ^
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20170930/aef4751a/attachment.html>
More information about the Gcrypt-devel
mailing list