Bug 9621 - error MM5103: Failed to compile ... lots of messages e.g. warning MM2006: Native library 'libfam.so.0.dylib' was referenced but could not be found.
Summary: error MM5103: Failed to compile ... lots of messages e.g. warning MM2006: Nat...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: 1.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2013-01-16 16:41 UTC by ward yaternick
Modified: 2015-08-21 14:43 UTC (History)
1 user (show)

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


Attachments
screenshot of the Project Options -> MAC OS X Packaging (161.45 KB, image/png)
2013-01-16 16:41 UTC, ward yaternick
Details
very simple Xamarin.Mac project that reproduces the bug. It has the suggested -v -v -v (2.49 MB, application/zip)
2013-01-16 21:21 UTC, ward yaternick
Details


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 ward yaternick 2013-01-16 16:41:38 UTC
Created attachment 3234 [details]
screenshot of the Project Options -> MAC OS X Packaging

In the section "Include the mono runtime" I've tried every option. If I say Link All or Link Framework then the command following "Merging Mono Runtime" freezes and will sit there for hours. So I tried it with "Don't Link" and got the following message in the log. At the end of the message, I'm told to report it on Bugzilla.  I've attached a screen shot of the dialog box in case that gives you some insight. My version of Monodevelop says 3.1.1. It was purchased and downloaded on or about December 18, 2012. I'm using an iMac 2009 but it's upgraded to Mountain Lion.  The software itself runs fine from the debugger, I'm just now trying to do release builds to try it out the Packaging and deployment on other computers. Following are the messages I got in the build log. I'm happy to send you the project, source and all, if that helps you diagnose the problem. If you can't reproduce it, then I can try creating a new "small" project and see if it is reproducible that way -- let me know. 


Building: NEXTAuthOSX (Release|x86)

Detecting code signing identity...
Code Signing Identity: "Developer ID Application: edward yaternick"
App ID: "com.nextanalytics.NEXTAuthOSX"
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Mono.Posix.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Web.dll" "/r:/Users/wyaternick/Projects/Google/Google Data API SDK/Redist/Google.GData.Client.dll" "/r:/Users/wyaternick/Projects/Google/Google Data API SDK/Redist/Google.GData.Spreadsheets.dll" "/r:/Users/wyaternick/Projects/NEXT/dotnetdata/bin/Release/dotnetdata.dll" "/r:/Users/wyaternick/Projects/trial/dotnetdata/bin/Debug/SpreadsheetGear.dll" /nologo /warn:4 /optimize+ /codepage:utf8 /platform:x86 "/define:MONO"  /t:exe "/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.cs" "/Users/wyaternick/Projects/NEXT/NEXT/MainWindowController.cs" "/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Main.cs" "/Users/wyaternick/Projects/NEXT/NEXT/AppDelegate.cs" "/Users/wyaternick/Projects/NEXT/NEXT/AppDelegate.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSS.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSS.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSSController.cs" "/Users/wyaternick/Projects/NEXT/NEXT/datasource_gss_list.cs" 
Build complete -- 0 errors, 0 warnings

Extracting embedded content

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/wyaternick/Projects/NEXT/NEXT/bin/Release" -n "NEXTAuthOSX" --profile "4.0" -a "/Users/wyaternick/Projects/NEXT/dotnetdata/bin/Release/dotnetdata.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Mono.Posix.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Web.dll" -a "/Users/wyaternick/Projects/Google/Google Data API SDK/Redist/Google.GData.Client.dll" -a "/Users/wyaternick/Projects/Google/Google Data API SDK/Redist/Google.GData.Spreadsheets.dll" -a "/Users/wyaternick/Projects/trial/dotnetdata/bin/Debug/SpreadsheetGear.dll" "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.exe"
warning MM2006: Native library 'libfam.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgamin-1.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libasound.so.2.dylib' was referenced but could not be found.
warning MM2006: Native library 'libX11.dylib' was referenced but could not be found.
warning MM2006: Native library 'libwinspool.drv.dylib' was referenced but could not be found.
warning MM2006: Native library 'libcups.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgda-2.dylib' was referenced but could not be found.
warning MM2006: Native library 'libodbc32.dylib' was referenced but could not be found.
warning MM2006: Native library 'librsvg-2.so.2.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgdk_pixbuf-2.0.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libglib-2.0.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgdk-x11-2.0.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgobject-2.0.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgnomeui-2.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgtk-x11-2.0.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libshell32.dylib' was referenced but could not be found.
warning MM2006: Native library 'libXcursor.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgdk-x11-2.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgtk-x11-2.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libuxtheme.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgluezilla.dylib' was referenced but could not be found.
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -mmacosx-version-min=10.6 -m32 /Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/MacOS/driver.m -o /Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/MacOS/NEXTAuthOSX -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0   /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/libmono-2.0.a  -framework AppKit -liconv
error MM5103: Failed to compile. Please file a bug report at http://bugzilla.xamarin.com
mmp exited with code 1

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

