[Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist
Marek Safar
marek.safar at gmail.com
Tue Jan 31 10:52:37 UTC 2012
Hello,
Just follow what the error message says
You need Mono version 2.4 or better installed to build MCS
Marek
> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list