gpt4 book ai didi

gcc - 在 CentOS - 6.X 上编译 Mono 源代码树时出错

转载 作者:行者123 更新时间:2023-12-02 10:54:57 24 4
gpt4 key购买 nike

我想在我的 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':

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

问候,
欧姆基

最佳答案

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

CPPFLAGS = -m32 -march=i686

这对我有用。

关于gcc - 在 CentOS - 6.X 上编译 Mono 源代码树时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20092123/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com