通过Cygwin在Windows上编译Mono时出错

时间:2015-02-03 11:51:23

标签: build mono makefile cygwin autogen

我遵循本教程:http://www.mono-project.com/docs/compiling-mono/windows/

我已经从GitHub下载了Mono源代码(截至今天)。

我的autogen命令行如下:

sh autogen.sh --host=i686-pc-mingw32

我有两个自动警告,没有错误(见下文)。然后我运行make,我收到了错误:

Makefile:2463: recipe for target 'libmonoruntime_la-threadpool.lo' failed
make[3]: *** [libmonoruntime_la-threadpool.lo] Error 1
make[3]: Leaving directory '/cygdrive/c/projects/mono/mono/mono/metadata'
Makefile:436: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/cygdrive/c/projects/mono/mono/mono'
Makefile:520: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/projects/mono/mono'
Makefile:447: recipe for target 'all' failed
make: *** [all] Error 2

我不知道如何解决这个错误。 libmonoruntime_la-threadpool.lo包含:

# libmonoruntime_la-assembly.lo - a libtool object file
# Generated by doltcompile, not libtool
pic_object='.libs/libmonoruntime_la-assembly.o'
non_pic_object='libmonoruntime_la-assembly.o'

我已检查过并且提到的文件libmonoruntime_la-assembly.o都存在。

完整make输出可在此处找到:http://pastebin.com/WyytVHXq

我也不知道这些错误是否依赖于自动警告。为完整起见,警告是:

mono/unit-tests/Makefile.am:7: warning: variable 'TEST_LDFLAGS' is defined but no program or
mono/unit-tests/Makefile.am:7: library has 'TEST' as canonical name (possible typo)

/cygdrive/c/projects/mono/mono/libgc/missing: Unknown `--is-lightweight' option
Try `/cygdrive/c/projects/mono/mono/libgc/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing

至于第二个警告,我正在寻找更新的libgc missing脚本,但无法找到它。

0 个答案:

没有答案