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

[OpenFOAM.org] OpenFOAM-4.1 compile error on openSUSE Tumbleweed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2016, 10:59
Smile OpenFOAM-4.1 compile error on openSUSE Tumbleweed
  #1
New Member
 
Jason
Join Date: Dec 2014
Location: Shanghai, China
Posts: 10
Rep Power: 11
zbli is on a distinguished road
Hi there

Error surfaces while I was compiling OpenFOAM-4.1 with gcc-6.2 on the Tumbleweed.
I haven't seen any issues like that. Please help

Code:
In file included from /home/zbli/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude/postProcess.H:129:0,
                 from coldEngineFoam.C:47:
../XiFoam/createFields.H: In function ‘int main(int, char**)’:
../XiFoam/createFields.H:3:9: error: ‘psiuReactionThermo’ was not declared in this scope
 autoPtr<psiuReactionThermo> pThermo
         ^~~~~~~~~~~~~~~~~~
../XiFoam/createFields.H:3:27: error: template argument 1 is invalid
 autoPtr<psiuReactionThermo> pThermo
                           ^
../XiFoam/createFields.H:5:5: error: ‘psiuReactionThermo’ is not a class, namespace, or enumeration
     psiuReactionThermo::New(mesh)
     ^~~~~~~~~~~~~~~~~~
../XiFoam/createFields.H:7:21: error: ‘thermo’ was not declared in this scope
 psiuReactionThermo& thermo = pThermo();
                     ^~~~~~
../XiFoam/createFields.H:7:38: error: ‘pThermo’ cannot be used as a function
 psiuReactionThermo& thermo = pThermo();
                                      ^
../XiFoam/createFields.H:10:1: error: ‘basicMultiComponentMixture’ was not declared in this scope
 basicMultiComponentMixture& composition = thermo.composition();
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../XiFoam/createFields.H:10:29: error: ‘composition’ was not declared in this scope
 basicMultiComponentMixture& composition = thermo.composition();
                             ^~~~~~~~~~~
In file included from /home/zbli/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude/postProcess.H:129:0,
                 from coldEngineFoam.C:47:
../XiFoam/createFields.H:93:9: error: ‘laminarFlameSpeed’ was not declared in this scope
 autoPtr<laminarFlameSpeed> unstrainedLaminarFlameSpeed
         ^~~~~~~~~~~~~~~~~
../XiFoam/createFields.H:93:26: error: template argument 1 is invalid
 autoPtr<laminarFlameSpeed> unstrainedLaminarFlameSpeed
                          ^
../XiFoam/createFields.H:95:5: error: ‘laminarFlameSpeed’ is not a class, namespace, or enumeration
     laminarFlameSpeed::New(thermo)
     ^~~~~~~~~~~~~~~~~
../XiFoam/createFields.H:93:28: warning: unused variable ‘unstrainedLaminarFlameSpeed’ [-Wunused-variable]
 autoPtr<laminarFlameSpeed> unstrainedLaminarFlameSpeed
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/home/zbli/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8: /home/zbli/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/solvers/combustion/coldEngineFoam/coldEngineFoam.o] Error 1
make[1]: *** [/home/zbli/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: coldEngineFoam] Error 2
make: *** [/home/zbli/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: combustion] Error 2
zbli is offline   Reply With Quote

Old   December 10, 2016, 00:09
Default
  #2
New Member
 
Jason
Join Date: Dec 2014
Location: Shanghai, China
Posts: 10
Rep Power: 11
zbli is on a distinguished road
Hi, anyone can help?
I recompiled this with different versions of gcc(4.9.4) and openmpi(1.8/1.10) and it didn't help any. I guess I must have something missed here. But I did follow the instruction of Wiki for Suse installation.

I'm totally confused with this issue and have no idea how I could run into this.

BTW, I tried to compile swak4Foam for the OF2.3.0version which I have in my PC as an alternative to deal with postProcessing, but also failed anyway.
zbli is offline   Reply With Quote

Old   December 13, 2016, 17:13
Default
  #3
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: Sorry, I saw this thread during the weekend, but didn't manage to find the time needed to look into this before.
Nonetheless, we are already addressing this in the bug tracker here: https://bugs.openfoam.org/view.php?id=2386

As for the problem you had in building swak4Foam, more details are needed, namely which installation instructions you've followed and which version you've downloaded.
__________________
wyldckat is offline   Reply With Quote

Old   January 15, 2017, 07:16
Default
  #4
New Member
 
Daniel Deising
Join Date: Feb 2013
Location: Darmstadt, Germany
Posts: 2
Rep Power: 0
danieldeising is on a distinguished road
Hi Wyldcat,

thx very much for the Issue Tracking report!
I had the same problem as reported by zbli on my Ubuntu 12.04 LTS
and resetting CPLUS_INCLUDE_PATH solved the problem for me.
The path had a leading colon in front. Resetting the variable
without the colon fixed the issue.

Best,
Daniel
danieldeising 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
OpenFOAM 4.1 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 October 13, 2016 07:42
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio alberto OpenFOAM 40 May 23, 2010 17:15


All times are GMT -4. The time now is 04:42.