CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] OpenFoam installation failure with g++ internal compiler error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2020, 17:45
Default OpenFoam installation failure with g++ internal compiler error
Join Date: Mar 2020
Posts: 33
Rep Power: 4
WUYing is on a distinguished road
I installed OpenFOAM7 on Ubuntu 18.04.4 virtual machine on MacOS 10.14.6, following the instructions from

However, when I finished compiling OpenFOAM and inputed "icoFoam -help", there appears an error saying "Command 'icoFoam' not found, but can be installed with: sudo apt install openfoam".

So I checked the log.make file, which had two errors:
g++: internal compiler error: killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
/home/ying/OpenFOAM/OpenFOAM-7/wmake/rules/General/transform:25: recipe for target '/home/ying/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.o' failed
make: *** [/home/ying/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.o] Error 4

How can I solve this problem? Thanks!
WUYing is offline   Reply With Quote

Old   April 2, 2020, 17:46
Senior Member
HPE's Avatar
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 11
HPE is on a distinguished road
OF7 is not version.
HPE is offline   Reply With Quote


g++, installation, internal compiler error, openfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 19:11
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 05:53
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31

All times are GMT -4. The time now is 11:32.