我成功地从tarball构建了mono 5.20.1.19。但是从github构建master失败。我不使用现有的Mono安装进行构建,而是为mcs运行make get-monolite-latest。在RedHat 6.9(gcc6.3,cmake3.7.2)上,构建崩溃了(段故障)。在SUSE 12.4(gcc6.3,cmake 3.5.2)上,构建因错误而结束。我以为可能需要签出5.20.1.19分支,但是找不到比4.8还要新的分支。为什么不存在这样的分支?提前致谢。以下是我的构建错误:
RedHat 6.9
make -C建立共享
make [4]:进入目录mono-src/mono/btls/build-shared'
make[5]: Entering directory
mono-src / mono / btls / build-shared'
make [6]:进入目录mono-src/mono/btls/build-shared'
Scanning dependencies of target pqueue
make[6]: Leaving directory
mono-src / mono / btls / build-shared'
make [6]:进入目录mono-src/mono/btls/build-shared'
[ 1%] Building C object boringssl/ssl/pqueue/CMakeFiles/pqueue.dir/pqueue.c.o
^[l/bin/sh: line 1: 42877 Segmentation fault (core dumped) /opt/anss/bin/ccache /opt/anss/bin/gcc -DBORINGSSL_IMPLEMENTATION -Imono-src/external/boringssl/ssl/../include -Imono-src/external/boringssl/ssl/pqueue/../../include -Wall -Wsign-compare -Wmissing-field-initializers -fPIC -ggdb -fvisibility=hidden -Wall -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden -Wshadow -std=c11 -D_XOPEN_SOURCE=700 -o CMakeFiles/pqueue.dir/pqueue.c.o -c mono-src/external/boringssl/ssl/pqueue/pqueue.c
make[6]: *** [boringssl/ssl/pqueue/CMakeFiles/pqueue.dir/pqueue.c.o] Error 139
make[6]: Leaving directory
mono-src / mono / btls / build-shared'
make [5]: * [boringssl / ssl / pqueue / CMakeFiles / pqueue.dir / all]错误2
make [5]:离开目录mono-src/mono/btls/build-shared'
make[4]: *** [all] Error 2
make[4]: Leaving directory
mono-src / mono / btls / build-shared'
make [3]: [build-shared / libmono-btls-shared.so]错误2
make [3]:离开目录mono-src/mono/btls'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
mono-src / mono'
make [1]: [全部递归]错误1
make [1]:离开目录`mono-src'
make:* [all]错误2
SUSE12.4 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” 目录不存在:“ mono-src / external / nuget-buildtasks / src / Microsoft.NuGet.Build.Tasks” // gensources产生8个错误和一组155个文件名 //用'mono-src / mcs / class / lib / build / gensources.exe --strict --platformsdir:./../../ build ../../build/deps/_xbuild_14__Microsoft.NuGet调用。 Build.Tasks.dll.sources Microsoft.NuGet.Build.Tasks.dll xbuild_14' //工作目录为'mono-src / mcs / class / Microsoft.NuGet.Build.Tasks' make [8]: *没有规则来创建目标'../../build/deps/_xbuild_14__Microsoft.NuGet.Build.Tasks.dll.sources','../../build/deps则需要/_xbuild_14__Microsoft.NuGet.Build.Tasks.dll.response'。停止。 ../../build/rules.make:226:“全部”目标的配方失败 make [7]:* [全部操作]错误2