Build: 1 error, 0 warnings
Comment 1 ward yaternick 2013-01-16 16:52:47 UTC
Here's the Monodevelop Version Information...

MonoDevelop 3.1.1
Installation UUID: 26dc8dc5-f56a-40e6-9e5b-6b6881e00621
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Mono for Android: Not Installed

Apple Developer Tools:
	 Xcode 4.5.2 (1847)
	 Build 4G2008a
Monotouch: 
Xamarin.Mac: 1.0.11
Build information:
	Release ID: 30101000
	Git revision: 5d928ec4f9d5864b4db04a1301b8a8649b43fb9d
	Build date: 2012-12-14 19:11:30+0000
	Xamarin addins: 80f2dcc8fe4ed316b3e77dde496fc33d90305047
Operating System:
	Mac OS X 10.8.2
	Darwin ward-yaternicks-imac.local 12.2.0 Darwin Kernel Version 12.2.0
	    Sat Aug 25 00:48:52 PDT 2012
	    root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Comment 2 Sebastien Pouliot 2013-01-16 16:55:44 UTC
I'll take your offer for the source code/project as it will be a lot faster to debug this and make sure I hit all the right nail(s). I think there's two issues (it should link without taking forever) but that should not affect the compilation (MM5103) if linking is disabled.

You can zip it and attach it to the bug report. There's an option at the end to allow you to mark it as private. Thanks!

Privacy:	 Make attachment and comment private (visible only to members of the Xamarin Team group)
Comment 6 ward yaternick 2013-01-16 20:00:37 UTC
Here's what I see when I enter the command in the terminal window like you requested.

Last login: Fri Jan 11 14:00:10 on console
ward-yaternicks-imac:~ wyaternick$  ls -l /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
lrwxr-xr-x  1 root  wheel  12 18 Dec 04:36 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -> llvm-gcc-4.2
ward-yaternicks-imac:~ wyaternick$ 

---------

sidebar note to your observations in your previous comment:
a) I think the missing references were a result of how I zipped the project but I will double-double-check. I think it's odd that they'd lose their references since they're anchored from the same root folder. The dotnetdata and winfcl dlls are linked by "Project" not assembly... perhaps there's some anomoly in that, perhaps when there's a Release build.

b) It's actually the GoogleDrive API that uses the newtonsoft .net35 DLL. That's stored in a folder below the NEXT project, which I forgot about when I zipped, so that's why you didn't get it. Odd that it wasn't cloned into one of the NEXT bin directories during the build process. Again, I'll double-check that.
If you see "Error Missing licence" yes that does mean it compiled, linked and ran. I'd be happy to send you a license if you were interested in running the software. 

Again, I think your missing references were from how I zipped it. Although, perhaps it points to a bug in how the references are stored in the csproj file, especially as I switch from Debug to Release build. 

---------
After I double-check the references above, perhaps the MT105 error will go away. That would be nice but I am a bit skeptical it's that. 

I suspect that there's a difference between your Mac and my Mac, i.e. what libs and dlls you have on your system, versus which ones I have on mine. Perhaps my build of Xamarin.Mac is different than yours.  Do you think if I re-download Xamarin.Mac and install it, that it might be more up to date than the version I"m running?

As I mentioned before, I'd be happy to let you peruse my system via a shared-screen e.g. a Gotomeeting.
Comment 8 Sebastien Pouliot 2013-01-16 20:42:52 UTC
Also could you go to the "Mac OS X Packaging" options, select the "Advanced" tab and add:

-v -v -v

to the "Advanced Mono Bundling options", "Extra Arguments" ?

That will augment the verbosity of the build and should give me the output returned from the C compiler (gcc). It's return code (1) is the reason why MM5103 occurs.
Comment 9 ward yaternick 2013-01-16 21:18:58 UTC
I have a new test case that would be easy for you to replicate.
You don't need to use my solution that I sent earlier.
I"ve attached a Zip named: NEXTAuthOSX.zip.
I've also attached two screen shots.
All three are in Archive.zip...

--------

