[Mono-dev] Errors compiling Mono 2.11.2/master for ARM

H . test051102 at hotmail.com
Wed Jun 27 12:41:07 UTC 2012



Hi guys,



there is a documentation of how to
compile Mono for ARM at http://www.mono-project.com/Mono:ARM.
Unfortunately, this guide is totally outdated.



I am using scratchbox2 instead of
scratchbox. It would be nice if the documentation would be updated
accordingly. There are lot's of undocumented pitfalls when trying to
compile Mono for the ARM platform.



I tried compiling the native part in
scratchbox2 as follows:



	./autogen.sh –disable-mcs-build
–host=arm-none-linux-gnueabi
	make „CFLAGS=-DARM_FPU_VFP“|tee
build.log



Compilation stops at
./libgc/pthread_support.c and complains about some missing symbols.
They are declared starting at line 218 as follows:
static pthread_t main_pthread_self;

	static void *main_stack, *main_altstack;


	static int main_stack_size, main_altstack_size;




There are lot's of #define statements
above which cause these declarations to be ignored. To resolve those
problems I've moved the above lines up to line 85. After that, Mono
compiles as expected and works like a charm on a Cortex-A9.



Maybe someone more familar with the
native part of Mono should take a look into the problem and fix it according to my suggestion.






Greetings,
Martin
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120627/53d600d2/attachment.html>


More information about the Mono-devel-list mailing list