c++: internal compiler error: Killed (program cc1plus)

Share:
## c++: internal compiler error: Killed (program cc1plus) ## Description ```sh [ 44%] Building CXX object CMakeFiles/opengv.dir/src/relative_pose/modules/fivept_kneip/code.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. CMakeFiles/opengv.dir/build.make:419: recipe for target 'CMakeFiles/opengv.dir/src/absolute_pose/modules/upnp2.o' failed make[5]: *** [CMakeFiles/opengv.dir/src/absolute_pose/modules/upnp2.o] Error 4 make[5]: *** Waiting for unfinished jobs.... ``` ## Solution Enlarge the swap file - Deactivate the swap ```sh sudo swapon /swapfile ``` - create a file which will be used as a swap space. bs is the size of one block. count is num of blocks. it will get 1024K * 1M = 1G space. ```sh sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576 ``` 20G: sudo dd if=/dev/zero of=/swapfile bs=64M count=320 - Ensure that only the root user can read and write the swap file: ```sh sudo chmod 600 /swapfile ``` - set up a Linux swap area on the file ```sh sudo mkswap /swapfile ``` - activate the swap ```sh sudo swapon /swapfile ``` - "sudo swapon --show" or "sudo free -h" you will see the swap space. cover

No comments