Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cmake 在Ubuntu上构建X86 LLVM_Cmake_Llvm - Fatal编程技术网

Cmake 在Ubuntu上构建X86 LLVM

Cmake 在Ubuntu上构建X86 LLVM,cmake,llvm,Cmake,Llvm,我使用VMware workstation 15运行Ubuntu18.04.3 LTS,分配了40GB的磁盘空间。我正在尝试使用中描述的步骤构建X86 LLVM。 已安装gcc和g++最新版本。 在干净副本上使用的步骤(在安装cmake、git和essentials软件包之后): 一个半小时后,我收到以下消息(剪贴板不工作): 有人知道这是怎么回事吗?您分配了多少内存?默认情况下,我相信是2GBDid,您看到答案了吗?我会尝试使用更多的内存(可能是4GB)来排除这个问题的潜在原因……正如上面的

我使用VMware workstation 15运行Ubuntu18.04.3 LTS,分配了40GB的磁盘空间。我正在尝试使用中描述的步骤构建X86 LLVM。 已安装gcc和g++最新版本。 在干净副本上使用的步骤(在安装cmake、git和essentials软件包之后):

一个半小时后,我收到以下消息(剪贴板不工作):


有人知道这是怎么回事吗?

您分配了多少内存?默认情况下,我相信是2GBDid,您看到答案了吗?我会尝试使用更多的内存(可能是4GB)来排除这个问题的潜在原因……正如上面的问题所回答的,这是一个内存问题。非常感谢。
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
make