CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] OpenFoam installation problem with g++ internal compiler error

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

Like Tree2Likes
  • 1 Post By bestucan
  • 1 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2020, 03:44
Default OpenFoam installation problem with g++ internal compiler error
  #1
New Member
 
Ariful Islam Pranto
Join Date: Jul 2020
Posts: 12
Rep Power: 3
Pranto is on a distinguished road
During compiling on ubuntu 18.04 with gcc-7, I faced the following error
Code:

wmake chemistryModel
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/pranto/Desktop/patrick/enrico_test/enrico/vendor/openfoam/OpenFOAM-dev/wmake/rules/General/transform:25: recipe for target '/home/pranto/Desktop/patrick/enrico_test/enrico/vendor/openfoam/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/chemistrySolvers.o' failed


make[4]: *** [/home/pranto/Desktop/patrick/enrico_test/enrico/vendor/openfoam/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/chemistrySolvers.o] Error 4
How can I solve this problem?

Thanks!
Pranto is offline   Reply With Quote

Old   September 28, 2020, 04:18
Default
  #2
New Member
 
bestucan's Avatar
 
Tu Can
Join Date: Jul 2017
Location: China
Posts: 15
Rep Power: 6
bestucan is on a distinguished road
lack of RAM. OpenFOAM after version 8 need a lot of RAM to be compiled. about 8G~16G. add RAM or extend the swap(slow)
njdyck likes this.
bestucan is offline   Reply With Quote

Old   September 28, 2020, 04:25
Default
  #3
New Member
 
Ariful Islam Pranto
Join Date: Jul 2020
Posts: 12
Rep Power: 3
Pranto is on a distinguished road
Thanks @bestucan. Got it.
Pranto is offline   Reply With Quote

Old   December 10, 2020, 10:40
Default
  #4
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 305
Rep Power: 24
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Quote:
Originally Posted by Pranto View Post
During compiling on ubuntu 18.04 with gcc-7, I faced the following error

...

How can I solve this problem?

Thanks!
This issue seems to be resolved with commit 1cd0840. To quote from the commit message:

... reduces the memory requirement for compilation and speed-up parallel
compilation



by the way: the title of the original question mentions "[OpenFOAM.com]", yet the error message contains "OpenFOAM-dev". You are aware that there is a difference?
OpenFOAM-dev as well as the single-digit releases (OpenFOAM-8, OpenFOAM-7, etc.) are from the OpenFOAM Foundation (openfoam.org)
openfoam.com refers to the ESI-OpenCFD release, which are the date-coded releases (OpenFOAM-2006, OpenFOAM-1912, etc.)
njdyck likes this.
GerhardHolzinger is offline   Reply With Quote

Reply

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
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 08:43
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 21:48
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48


All times are GMT -4. The time now is 13:37.