[Mono-dev] Compiling with NaCl support
Kannan Goundan
kannan at cakoose.com
Mon Aug 16 21:52:41 EDT 2010
I'm not too familiar with this stuff. How do I cross compile Mono? I tried
adding "--target=i386-unknown-linux" to my "./autogen.sh" invocation, but I
got the same error as before. Do I need to create a 32-bit VM (for example,
using Virtual Box) and build Mono in the VM?
On Mon, Aug 16, 2010 at 18:05, Geoff Norton <gnorton at novell.com> wrote:
> Cross compile mono for 32-bits?
>
> -g
>
> On 2010-08-16, at 9:02 PM, Kannan Goundan wrote:
>
> Is there any way to use my 64-bit host machine to generate 32-bit NaCl
> modules?
>
> On Mon, Aug 16, 2010 at 17:39, Geoff Norton <gnorton at novell.com> wrote:
>
>> NACL is only being developed on 32-bit x86 currently.
>>
>> -g
>>
>> On 2010-08-16, at 8:34 PM, Kannan Goundan wrote:
>>
>> I wanted to experiment a bit with Mono's NaCl support, but I can't get it
>> to compile. Any hints?
>>
>> (The README says to use "--enable-nacl" and configure.in mentions
>> "--enabled-nacl-codegen", so I used both.)
>>
>> 1. I'm on Ubuntu 10.04, amd64.
>> 2. I got Mono trunk from GitHub.
>> 3. ./autogen.sh --prefix=/usr/local/stow/Mono-NaCl --enable-nacl-codegen
>> --enable-nacl
>> 4. make
>>
>> [... snip ...]
>> LD libmonosgen-static.la
>> CC mono-main.o
>> LD mono
>> ./.libs/libmono-static.a(libmono_static_la-mini.o): In function
>> `mono_nacl_fix_patches':
>> /home/kannan/Develop/Mono/trunk/mono/mini/mini.c:230: undefined reference
>> to `mono_arch_nacl_skip_nops'
>> ./.libs/libmono-static.a(libmono_static_la-mini.o): In function
>> `mono_nacl_pad_call':
>> /home/kannan/Develop/Mono/trunk/mono/mini/mini.c:208: undefined reference
>> to `mono_arch_nacl_pad'
>> ./.libs/libmono-static.a(libmono_static_la-mini.o): In function
>> `mono_nacl_align_inst':
>> /home/kannan/Develop/Mono/trunk/mono/mini/mini.c:174: undefined reference
>> to `mono_arch_nacl_pad'
>> ./.libs/libmono-static.a(libmono_static_la-mini.o): In function
>> `mono_nacl_align':
>> /home/kannan/Develop/Mono/trunk/mono/mini/mini.c:221: undefined reference
>> to `mono_arch_nacl_pad'
>> ./.libs/libmono-static.a(libmono_static_la-mini.o): In function
>> `mono_nacl_pad_call':
>> /home/kannan/Develop/Mono/trunk/mono/mini/mini.c:216: undefined reference
>> to `mono_arch_nacl_pad'
>> collect2: ld returned 1 exit status
>> make[4]: *** [mono] Error 1
>> make[4]: Leaving directory `/home/kannan/Develop/Mono/trunk/mono/mini'
>> make[3]: *** [all] Error 2
>> make[3]: Leaving directory `/home/kannan/Develop/Mono/trunk/mono/mini'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/kannan/Develop/Mono/trunk/mono'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/kannan/Develop/Mono/trunk'
>> make: *** [all] Error 2
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100816/11a9f757/attachment.html
More information about the Mono-devel-list
mailing list