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

[OpenFOAM.com] v1806 Installing/Compilling error

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

Like Tree1Likes
  • 1 Post By Giantsda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2018, 13:05
Default v1806 Installing/Compilling error
  #1
New Member
 
Lucas Pousa
Join Date: Sep 2018
Location: Rio de Janeiro, Brasil
Posts: 1
Rep Power: 0
Pousa is on a distinguished road
Hello there,

I'm trying to install the OF 1806 version on Ubuntu 16.04 and in the middle of the compilling process I'm getting this error:
Quote:
In file included from /home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/typeInfo.H:57:0,
from /home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/token.H:46,
from /home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:35,
from lnInclude/surfaceFilmModel.H:40,
from lnInclude/surfaceFilmRegionModel.H:38,
from lnInclude/filmSubModelBase.H:39,
from lnInclude/filmViscosityModel.H:39,
from submodels/thermo/filmViscosityModel/liquidViscosity/liquidViscosity.H:38,
from submodels/thermo/filmViscosityModel/liquidViscosity/liquidViscosity.C:26:
/home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/className.H:40:61: internal compiler error: Segmentation fault
static const char* typeName_() { return TypeNameString; } \
^
/home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/className.H:66:5: note: in expansion of macro ‘ClassNameNoDebug’
ClassNameNoDebug(TypeNameString); \
^
/home/pousa/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/typeInfo.H:71:5: note: in expansion of macro ‘ClassName’
ClassName(TypeNameString); \
^
/home/pousa/OpenFOAM/OpenFOAM-v1806/src/thermophysicalModels/reactionThermo/lnInclude/basicMultiComponentMixture.H:81:5: note: in expansion of macro ‘TypeName’
TypeName("basicMultiComponentMixture");
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
/home/pousa/OpenFOAM/OpenFOAM-v1806/wmake/rules/General/transform:34: recipe for target '/home/pousa/OpenFOAM/OpenFOAM-v1806/build/linux64GccDPInt32Opt/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/liquidViscosity/liquidViscosity.o' failed
make: *** [/home/pousa/OpenFOAM/OpenFOAM-v1806/build/linux64GccDPInt32Opt/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/liquidViscosity/liquidViscosity.o] Error 1
typing foamInstallationTest I get this:
Quote:
Basic setup :
-------------------------------------------------------------------------------
OpenFOAM: OpenFOAM-v1806
ThirdParty: ThirdParty-v1806
Shell: bash
Host: pSoares
OS: Linux version 4.15.0-34-generic
-------------------------------------------------------------------------------


Main OpenFOAM env variables :
-------------------------------------------------------------------------------
EnvironmentVariable FileOrDirectory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/pousa/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/pousa/OpenFOAM/pousa-v1806 no no
$WM_THIRD_PARTY_DIR /home/pousa/OpenFOAM/ThirdParty-v1806 yes yes
-------------------------------------------------------------------------------


OpenFOAM env variables in PATH :
-------------------------------------------------------------------------------
EnvironmentVariable FileOrDirectory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/pousa/OpenFOAM/OpenFOAM-v1806 yes yes yes

$FOAM_APPBIN ...06/platforms/linux64GccDPInt32Opt/bin no yes
$FOAM_SITE_APPBIN ...06/platforms/linux64GccDPInt32Opt/bin no no
$FOAM_USER_APPBIN ...06/platforms/linux64GccDPInt32Opt/bin no no
$WM_DIR /home/pousa/OpenFOAM/OpenFOAM-v1806/wmake yes yes yes
-------------------------------------------------------------------------------


OpenFOAM env variables in LD_LIBRARY_PATH :
-------------------------------------------------------------------------------
EnvironmentVariable FileOrDirectory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...06/platforms/linux64GccDPInt32Opt/lib yes yes yes
$FOAM_SITE_LIBBIN ...06/platforms/linux64GccDPInt32Opt/lib no no
$FOAM_USER_LIBBIN ...06/platforms/linux64GccDPInt32Opt/lib no no
$MPI_ARCH_PATH /usr/lib/openmpi yes yes yes
-------------------------------------------------------------------------------


Third-party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
flex 2.6.0 /usr/bin/flex
gcc 5.4.0 /usr/bin/gcc
g++ 5.4.0 /usr/bin/g++
gzip 1.6 /bin/gzip
tar 1.28 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done
It seems to be a problem on the Icofoam solver installation. I followed these steps:

http://https://www.openfoam.com/code/build-guide.php.
Installing these packages:

Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev 
sudo apt install qt5-default libqt5x11extras5-dev libqt5help5 qtdeclarative5-dev qttools5-dev libqtwebkit-dev freeglut3-dev libqt5opengl5-dev texinfo 
sudo apt-get install libscotch-dev libcgal-dev
I tried to install it several times, on different versions of Ubuntu (16.04 and 18.04) and different OF versions (v1806, v1706 and OpenFOAM-6) and always getting the same critical error.

This is my first thread here and i'm new to Ubuntu and OF, can anyone help me?
Pousa is offline   Reply With Quote

Old   September 18, 2018, 02:46
Default Possible Compiler Error??
  #2
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12
pbrady2013 is on a distinguished road
Hi,


Can you try a different compiler version? Although you've already tried that with 18.x verses 16.x.


Are you locked into Ubuntu?


Does foamSystemCheck return all fine?



The error message seems to be indicating a possible compiler error rather than an OpenFOAM source error per se.


I'm currently running 1806+ on CentOS 7 no problems. I do compile my own version of GCC (8.1.x series) and MPI (3.1.x series) though rather than the older versions shipped with C7.


See where you go there and I can try a Ubuntu VM and see if I can reproduce.


Hope that helps,
-pete
pbrady2013 is offline   Reply With Quote

Old   September 19, 2018, 20:00
Default
  #3
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 8
Giantsda is on a distinguished road
I have ran into that problem. I found it was because I used ./Allmake -j 10 while there are only 4 cores on my laptop. But that might not be in your case.

This is an compiler internal error so the code in the openFoam package should be fine.

Try:
1. ./Allmake without specify number of cores.
2. Delete src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/liquidViscosity/liquidViscosity.o to enforce the compiler to compile that again.
3. If the error is still there, I will try to update the gcc and g++ to the latest version.
4. If the error is there after 1-3, I will reinstall ubuntu.


Chen
wyldckat likes this.
Giantsda is offline   Reply With Quote

Reply

Tags
compile issue, icofoam problem, installation, openfoam 1806

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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 01:07.