Here's the steps to create the plain simple project. 
It is absolutely the simplest most basic Xamarin.Mac project you could make, that's the point I'm demonstrating here:

Start MD
Start New Solution
Xamarin.Mac Project named "NEXTAuthOSX
(because this matches the app that I provisioned with Apple)
Build
(Gives you a debug build, but it's just to show that it builds correctly)

right-click on bolded NEXTAuthOSX and choose Optons
MAC OS X Packaging
Change to Release x86
"Include Mono Runtime" and set to "Link All"
Sign the application Bundle 
Sign the Installer package
Advanced -> -v -v -v

(two screen shot are attached)

Here's the output from the log window

Cleaning Solution: NEXTAuthOSX (Debug|x86)

Cleaning: NEXTAuthOSX (Debug|x86)
Removing output files...
Clean complete

Building Solution: NEXTAuthOSX (Debug|x86)

Building: NEXTAuthOSX (Debug|x86)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 /platform:x86 "/define:DEBUG"  /t:exe "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindowController.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.designer.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/Main.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/AppDelegate.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/AppDelegate.designer.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/Resources/MainWindow.nib" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/Resources/MainMenu.nib" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainMenu.xib"
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 "-minos=10.6" "-v" "-v" "-v" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug" -n "NEXTAuthOSX" --profile "4.0" --debug -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.exe"
Added assembly System.dll
Added assembly mscorlib.dll
Added assembly Mono.Security.dll
Added assembly System.Configuration.dll
Added assembly System.Xml.dll
Added assembly System.Security.dll
Added assembly System.Core.dll
Added assembly Mono.Posix.dll
Added assembly System.Xml.Linq.dll
Added assembly System.Drawing.dll
Added assembly XamMac.dll
Added assembly NEXTAuthOSX.exe
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -mmacosx-version-min=10.6 -m32 /Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/MacOS/driver.m -o /Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/MacOS/NEXTAuthOSX -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0   /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/libmono-2.0.a -DDEBUG -framework AppKit -liconv

error MM5103: Failed to compile. Please file a bug report at http://bugzilla.xamarin.com
  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, 0 warnings
Comment 10 ward yaternick 2013-01-16 21:21:39 UTC
Created attachment 3235 [details]
very simple Xamarin.Mac project that reproduces the bug. It has the suggested -v -v -v

Archive.zip contains three things.

1) a very simple solution -- Just create a new Xamarin.Mac project and do nothing else but compile it. First I did a debug build. Then I switched to Release and set the project Options. I also added the -v -v -v to the advanced options per your suggestion. It reproduces the original error.

2) It also has two screen shots of the Project Options MAC OS X Packaging choices I made.
Comment 11 ward yaternick 2013-01-16 21:24:06 UTC
Slight user-brain-failure in that last upload. The text that I pasted was from a Debug build. HOWEVER, switching it to Release causes the same error.
Comment 12 Sebastien Pouliot 2013-01-17 09:30:12 UTC
Hmm... I expected some output from the compiler itself (between the command and the MM5103). Can you try, from a terminal window, the following commands *after* rebuilding and give me back the results:

First (all on the same line):

    ls -l /Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/MacOS/NEXTAuthOSX

This will tell us if the driver app has been compiled (or not).


Second:

    /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -v

That will give a few details about gcc itself (and that it can load itself).


Last, 3 commands, to compile a empty driver using gcc.

    echo "int main (int argc, char **argv) { return 0; }" > driver.m

    /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -mmacosx-version-min=10.6 -m32 driver.m -o ~/Downloads/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/MacOS/NEXTAuthOSX -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0  /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/libmono-2.0.a -framework AppKit -liconv

    ls -l NEXTAuthOSX 

Thanks
Comment 13 ward yaternick 2013-01-17 10:24:08 UTC
Hi Sebastien, I did something similar to your First request. I changed directory to the Debug dir and then I did a ls -AR so that you'd see all the subdirs, as follows. I'll do other requests now, as separate comments so that it's not too verbose to be legible.

ward-yaternicks-imac:Contents wyaternick$ pwd >tmp.txt
ward-yaternicks-imac:Contents wyaternick$ ls -AR -l >>tmp.txt
ward-yaternicks-imac:Contents wyaternick$ more tmp.txt
/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents
total 16
-rw-r--r--   1 wyaternick  staff  1530 16 Jan 21:15 Info.plist
drwxr-xr-x   2 wyaternick  staff    68 16 Jan 21:15 MacOS
drwxr-xr-x  12 wyaternick  staff   408 16 Jan 21:15 MonoBundle
drwxr-xr-x   4 wyaternick  staff   136 16 Jan 21:15 Resources
-rw-r--r--   1 wyaternick  staff    86 17 Jan 10:19 tmp.txt

