make compile time, prompt g++: internal compiler error: directed at program cc1plus , with the following detailed error message:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
.......
Error 4
The is shown in figure 1: font>
figure 1 compiler error message font>
Google, the unified answer is because memory is not enough , free looked at the system memory usage, it was really occupied. Since the device is the company’s uniform compilation platform (used by several colleagues), this is not surprising. As shown in figure 2: font>
figure 2 free – h details font>
can be solved by the following solution:
(1) sudo dd if=/dev/zero of=/swapfile bs=64M count=16 (the size of count is the size of the increased swap space, 64M is the block size, So the space size is bs*count=1024MB)
(2)sudo mkswap /swapfile (format the space just now as swap format) (3)sudo swapon /swapfile (use the swap space just created)
The font>
font>
font>
font>
font>
font>
font>
font>
font>
font>
font>
Read More:
- [Solved] Linux C++ Compile Error: c++: internal compiler error: Killed (program cc1plus)
- cenos Upgrade g++ gcc(cc1plus: error: unrecognized command line option “-std=c++11”)
- [C + +] G + + compiler class template error message: template argument 1 is invalid
- Compliation failed : internal java compiler error
- Error:java: Compilation failed: internal java compiler error
- Java idea Compilation failed: internal java compiler error
- Java: compilation failed: internal java compiler error and invalid source distribution resolution
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- fatal error C1001: INTERNAL COMPILER ERROR
- Idea Tomcat start error Error:java : Compilation failed: internal java compiler error
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Solutions to error: Java: compilation failed: internal java compiler error
- Idea error: Java: compilation failed: internal java compiler error
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- idea Error:java: Compilation failed: internal java compiler error
- Linux c running error killed
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- Ubuntu: Failed to initialize compiler: object java.lang.Object In compiler mirror not found
- How to Solve Error: The emulator process for AVD was killed.