Bug 42464 - mmp does not handle native fat libraries with non 32/64 bit sections
Summary: mmp does not handle native fat libraries with non 32/64 bit sections
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: Master
Hardware: PC Mac OS
: Low normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2016-07-11 13:36 UTC by Chris Hamons
Modified: 2018-02-13 20:15 UTC (History)
3 users (show)

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:

Description Chris Hamons 2016-07-11 13:36:18 UTC
From https://forums.xamarin.com/discussion/70855/build-fails-with-dylib-file-in-release-mode#latest

libTurboActivate.dylib: Mach-O universal binary with 3 architectures
libTurboActivate.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
libTurboActivate.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
libTurboActivate.dylib (for architecture i386): Mach-O dynamically linked shared library i386

crashed inside:

at Xamarin.MachOFile.Read (System.IO.BinaryReader reader) <0x10e9c7830 + 0x0029b> in :0 

lipo -remove ppc7400 libTurboActivate.dylib modified/libTurboActivate.dylib
Comment 1 Chris Hamons 2016-07-11 13:54:12 UTC
@Rolf - I think this was code you added. If not, or you think this is XM only behavior, feel free to bounce back.
Comment 2 Sebastien Pouliot 2018-02-13 20:15:17 UTC
This should be fixed as part of https://github.com/xamarin/xamarin-macios/issues/3367
i.e. remove any slice that is not the target arch