Bug 11818 - Error MM0000 when building with mono MDK 3.0.9
Summary: Error MM0000 when building with mono MDK 3.0.9
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: 1.2.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2013-04-17 01:33 UTC by michaelj
Modified: 2013-05-29 02:21 UTC (History)
1 user (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 michaelj 2013-04-17 01:33:49 UTC
This either happens with an mdtool or xamarin IDE build of my project:



Building Solution: CatapultConfiguratorCocoa (Release|x86)

Building: Xtg.Common.Desktop (Release)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.0.9/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/michaeljones/Projects/Common/Xtg/Common/Desktop/bin/Release/Xtg.Common.Desktop.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Management.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Runtime.Serialization.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Xml.dll" /nologo /warn:4 "/keyfile:/Users/michaeljones/Projects/Common/Keys/Xtg.snk" /optimize+ /codepage:utf8 -warnaserror "/define:TRACE"  /t:library "/Users/michaeljones/Projects/Common/Xtg/AssemblyInfo_Version.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/BitsPerSecondFormatter.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/BytesFormatter.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/EnvironmentExtra.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/ObjectExtensions.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/OperatingSystem.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/SimpleEventArgs.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/StringExtensions.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/WebServerSettings.cs" "/Users/michaeljones/Projects/Common/Xtg/Common/Desktop/Properties/AssemblyInfo.cs" 
Build complete -- 0 errors, 0 warnings

Building: Xdt.Catapult.Common.LocalizationResources.Desktop (Release)
Performing main compilation...
Generating satellite assembly for 'ja' culture with /Library/Frameworks/Mono.framework/Versions/3.0.9/bin/al
Generating satellite assembly for 'kk' culture with /Library/Frameworks/Mono.framework/Versions/3.0.9/bin/al
Generating satellite assembly for 'ko' culture with /Library/Frameworks/Mono.framework/Versions/3.0.9/bin/al
/Library/Frameworks/Mono.framework/Versions/3.0.9/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Desktop/bin/Release/Xdt.Catapult.Common.LocalizationResources.Desktop.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/Microsoft.CSharp.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Xml.dll" /nologo /warn:4 "/keyfile:/Users/michaeljones/Projects/Catapult/Managed/Keys/Catapult.snk" /optimize+ /codepage:utf8 -warnaserror "/define:TRACE"  /t:library "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/AssemblyInfo_Version.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Resources1.Designer.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Desktop/Properties/AssemblyInfo.cs" "/res:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Resources.resources,Xdt.Catapult.Common.Resources.resources" "/nowarn:1591" 
Build complete -- 0 errors, 0 warnings

Building: Xdt.Catapult.Common.Desktop (Release)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.0.9/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Desktop/bin/Release/Xdt.Catapult.Common.dll" "/r:/Users/michaeljones/Projects/Common/Xtg/Common/Desktop/bin/Release/Xtg.Common.Desktop.dll" "/r:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Desktop/bin/Release/Xdt.Catapult.Common.LocalizationResources.Desktop.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Core.dll" /nologo /warn:4 "/keyfile:/Users/michaeljones/Projects/Catapult/Managed/Keys/Catapult.snk" /optimize+ /codepage:utf8 -warnaserror "/define:TRACE"  /t:library "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/AssemblyInfo_Version.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/AesWrapper.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Configuration.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Filenames.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/License.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LicenseFeature.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LicenseFormatter.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LicenseParser.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalNetworkInterface.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalNetworkInterfacesModifiedEventArgs.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/ResourceConstructorCheck.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Share.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/SharesModifiedEventArgs.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Version.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/XdtHttpHeaderConstants.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Desktop/Properties/AssemblyInfo.cs" 
Build complete -- 0 errors, 0 warnings

Building: Xdt.Catapult.Applications.CatapultConfigurator (Release|x86)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.0.9/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.exe" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Drawing.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/Mono.Posix.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/r:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Desktop/bin/Release/Xdt.Catapult.Common.dll" "/r:/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Desktop/bin/Release/Xdt.Catapult.Common.LocalizationResources.Desktop.dll" "/r:/Users/michaeljones/Projects/Common/Xtg/Common/Desktop/bin/Release/Xtg.Common.Desktop.dll" /nologo /warn:4 /optimize+ /codepage:utf8 "/define:TRACE"  /t:exe "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/MainWindow.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/MainWindowController.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/MainWindow.designer.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Main.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/AppDelegate.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/AppDelegate.designer.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/SharesDataSource.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/ShareEditWindow.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/ShareEditWindowController.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/ShareEditWindow.designer.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/LocalNetworkInterfacesDataSource.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/SharesTableViewDelegate.cs" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/LocalNetworkInterfaceDataSource.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.app/Contents/Resources/MainMenu.nib" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Resources/en.lproj/MainMenu.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.app/Contents/Resources/MainWindow.nib" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Resources/en.lproj/MainWindow.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.app/Contents/Resources/ShareEditWindow.nib" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Resources/en.lproj/ShareEditWindow.xib"
/* com.apple.ibtool.document.notices */
/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Resources/en.lproj/ShareEditWindow.xib:10: note: View is clipping its content [13]

Copying content files
Copying '/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/Resources/Catapult.icns' to '/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.app/Contents/Resources/Catapult.icns'
Build complete -- 0 errors, 0 warnings

Updating application manifest

Merging Mono Runtime into app bundle
/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/bin/mmp -nolink "-minos=10.6" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release" -n "CatapultConfiguratorCocoa" --profile "4.5" -a "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/Desktop/bin/Release/Xdt.Catapult.Common.dll" -a "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Common/LocalizationResources/Desktop/bin/Release/Xdt.Catapult.Common.LocalizationResources.Desktop.dll" -a "/Users/michaeljones/Projects/Common/Xtg/Common/Desktop/bin/Release/Xtg.Common.Desktop.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/System.Drawing.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.0.9/lib/mono/4.5/Mono.Posix.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/Users/michaeljones/Projects/Catapult/Managed/Xdt/Catapult/Applications/CatapultConfigurator/Cocoa/bin/Release/CatapultConfiguratorCocoa.exe"
Process exited with code 1, command:
/Library/Frameworks/Mono.framework/Commands/pkg-config --variable=prefix mono-2
error MM0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.ArgumentException: The specified path is not of a legal form (empty).
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Path.GetFullPath (System.String path) [0x00000] in <filename unknown>:0 
  at MonoMac.Bundler.Driver.get_MonoDirectory () [0x00000] in <filename unknown>:0 
  at MonoMac.Bundler.Driver.Pack (IList`1 unprocessed) [0x00000] in <filename unknown>:0 
  at MonoMac.Bundler.Driver.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
mmp exited with code 1

---------------------- Done ----------------------

Build: 1 error, 4 warnings
Comment 1 Sebastien Pouliot 2013-05-28 13:07:44 UTC
What's printed if you run this command inside a terminal window ?

/Library/Frameworks/Mono.framework/Commands/pkg-config --variable=prefix mono-2


That should return a (existing) path to your Mono 3.0.x installation. From the error message it seems it could be missing  (or empty) ?
Comment 2 michaelj 2013-05-29 02:21:11 UTC
I think it was a problem specific to Mono 3.0.9 beta, I updated to 3.0.10 and I can now build the same solution.