Closed Bug 1583854 Opened 5 years ago Closed 4 years ago

Can't build with macOS 10.15 SDK

Categories

(Core :: Widget: Cocoa, defect, P2)

68 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: alexboy94, Assigned: pete)

References

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Build Firefox 68 ESR (I assume affects all) using standard procedure on macOS, with XCode 11 and using the default SDK (10.15).

Actual results:

13:05.11 Undefined symbols for architecture x86_64:
13:05.14 "OBJC_CLASS$NSSurface", referenced from:
13:05.14 l_OBJC
$CATEGORY_NSSurface$_DontCutOffCorners in nsChildView.o
13:05.14 ld: symbol(s) not found for architecture x86_64
13:05.14 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected results:

Build should have compiled.

I believe this is the line affected in nsChildView.mm.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core

(In reply to Alex Kontos from comment #0)

Build Firefox 68 ESR (I assume affects all) using standard procedure on macOS, with XCode 11 and using the default SDK (10.15).

We officially only support building with the 10.11 SDK. Fixing this issue will not be of particularly high priority since it only affects developers building Firefox 68 ESR locally with an SDK that's not officially supported.

Priority: -- → P5

That's fair! I suppose this may be more relevant in the (distant) future when the SDK version is changed.

(In reply to Alex Kontos from comment #3)

That's fair! I suppose this may be more relevant in the (distant) future when the SDK version is changed.

Are you seeing the same errors when building mozilla-central? If so, we can repurpose this bug to get this fixed there. For reference, a similar bug for the 10.14 SDK was bug 1564216.

Flags: needinfo?(alexboy94)

(In reply to Stephen A Pohl [:spohl] from comment #4)

(In reply to Alex Kontos from comment #3)

That's fair! I suppose this may be more relevant in the (distant) future when the SDK version is changed.

Are you seeing the same errors when building mozilla-central? If so, we can repurpose this bug to get this fixed there. For reference, a similar bug for the 10.14 SDK was bug 1564216.

Building 5c1282d, yes.

Flags: needinfo?(alexboy94)
Priority: P5 → P2
Summary: Undefined symbols for NSSurface (DontCutOffCorners) when building with XCode 11 (10.15 SDK) → Can't build with macOS 10.15 SDK - Undefined symbols for NSSurface (DontCutOffCorners)

Markus, looks like DontCutoffCorners was removed in bug 1576390 - should we increase the max SDK version? Are there other known issues with the 10.15 SDK still?

Flags: needinfo?(mstange)

(In reply to :Gijs (he/him) from comment #6)

Markus, looks like DontCutoffCorners was removed in bug 1576390 - should we increase the max SDK version? Are there other known issues with the 10.15 SDK still?

I just tried building with the 10.15 SDK and we're now failing as follows:

 9:36.20 /Users/spohl/Documents/mozilla-central/modules/libmar/verify/MacVerifyCrypto.cpp:19:16: error: typedef 'OpaqueSecKeyRef' cannot be referenced with a struct specifier
 9:36.20 typedef struct OpaqueSecKeyRef* SecKeyRef;
 9:36.20                ^
 9:36.20 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:114:25: note: declared here
 9:36.20 typedef struct __SecKey OpaqueSecKeyRef;
 9:36.20                         ^
 9:36.20 1 error generated.

I suspect that there would be further errors later in the build too.

Flags: needinfo?(mstange)

I'm removing the word NSSurface from the bug summary. Let's use this bug as a generic "do what needs to be done to allow building with the 10.15 SDK" bug.

Summary: Can't build with macOS 10.15 SDK - Undefined symbols for NSSurface (DontCutOffCorners) → Can't build with macOS 10.15 SDK

Patched for FIREFOX_73_0_1_RELEASE.
Builds and runs successfully using XCode11 and MacOS10.15.sdk.

Assignee: nobody → pete
Attached image build-config.png

SS of buildconfig

(In reply to Pete Collins (MDG) from comment #9)

Created attachment 9128892 [details] [diff] [review]
ff73.0.1-MaxOS10.15.sdk.patch

Patched for FIREFOX_73_0_1_RELEASE.
Builds and runs successfully using XCode11 and MacOS10.15.sdk.

Thank you for this patch. I've taken the liberty of changing your patch slightly to run on our try servers to confirm the fix on our build system.

No probs. I couldn't get 68esr building and running correctly so I moved on to the newer release branch.

Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by spohl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/04787960947b
Fix a build issue that prevented builds with the macOS 10.15 SDK from succeeding. Based on a patch by Pete Collins. r=mstange
https://hg.mozilla.org/integration/autoland/rev/f957ccd71655
Allow builds with the 10.15 macOS SDK. r=mshal
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Blocks: 1626329
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: