LLVM compilation requires large disk space, dozens of G is not enough, will have the following error.
clang: error: unable to execute command: Killed
Copy the code
The blog said it was the swap size, which was fixed first, and then the disk space.
Following is the process of LVM under VMare Ubuntu 16.04, some pictures were cut off, some were not cut off, the following is a summary of the process, maps.
- First of all, the first few compilations, based on the latest version of LLVM, always failed in the middle of the compilation, there was a switch to the 3.8 version but succeeded. This time the cause was found to be insufficient disk space.
df -h
View the available disk size.
2. VMWare adjusts the disk space. Added 30 GB of disk space. This shut down the virtual machine, set the disk space, expand. 3. However, I used logical volume storage in Ubuntu, so I need to expand the partition. I am not familiar with the command line, so I found a method of setting the gParted graphical interface.
Download the GParted image: gparted.org/download.ph…
- VMWare Configure the VM to use an ISO image
The vM must connect to the IOS CD.
- VMWare power on, press F2 immediately to set the BIOS to enter from CD.
- Enter the gParted ISO booted system, some language Settings
- The gParted graphical interface is now available, but the online expansion tutorial does not apply.
Changing the size directly does not apply.
For the LVM expansion method of GParted, see this link. Remember to APPLY.
- Backup your data in case anything should happen to go wrong.
- Boot VM using GParted Live.
- Select /dev/sda5 LVM2 PV partition
- Choose Partition -> Deactivate
- Select /dev/sda2 Extended partition
- Choose Partition -> Resize/Move
- Grow the partition to the end of the drive.
- Select /dev/sda5 LVM2 PV partition
- Choose Partition -> Resize/Move
- Grow the partition to butt up against the end of the sda2 Extended partition.
- Apply the operation Exit GParted, and boot into the VM OS. In a terminal window, with root privilege (su or sudo), use the appropriate
lvresize command line options to grow the logical volume(s) you wish to increase in size.
- Effect after expansion. I don’t know why I left 1M.
9. Uninstall the ISO image.
- Log in to the Linux operating system and use the LVM command line to manage the system.
df -h
Partitions required for capacity expansion, for example/dev/mapper/dev--vg-root
:lvresize -L +30G /dev/mapper/dev--vg-root resize2fs /dev/mapper/dev--vg-root Copy the code