c++: internal compiler error: 已杀死 (program cc1plus)

Asked by Hanying Zhang

Hi,

I am confronted with errors when installing yade from the source code. I have tried enlarge my memory but error is still there. Here is what terminal output. Please help me with that. Thanks!

[ 0%] Automatic MOC for target _polyhedra_utils
[ 0%] Automatic MOC for target WeightedAverage2d
[ 0%] Automatic MOC for target _GLViewer
[ 0%] Automatic MOC for target _packObb
[ 0%] Built target _polyhedra_utils_autogen
[ 0%] Built target _packObb_autogen
[ 0%] Built target WeightedAverage2d_autogen
[ 0%] Built target _GLViewer_autogen
[ 2%] Built target _packObb
[ 3%] Built target WeightedAverage2d
[ 4%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o
[ 5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/GLViewer.cpp.o
[ 5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o
[ 6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/OpenGLManager.cpp.o
In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1809:0,
                 from /home/zhyzhy/myYade/trunk/py/_polyhedra_utils.cpp:15:
/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
/home/zhyzhy/myYade/trunk/gui/qt5/GLViewer.cpp: In member function ‘virtual void GLViewer::keyPressEvent(QKeyEvent*)’:
/home/zhyzhy/myYade/trunk/gui/qt5/GLViewer.cpp:252:36: warning: enum constant in boolean context [-Wint-in-bool-context]
    bool alt=(e->modifiers() && Qt::ShiftModifier);
                                    ^~~~~~~~~~~~~
c++: internal compiler error: 已杀死 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
gui/CMakeFiles/_GLViewer.dir/build.make:86: recipe for target 'gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o' failed
make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o] Error 4
make[2]: *** 正在等待未完成的任务....
CMakeFiles/Makefile2:323: recipe for target 'gui/CMakeFiles/_GLViewer.dir/all' failed
make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
[ 7%] Linking CXX shared library lib/x86_64-linux-gnu/_polyhedra_utils.so
[ 7%] Built target _polyhedra_utils
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hanying Zhang (xxxe) said :
#1

My ubuntu version is 18.04.5 and I want to install yade 18.02b. Thanks!!

Revision history for this message
Jan Stránský (honzik) said :
#2

Hello,

> c++: internal compiler error

this can be due to memory consumption. Please provide more information [1]:
- how much RAM do you have?
- what (exactly) command do you use for compilation?

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
xxxea (xxxea) said :
#3

- how much RAM do you have? I tried 10G, the maximum RAM my laptop can work. - what (exactly) command do you use for compilation? make/make -j4 Thanks! zhanghanying 邮箱:<email address hidden> 签名由 网易邮箱大师 定制 在2021年02月24日 16:20,Jan Stránský 写道: Your question #695721 on Yade changed: https://answers.launchpad.net/yade/+question/695721    Status: Open => Needs information Jan Stránský requested more information: Hello, > c++: internal compiler error this can be due to memory consumption. Please provide more information [1]: - how much RAM do you have? - what (exactly) command do you use for compilation? cheers Jan [1] https://www.yade-dem.org/wiki/Howtoask -- To answer this request for more information, you can either reply to this email or enter your reply at the following page: https://answers.launchpad.net/yade/+question/695721 You received this question notification because you asked the question.

Revision history for this message
Jan Stránský (honzik) said :
#4

> I tried 10G

this should be OK

> make/make -j4

what is make/make??

make -j4 runs 4 compilations at one time, roughly using 4x more memory than one compilation. Try "plain" make without any -j

Try to monitor RAM usage

cheers
Jan

Revision history for this message
xxxea (xxxea) said :
#5

> make/make -j4 I tried 'make' and 'make -j4'. both didn't work. >Try to monitor RAM usage ok I will try it. Thanks! zhanghanying 邮箱:<email address hidden> 签名由 网易邮箱大师 定制 在2021年02月24日 16:45,Jan Stránský 写道: Your question #695721 on Yade changed: https://answers.launchpad.net/yade/+question/695721 Jan Stránský proposed the following answer: > I tried 10G this should be OK > make/make -j4 what is make/make?? make -j4 runs 4 compilations at one time, roughly using 4x more memory than one compilation. Try "plain" make without any -j Try to monitor RAM usage cheers Jan -- If this answers your question, please go to the following page to let us know that it is solved: https://answers.launchpad.net/yade/+question/695721/+confirm?answer_id=3 If you still need help, you can reply to this email or go to the following page to enter your feedback: https://answers.launchpad.net/yade/+question/695721 You received this question notification because you asked the question.

Revision history for this message
Jan Stránský (honzik) said :
#6

On Ubuntu 18.04 and 8 GB RAM, I have never problems with just "make"...
I also don't know any other situation than RAM issues producing this "internal compiler error" (although I am no expert concerning this issue).
Try to run the "make" command on "fresh" system - restart it, run no extra application (just the RAM monitoring ;-) and start "make".
Some applications, e.g. browsers, may use a lot of memory, influencing the compilation.
cheers
Jan

Revision history for this message
xxxea (xxxea) said :
#7

>Try to run the "make" command on "fresh" system - restart it, run no extra application (just the RAM monitoring ;-) and start "make". Some applications, e.g. browsers, may use a lot of memory, influencing the compilation. I tried this. I even started a new system and ran it with no other application working. The error was still there. Thanks! zhanghanying 邮箱:<email address hidden> 签名由 网易邮箱大师 定制 在2021年02月24日 17:05,Jan Stránský 写道: Your question #695721 on Yade changed: https://answers.launchpad.net/yade/+question/695721 Jan Stránský posted a new comment: On Ubuntu 18.04 and 8 GB RAM, I have never problems with just "make"... I also don't know any other situation than RAM issues producing this "internal compiler error" (although I am no expert concerning this issue). Try to run the "make" command on "fresh" system - restart it, run no extra application (just the RAM monitoring ;-) and start "make". Some applications, e.g. browsers, may use a lot of memory, influencing the compilation. cheers Jan -- You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask Hanying Zhang for more information if necessary.

To post a message you must log in.