Mono build error

Ryan Schmidt ryandesign at macports.org
Wed Jan 11 12:29:30 PST 2012


On Jan 11, 2012, at 13:48, Botond Balázs wrote:

> I'm new to Mac OS X and MacPorts in particular but not to Unix and package managers in general. I installed MacPorts about a week ago and used it without problems. Today I tried to install mono and it failed:
> 
> --->  Computing dependencies for mono
> --->  Configuring mono
> Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
> Log for mono is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mono/mono/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <http://guide.macports.org/#project.tickets>
> 
> I checked the log and found this:
> 
> :info:configure checking for gcc... (cached) /Developer/usr/bin/clang -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mono/mono/work/mono-2.10.6/libgc/include
> :info:configure checking whether the C compiler works... no
> :info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mono/mono/work/mono-2.10.6':
> :info:configure configure: error: C compiler cannot create executables
> :info:configure See `config.log' for more details
> :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mono/mono/work/mono-2.10.6" && ./configure --prefix=/opt/local --with-gc=included --with-preview=yes --without-sigaltstack --with-libgdiplus=/opt/local --disable-dtrace " returned error 77
> :error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
> :debug:configure Backtrace: configure failure: shell command failed (see log for details)
>     while executing
> "$procedure $targetname"
> :info:configure Warning: the following items did not execute (for mono): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
> :notice:configure Log for mono is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mono/mono/main.log
> 
> I know that Xcode needs to be installed with System Tools and Unix Development enabled. I installed it from the App Store and ran the installer from Launchpad. As far as I know, the installer installs these two components but correct me if I'm wrong.
> 
> I have once installed Mono using the dmg installer from mono-project.com, but I later uninstalled it using this script: http://www.mono-project.com/Mono:OSX#Uninstalling_Mono_on_Mac_OS_X.
> 
> Do you have any idea what might cause this error? Any help would be greatly appreciated.

Since this was not a clean build attempt, clean ("sudo port clean mono") and try again. If same error, do what it says in the error message: "See 'config.log' for more details".



More information about the macports-users mailing list