Bug 42889 - Compile/link with the non-fragile osx runtime for x86_64
Summary: Compile/link with the non-fragile osx runtime for x86_64
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: Master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2016-07-28 15:13 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2016-08-11 18:40 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Rolf Bjarne Kvinge [MSFT] 2016-07-28 15:13:15 UTC
References:

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html
https://lists.gnu.org/archive/html/gnustep-dev/2012-07/msg00000.html

Proposal:

Automatically pass -fobjc-runtime=macosx when building for 64-bit.

Reason:

When using the non-fragile runtime, clang defines a variable which Apple's macOS headers uses to conditionally include types. The static registrar will reference some of those types (at least NSExtensionContext), causing a compilation failure when enabling the static registrar and not using the non-fragile runtime (since no header defines NSExtensionContext).
Comment 1 Chris Hamons 2016-07-29 19:30:38 UTC
https://github.com/xamarin/xamarin-macios/pull/509