Closed Bug 1391023 Opened 7 years ago Closed 6 years ago

Update Mac builds to the OS X 10.12 SDK (or newer) when possible


(Firefox Build System :: General, defect)

Not set


(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix


(Reporter: ted, Unassigned)



In bug 1324892 we're going to update the OS X SDK to the 10.11 SDK. We can't currently use the 10.12 SDK because Apple hasn't open sourced the version of their linker that can read the .tbd files in the 10.12 SDK, and we need the open source version so we can build a Linux binary to use in our cross-compile environment.

Once that becomes available we should try updating our cctools and then updating the OS X SDK to 10.12 (or whatever is available at that time).
jwatt asked if I could comment here with information on how we will know when the appropriate version of Apple's linker is open-sourced. I don't have a great answer for you, unfortunately. We're currently using ld64 274.2 from .

Apple publishes their open source packages here:

Clicking on the newest link under "Developer Tools" brings you to:

Which links to the version we're using:

The version of ld64 on my Mac running XCode 9.0 is:

mbp:~ luser$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-302.3
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 9.0.0, (clang-900.0.37) (static support for 21, runtime is 21)
TAPI support using: Apple TAPI version 900.0.14 (tapi-900.0.14)
Although I just noticed this commit, which claims to have added support for these newer-format tbd stubs in cctools-port:

We'd have to tweak our build script to build Apple's libtapi first:

We should try that, it might unblock this.
Blocks: 1365045
If someone does get around to trying the suggested fixes in comment 2, I had previously uploaded a 10.12 SDK to tooltool, you could update the in-tree tooltool manifests to use it to validate that the new toolchain works:
I did try it and got an error;
 ld: unexpected token: !tapi-tbd-v2 file '/builds/worker/workspace/build/src/MacOSX10.12.sdk/usr/lib/libSystem.tbd' for architecture x86_64

If I understand correctly what we need to do, we also need to update cctools-port to this revision?  But I don't know how to do that.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #4)
> If I understand correctly what we need to do, we also need to update
> cctools-port to this revision?  But I don't know how to do that.
> 22ebe727a5cdc21059d45313cf52b4882157f6f0

You can update the git commit hash here:

and push to try, and a rebuild of cctools will happen automatically, and builds will then use that new version of cctools.
Thank you Nathan.  That's a fancy way. :)

I had tried to update cctools as well, but hasn't succeed to make the apple-libtapi build on Linux yet.
Product: Core → Firefox Build System
Blocks: 1475462
No longer blocks: 1365045
Note that we have bug 1475652 tracking moving to the 10.14 SDK. That bug tree is a bit more active than this one. Perhaps we should dupe this?
Oh nice.  Let's dupe then.
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.