如何使用Mono 3.2.3编译F#?

时间:2013-10-06 11:41:20

标签: f# mono

我无法使用Mono 3.2.3编译F#

我正面临着sgen的这个错误,无法解决这个问题

ayhid@localhost ~/m/fsharp> make                                                                          master!
make -C src/fsharp all
make[1]: Entering directory `/home/ayhid/work/fsharp/src/fsharp'
make do-proto
make[2]: Entering directory `/home/ayhid/work/fsharp/src/fsharp'
make -C FSharp.Build-proto do-proto
make[3]: Entering directory `/home/ayhid/work/fsharp/src/fsharp/FSharp.Build-proto'
mono  /home/ayhid/work/fsharp/lib/bootstrap/4.0/../2.0/fssrgen.exe ../FSharp.Build/FSBuild.txt .libs/proto/FSBuild.fs .libs/proto/FSBuild.resx

Native stacktrace:

    mono() [0x4b4761]
    mono() [0x4235bf]
    /lib64/libpthread.so.0() [0x35f3e0efa0]
    mono() [0x5de1e8]
    mono() [0x5de77c]
    mono() [0x5d38cf]
    mono() [0x5d3ac4]
    mono() [0x5d554c]
    mono() [0x5d6194]
    mono() [0x5d9b58]
    mono() [0x5eeee8]
    mono() [0x5ef6f2]
    mono() [0x586e0b]
    mono(mono_runtime_init+0x109) [0x59fae9]
    mono() [0x424155]
    mono(mono_main+0x2e8) [0x489cc8]
    /lib64/libc.so.6(__libc_start_main+0xf5) [0x35f3621b75]
    mono() [0x419d05]

Debug info from gdb:

Mono support loaded.
Mono support loaded.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00000035f3e0eb0c in waitpid () from /lib64/libpthread.so.0
  Id   Target Id         Frame 
* 1    Thread 0x7f6d391e07c0 (LWP 2608) "mono" 0x00000035f3e0eb0c in waitpid () from /lib64/libpthread.so.0

Thread 1 (Thread 0x7f6d391e07c0 (LWP 2608)):
#0  0x00000035f3e0eb0c in waitpid () from /lib64/libpthread.so.0
#1  0x00000000004b4868 in mono_handle_native_sigsegv ()
#2  0x00000000004235bf in mono_sigsegv_signal_handler ()
#3  <signal handler called>
#4  0x00000000005de1e8 in major_copy_or_mark_object ()
#5  0x00000000005de77c in major_scan_object ()
#6  0x00000000005d38cf in sgen_drain_gray_stack ()
#7  0x00000000005d3ac4 in job_scan_from_registered_roots ()
#8  0x00000000005d554c in major_copy_or_mark_from_roots ()
#9  0x00000000005d6194 in major_do_collection ()
#10 0x00000000005d9b58 in sgen_perform_collection ()
#11 0x00000000005eeee8 in alloc_degraded ()
#12 0x00000000005ef6f2 in mono_gc_alloc_mature ()
#13 0x0000000000586e0b in mono_thread_attach_full ()
#14 0x000000000059fae9 in mono_runtime_init ()
#15 0x0000000000424155 in mini_init ()
#16 0x0000000000489cc8 in mono_main ()
#17 0x00000035f3621b75 in __libc_start_main () from /lib64/libc.so.6
#18 0x0000000000419d05 in _start ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

make[3]: *** [.libs/proto/FSBuild.resources] Aborted (core dumped)
make[3]: Leaving directory `/home/ayhid/work/fsharp/src/fsharp/FSharp.Build-proto'
make[2]: *** [do-proto] Error 2
make[2]: Leaving directory `/home/ayhid/work/fsharp/src/fsharp'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ayhid/work/fsharp/src/fsharp'
make: *** [all] Error 2

我试图在configure.ac中注释掉sgen部分,但没有任何改变。

使用Mono 2.10编译它没有问题。

0 个答案:

没有答案