./MacOS:

./MonoBundle:
total 4248
-rwxr-xr-x  1 wyaternick  staff     4096 16 Jan 21:15 NEXTAuthOSX.exe
-rw-r--r--  1 wyaternick  staff      963 16 Jan 21:15 NEXTAuthOSX.exe.mdb
-rw-r--r--  1 wyaternick  staff     4608 16 Jan 21:15 System.Core.dll
-rw-r--r--  1 wyaternick  staff     6656 16 Jan 21:15 System.Drawing.dll
-rw-r--r--  1 wyaternick  staff     6144 16 Jan 21:15 System.dll
-rwxr-xr-x  1 wyaternick  staff    69632 16 Jan 21:15 XamMac.dll
-rw-r--r--  1 wyaternick  staff     1749 16 Jan 21:15 config
-rw-r--r--  1 wyaternick  staff    33313 16 Jan 21:15 machine.config
-rwxr-xr-x  1 wyaternick  staff  1517056 16 Jan 21:15 mscorlib.dll
-rw-r--r--  1 wyaternick  staff   511231 16 Jan 21:15 mscorlib.dll.mdb

./Resources:
total 64
-rw-r--r--  1 wyaternick  staff  25914 16 Jan 21:15 MainMenu.nib
-rw-r--r--  1 wyaternick  staff   1666 16 Jan 21:15 MainWindow.nib
ward-yaternicks-imac:Contents wyaternick$
Comment 14 ward yaternick 2013-01-17 10:26:08 UTC
This is the result of your second request: 

ward-yaternicks-imac:Contents wyaternick$ /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
ward-yaternicks-imac:Contents wyaternick$
Comment 15 ward yaternick 2013-01-17 10:38:11 UTC
I apologize but I don't think your third command worked for me but I couldn't see why. 

For one thing, I had to modify it to not refer to downloads, but I think I did that correctly.

ward-yaternicks-imac:Contents wyaternick$ pwd
/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents

ward-yaternicks-imac:Contents wyaternick$ echo "int main( int argc, char **argv ) { return 0; }" > driver.m

ward-yaternicks-imac:Contents wyaternick$ /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -mmacosx-version-min=10.6 -m32 driver.m -o /Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/MacOS/NEXTAuthOSX -D_THREAD_SAFE -l/Library/Frameworks/Mono.framework/Versions/2.10.9/include/mono-2.0 /Library/Frameworks/Mono.Framework/Versions/2.10.9/lib/libmono-2.0.a -framework AppKit -liconv

ld: library not found for -lcrt1.10.6.o

