【问题标题】:Error while compiling Mono Source Tree on CentOS - 6.X在 CentOS - 6.X 上编译 Mono 源代码树时出错
【发布时间】:2013-11-20 09:34:39
【问题描述】:

我想在我的 CentOS (i686) 上安装最新的 Mono 版本。由于没有现成的二进制分发版,我尝试从here 中提取最新的 Mono Source 3.2.3。提取源代码后,我将其解压缩,将目录更改为它并尝试以下命令序列 -

[root@localhost mono-3.2.3]# ./configure

没有报告任何问题

[root@localhost mono-3.2.3]# make
make[3]: Entering directory `/usr/local/src/mono-3.2.3/mono/metadata'
  CCLD     pedump
./.libs/libmonoruntime.a(libmonoruntime_la-assembly.o): In function `InterlockedDecrement':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:66: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-assembly.o): In function `InterlockedIncrement':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:61: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-cominterop.o): In function `InterlockedDecrement':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:66: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-cominterop.o): In function `InterlockedIncrement':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:61: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-cominterop.o): In function `InterlockedDecrement':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:66: undefined reference to `__sync_add_and_fetch_4'
./.libs/libmonoruntime.a(libmonoruntime_la-image.o):/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:61: more undefined references to `__sync_add_and_fetch_4' follow
./.libs/libmonoruntime.a(libmonoruntime_la-marshal.o): In function `InterlockedCompareExchangePointer':
/usr/local/src/mono-3.2.3/mono/metadata/../../mono/utils/atomic.h:56: undefined reference to `__sync_val_compare_and_swap_4'
./.libs/libmonoruntime.a(libmonoruntime_la-marshal.o): In function `InterlockedExchangePointer':

在尝试解决此问题时,我发现了 thisthisthis。我试图实施那里提到的解决方案,但没有运气。 有人遇到过吗?

问候, 呸呸呸

【问题讨论】:

    标签: gcc compilation compiler-errors mono centos


    【解决方案1】:

    我在 make 文件中添加了两个编译器开关。

    CPPFLAGS = -m32 -march=i686

    这对我有用。

    【讨论】:

      猜你喜欢
      • 2015-08-25
      • 2015-08-24
      • 2013-05-29
      • 1970-01-01
      • 1970-01-01
      • 2013-11-20
      • 1970-01-01
      • 2022-11-03
      • 2012-03-20
      相关资源
      最近更新 更多