Bug 26130 - [Build][MmpTask] Doesn't respect the architecture setting - Need 64-bit mono first
Summary: [Build][MmpTask] Doesn't respect the architecture setting - Need 64-bit mono ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: MSBuild ()
Version: Master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2015-01-16 18:34 UTC by Stephen Shaw
Modified: 2016-08-18 20:18 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:
RESOLVED FIXED

Description Stephen Shaw 2015-01-16 18:34:50 UTC
Setting the a unified's project settings to 64bit doesn't result in a 64bit build.

Task "MmpTask"
		Using task MmpTask from Xamarin.Mac.Tasks.MmpTask, Xamarin.Mac.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
		Mmp Task
		  ApplicationAssembly: ../../bin/Debug/XamarinProfiler.Mac.exe
		  ApplicationName: XamarinProfiler.Mac
		  Architecture: x86_64
.......
Tool /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp execution started with arguments: /verbose /debug /output:../../bin/Debug/ /name:XamarinProfiler.Mac /profile:4.5 /arch:i386  ......

Also, running the app IntPtr.Size == 4
Comment 1 Stephen Shaw 2015-01-16 19:16:14 UTC
ok, Adding this patch results in a 64bit build:
https://gist.github.com/chamons/dd178c962ddd2361665c

IntPtr.Size == 8

However, it seems that there are other problems:
XS output -> https://gist.github.com/decriptor/f9c25e30701df5f92f94
Apple output -> https://gist.github.com/decriptor/a47aacd81c0b516e3f77
Comment 2 Stephen Shaw 2015-01-16 19:20:37 UTC
Also, build output for Comment #1 https://gist.github.com/decriptor/e9ecddb4b372aedcb81a
Comment 3 Chris Hamons 2015-01-19 14:00:13 UTC
Fixed by this patch:

http://git.io/4QXYiQ

However, we need mono system 64-bit support before this is land-able and would work for this case.