collect2: ld returned 1 exit status
Comment 16 Sebastien Pouliot 2013-01-17 10:49:49 UTC
Sorry, bad copy/paste. I should have removed the path from the -o option (since it's the output it could have been done in the current directory, which was what I assumed in the next command).

OTOH I think we found the issue in:

   ld: library not found for -lcrt1.10.6.o

What does this command returns ?

   find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/ -name crt1.10.6.o
Comment 17 ward yaternick 2013-01-17 11:08:49 UTC
Sometimes discoveries are made through a path that's taken accidentally.
I pasted your command but had a little issue with the -name parameter.
Maybe I typed it wrong.
So, guessing that you want to find those files, I changed the command to use grep.

ward-yaternicks-imac:~ wyaternick$ find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/ | grep crt1.10.6.o

This returned two lines of output, it seems one line for each version of OSX. 10.7, and then 10.8.

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.10.6.o

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.10.6.o

------

The full unfiltered listing is quite large. I can stdout it a file and post that as an attachment if you want.
Comment 18 Sebastien Pouliot 2013-01-17 11:28:37 UTC
Ok, that's the output I expected. There's a configuration issue somewhere, gcc should be able to link with the above.

Can you:

* start Xcode;
* got the it's Preferences dialog (from the Xcode menu, preferences);
* select the Downloads icon;
* select the Components tab;
* ensure that "Command Line Tools" is "Installed".

If not then install it and try to build again. I did not think it was needed for Xamarin.Mac but many people have it (like me) since it's required for MonoTouch.
Comment 19 ward yaternick 2013-01-17 13:00:28 UTC
Good news... Problem solved, on both the small test solution as well as the great big one I originally was having problems with. The problem, as you described it, was that because I did not have MonoTouch installed, just Xamarain.Mac,  I was lacking the necessary "command line tools" being installed. 

Ironically, it was my plan that, after I got this product built that i was going to buy MonoTouch and the android one.  If I had done things in a different order, we'd have never experienced this anomoly.

At this point, I think you can mark this as Resolved. Do I do that or do you?  Also, you deserve accolades and awards as well as my gratitude. Thank You!

--------------------

Here's the output from the small one:

Cleaning: NEXTAuthOSX (Debug|x86)
Removing output files...
Clean complete

Building: NEXTAuthOSX (Debug|x86)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 /platform:x86 "/define:DEBUG"  /t:exe "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindowController.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.designer.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/Main.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/AppDelegate.cs" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/AppDelegate.designer.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/Resources/MainWindow.nib" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainWindow.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.app/Contents/Resources/MainMenu.nib" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/MainMenu.xib"
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 "-minos=10.6" "-v" "-v" "-v" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug" -n "NEXTAuthOSX" --profile "4.0" --debug -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/Users/wyaternick/Projects/NEXTAuthOSX/NEXTAuthOSX/bin/Debug/NEXTAuthOSX.exe"
Added assembly System.dll
Added assembly mscorlib.dll
Added assembly Mono.Security.dll
Added assembly System.Configuration.dll
Added assembly System.Xml.dll
Added assembly System.Security.dll
Added assembly System.Core.dll
Added assembly Mono.Posix.dll
Added assembly System.Xml.Linq.dll
Added assembly System.Drawing.dll
Added assembly XamMac.dll
Added assembly NEXTAuthOSX.exe

bundling complete

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

Build successful.


Here's the output from the large one, in case you find it informative:

Cleaning: NEXTAuthOSX (Release|x86)
Removing output files...
Clean complete

Building: NEXTAuthOSX (Release|x86)

Detecting code signing identity...
Code Signing Identity: "Developer ID Application: edward yaternick"
App ID: "com.nextanalytics.NEXTAuthOSX"
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Mono.Posix.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Web.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/SpreadsheetGear.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.Apis.Drive.v2.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.Apis.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Client.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Extensions.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Spreadsheets.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Ionic.Zip.Reduced.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Newtonsoft.Json.Net35.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Newtonsoft.Json.dll" "/r:/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/dotnetdata.dll" /nologo /warn:4 /optimize+ /codepage:utf8 /platform:x86 "/define:MONO"  /t:exe "/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.cs" "/Users/wyaternick/Projects/NEXT/NEXT/MainWindowController.cs" "/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Main.cs" "/Users/wyaternick/Projects/NEXT/NEXT/AppDelegate.cs" "/Users/wyaternick/Projects/NEXT/NEXT/AppDelegate.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSS.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSS.designer.cs" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSSController.cs" "/Users/wyaternick/Projects/NEXT/NEXT/datasource_gss_list.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/Resources/MainWindow.nib" "/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.xib"
/* com.apple.ibtool.document.notices */
/Users/wyaternick/Projects/NEXT/NEXT/MainWindow.xib:105: note: View is clipping its content [13]
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/Resources/MainMenu.nib" "/Users/wyaternick/Projects/NEXT/NEXT/MainMenu.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/Resources/frmLoginGoogleSS.nib" "/Users/wyaternick/Projects/NEXT/NEXT/Forms/frmLoginGoogleSS.xib"

Copying content files
Copying '/Users/wyaternick/Projects/NEXT/NEXT/Resources/Power-Tools-for-Web-and-Social-Media.png' to '/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/Resources/Power-Tools-for-Web-and-Social-Media.png'
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 "-minos=10.6" "-v" "-v" "-v" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release" -n "NEXTAuthOSX" --profile "4.0" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/usr/lib/mono/XamMac.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Mono.Posix.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Web.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/SpreadsheetGear.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.Apis.Drive.v2.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.Apis.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Client.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Extensions.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Google.GData.Spreadsheets.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Ionic.Zip.Reduced.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Newtonsoft.Json.Net35.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/Newtonsoft.Json.dll" -a "/Users/wyaternick/Projects/NEXT Standalone/nxaStandalone/bin/Release/dotnetdata.dll" "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.exe"
Added assembly System.dll
Added assembly mscorlib.dll
Added assembly Mono.Security.dll
Added assembly System.Configuration.dll
Added assembly System.Xml.dll
Added assembly System.Security.dll
Added assembly System.Core.dll
Added assembly Mono.Posix.dll
Added assembly System.Xml.Linq.dll
Added assembly System.Drawing.dll
Added assembly XamMac.dll
Added assembly System.Web.dll
Added assembly System.Data.dll
Added assembly Mono.Data.Tds.dll
Added assembly System.Transactions.dll
Added assembly System.EnterpriseServices.dll
Added assembly System.Web.ApplicationServices.dll
Added assembly System.Web.Services.dll
Added assembly Mono.Web.dll
Added assembly Mono.Data.Sqlite.dll
Added assembly SpreadsheetGear.dll
Added assembly System.Windows.Forms.dll
Added assembly Accessibility.dll
Added assembly Mono.WebBrowser.dll
Added assembly Google.Apis.Drive.v2.dll
Added assembly Google.Apis.dll
Added assembly Newtonsoft.Json.Net35.dll
Added assembly System.Runtime.Serialization.dll
Added assembly Google.GData.Client.dll
Added assembly Newtonsoft.Json.dll
Added assembly Google.GData.Extensions.dll
Added assembly Google.GData.Spreadsheets.dll
Added assembly Ionic.Zip.Reduced.dll
Added assembly dotnetdata.dll
Added assembly NEXTAuthOSX.exe
Native library 'libMonoPosixHelper.dylib' copied to application bundle.
Native library 'libgdiplus.0.dylib' copied to application bundle.
Native library 'libglib-2.0.0.dylib' copied to application bundle.
Native library 'libintl.8.dylib' copied to application bundle.
Native library 'libcairo.2.dylib' copied to application bundle.
Native library 'libpixman-1.0.22.2.dylib' copied to application bundle.
Native library 'libfontconfig.1.dylib' copied to application bundle.
Native library 'libfreetype.6.dylib' copied to application bundle.
Native library 'libexpat.1.5.2.dylib' copied to application bundle.
Native library 'libpng12.0.dylib' copied to application bundle.
Native library 'libjpeg.8.dylib' copied to application bundle.
Native library 'libtiff.3.dylib' copied to application bundle.
Native library 'libgif.4.1.6.dylib' copied to application bundle.
warning MM2006: Native library 'libodbc32.dylib' was referenced but could not be found.

warning MM2006: Native library 'libgda-2.dylib' was referenced but could not be found.

warning MM2006: Native library 'libgamin-1.so.0.dylib' was referenced but could not be found.

warning MM2006: Native library 'libfam.so.0.dylib' was referenced but could not be found.

Native library 'libgobject-2.0.0.dylib' copied to application bundle.
Native library 'libgthread-2.0.0.dylib' copied to application bundle.
Native library 'libffi.6.dylib' copied to application bundle.

bundling complete

Preparing resources rules

Signing native libraries
codesign -v --force --sign "Developer ID Application: edward yaternick" "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/MonoBundle/libMonoPosixHelper.dylib"
/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/MonoBundle/libMonoPosixHelper.dylib: signed Mach-O thin (i386) [libMonoPosixHelper]

Signing application
codesign -v --force --sign "Developer ID Application: edward yaternick" "--resource-rules=/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app/Contents/ResourceRules.plist" "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app"
/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app: signed bundle with Mach-O thin (i386) [com.nextanalytics.NEXTAuthOSX]

Creating installer package
productbuild --component "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app" /Applications --sign "Developer ID Installer: edward yaternick" "/Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX-0.1.pkg"
productbuild: Adding component at /Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX.app
productbuild: Using timestamp authority for signature
productbuild: Signing product with identity "Developer ID Installer: edward yaternick" from keychain /Users/wyaternick/Library/Keychains/login.keychain
productbuild: Adding certificate "Developer ID Certification Authority"
productbuild: Adding certificate "Apple Root CA"
productbuild: Wrote product to /Users/wyaternick/Projects/NEXT/NEXT/bin/Release/NEXTAuthOSX-0.1.pkg
productbuild: Supported OS versions: [10.6, )

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

Build: 0 errors, 10 warnings
Comment 20 Sebastien Pouliot 2013-01-17 13:06:28 UTC
Thanks, both for confirming the solution and for the help in getting all the information!

I'll ensure future version of Xamarin.Mac does not hang (for missing references) and also offer a better explaination for MM5103.

Good luck with your projects!
Comment 21 Sumalatha 2015-08-21 14:43:12 UTC
Hi,
 I am getting this error while building my project. Have no more description of the error. Can you please suggest me the solution to this error?

"Failed to Compile. Please file a bug report at http://bugzilla.xamarin.com (MM5103)"

Thanks,
Suma