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

[OpenFOAM.org] OF-2.4: Some solvers not compiled in Debian 9.5

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2018, 06:01
Post OF-2.4: Some solvers not compiled in Debian 9.5
  #1
Member
 
Marc
Join Date: May 2017
Posts: 42
Rep Power: 9
Dreoasteh is on a distinguished road
Hi,

I installed OpenFOAM-2.4 on my workstation a while back and now that I need to use the pimpleFoam solver I've realised that not all solvers and utilities were compiled successfully.

The output of foamSystemCheck is gives me a PASS. After my initial installation the foamInstallationTest provides this output.

Code:
Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
OS:                 Linux version 4.9.0-8-amd64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /scratch/marrs/OpenFOAM                  yes       yes
$WM_PROJECT_USER_DIR /home/mech/marrs/OpenFOAM/marrs-2.4.0    yes       no
$WM_THIRD_PARTY_DIR  /scratch/marrs/OpenFOAM/ThirdParty-2.4.0  yes       yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /scratch/marrs/OpenFOAM/OpenFOAM-2.4.0   yes  yes  yes

$FOAM_APPBIN         ...-2.4.0/platforms/linux64GccDPOpt/bin  yes  yes  yes
$FOAM_SITE_APPBIN    .../2.4.0/platforms/linux64GccDPOpt/bin  no        no
$FOAM_USER_APPBIN    ...-2.4.0/platforms/linux64GccDPOpt/bin  yes  yes  no
$WM_DIR              .../marrs/OpenFOAM/OpenFOAM-2.4.0/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         ...-2.4.0/platforms/linux64GccDPOpt/lib  yes  yes  yes
$FOAM_SITE_LIBBIN    .../2.4.0/platforms/linux64GccDPOpt/lib  no        no
$FOAM_USER_LIBBIN    ...-2.4.0/platforms/linux64GccDPOpt/lib  yes  yes  no
$MPI_ARCH_PATH       /usr/lib/x86_64-linux-gnu/openmpi        yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
flex     2.6.1     /usr/bin/flex                                            
gcc      6.3.0     /usr/bin/gcc                                             
g++      6.3.0     /usr/bin/g++                                             
gzip     1.6       /bin/gzip                                                
tar      1.29      /bin/tar                                                 
icoFoam  2.4.0     ...M/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.

Done
The log of my ./Allwmake can be found here.

To shorten things up, I've looked at what the installation tells me it cannot find. I believe these are the ones giving problems in, for instance, the compilation of pimpleFOAM. The output of grep "cannot find" log.make | sort -u is:

Code:
/usr/bin/ld: cannot find -lcoalCombustion
/usr/bin/ld: cannot find -lconversion
/usr/bin/ld: cannot find -lfieldFunctionObjects
/usr/bin/ld: cannot find -lfvOptions
/usr/bin/ld: cannot find -llagrangianIntermediate
/usr/bin/ld: cannot find -llagrangianSpray
/usr/bin/ld: cannot find -llagrangianTurbulence
/usr/bin/ld: cannot find -llagrangianTurbulentSubModels
/usr/bin/ld: cannot find -lsampling
/usr/bin/ld: cannot find -lutilityFunctionObjects
Any ideas on how to go about solving this issue?
Dreoasteh is offline   Reply With Quote

Old   September 1, 2018, 18:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: The main problem is that GCC 6 is not supported for OpenFOAM 2.4. You should use GCC 5 instead.

I haven't written/tested instructions for building OpenFOAM 2.4 on the more recent Ubuntu/Debian versions, but you should be able to roughly follow the same instructions provided for OpenFOAM 2.3.1 and Ubuntu 18.04 here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 - there you will find step-by-step instructions on how to build with GCC 5. Since it's Ubuntu, it should essentially be the same for Debian.
__________________
wyldckat is offline   Reply With Quote

Old   October 18, 2018, 10:52
Default
  #3
Member
 
Marc
Join Date: May 2017
Posts: 42
Rep Power: 9
Dreoasteh is on a distinguished road
Hi Bruno,


Thanks for the insight but unluckily this issue is happening on a workstation in my university, so I have no root access. I have tried to install the g++5 compiler locally but it's a damn mess.
Dreoasteh is offline   Reply With Quote

Old   October 20, 2018, 16:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I don't have time to go over the steps on how you can build OpenFOAM 2.4.0 with a custom GCC build, so my best suggestion is that you install Debian 9.5 within a virtual machine, build OpenFOAM within it and then transfer the OpenFOAM installation folders into the workstation.
wyldckat is offline   Reply With Quote

Old   February 26, 2021, 08:59
Default
  #5
Member
 
Join Date: Nov 2009
Posts: 43
Rep Power: 17
aerospaceman is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I don't have time to go over the steps on how you can build OpenFOAM 2.4.0 with a custom GCC build, so my best suggestion is that you install Debian 9.5 within a virtual machine, build OpenFOAM within it and then transfer the OpenFOAM installation folders into the workstation.
I am having a similar issue where I'm trying to compile OF2.4.0 on Debian 10. The available gcc version is 8.3. AFAIK, the only way to get gcc version 5 is compiling from source. I tried a couple of routes but that seems to be very difficult.

Would it be possible to kindly specify which installation folders to copy over from 9.5 to 10?

Thanks in advance!
aerospaceman is offline   Reply With Quote

Reply


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
[Other] blueCFD-Core-2016 user compiled solvers not running in parallel sbence OpenFOAM Installation 10 December 5, 2018 09:44
complex eigenvalues detected for tensor thegauravonline OpenFOAM Pre-Processing 3 January 14, 2017 06:18
flapping console "inverted" on icoFsiElasticNonLinULSolidFoam: FPE thegauravonline OpenFOAM Running, Solving & CFD 3 May 9, 2016 06:13
FSI solvers - best solvers steven123 OpenFOAM Running, Solving & CFD 0 July 8, 2014 11:26
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50


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