[llvm-dev] Ld64.lld cannot find Foundation framework

Shoaib Meenai via llvm-dev llvm-dev at lists.llvm.org
Thu May 7 12:38:19 PDT 2020


You can always download source tarballs of ld64 from https://opensource.apple.com/tarballs/ld64/ and build it yourself. (https://github.com/michaeleisel/zld might also be interesting to you, depending on what all you plan to use the linker for.)

From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Edmund Furse via llvm-dev <llvm-dev at lists.llvm.org>
Reply-To: Edmund Furse <edmund.furse at imitation.uk.com>
Date: Thursday, May 7, 2020 at 12:16 PM
To: James Y Knight <jyknight at google.com>
Cc: "llvm-dev at lists.llvm.org" <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] Ld64.lld cannot find Foundation framework

James, many thanks.

Is there any linker available for Macs that has a freely available binary version?
I thought maybe that GNU’s linker might fit the bill?

I cannot use Apple’s linker from /usr/bin/ as it is not allowed to make external calls from a sandboxed app.
Hence my interest in the LLVM lld.


On 7 May 2020, at 19:21, James Y Knight <jyknight at google.com<mailto:jyknight at google.com>> wrote:

On Thu, May 7, 2020 at 1:54 PM Edmund Furse <edmund.furse at imitation.uk.com<mailto:edmund.furse at imitation.uk.com>> wrote:
Thanks for your reply.  Two questions:
1). Will ld64.lld be fixed in LLVM v11.0 and when is this likely to be?

Likely won't be fixed that soon.

2). You mention Apple’s linker, by which I assume you mean GNU’s ld.
Is it possible to get a binary version of ld (preferably that does not use other things from /usr/bin)?

No, Apple does not use GNU ld, they have their own linker, "ld64". That's what you ran as /usr/bin/ld on your mac.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200507/3997c14e/attachment.html>


More information about the llvm-dev mailing list