[Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist
Markku Tavasti
tavasti at tavasti.fi
Tue Jan 31 06:34:19 UTC 2012
I'm trying to build mono from git sources
./autogen.sh --prefix=/usr/local && make && sudo make install
, but unfortunately it fails like this:
make[6]: Entering directory `/home/tavasti/build/mono/mcs'
build/common/basic-profile-check.cs(13,67): error CS0234: The type or
namespace name `AllowReversePInvokeCallsAttribute' does not exist in the
namespace `System.Runtime.InteropServices'. Are you missing an assembly
reference?
Compilation failed: 1 error(s), 0 warnings
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
make[6]: Leaving directory `/home/tavasti/build/mono/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** You need Mono version 2.4 or better installed to build MCS
*** Read INSTALL.txt for information on how to bootstrap a Mono
installation.
make[5]: *** [do-profile-check] Error 1
make[5]: Leaving directory `/home/tavasti/build/mono/mcs'
make[4]: *** [profile-do--basic--all] Error 2
make[4]: Leaving directory `/home/tavasti/build/mono/mcs'
make[3]: *** [profiles-do--all] Error 2
Any hints?
--Tavasti
More information about the Mono-devel-list
mailing list