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

[OpenFOAM.org] Compiling of Openfoam fails with Debug switch

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

Like Tree1Likes
  • 1 Post By UTAITA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2020, 15:28
Default Compiling of Openfoam fails with Debug switch
  #1
New Member
 
Anik Mazumder
Join Date: May 2017
Posts: 9
Rep Power: 8
anikm is on a distinguished road
I was trying to compile OpneFoam-v1912 in my WSL ubuntu 18.04. I changed the WM_COMPILE_OPTION to "Debug" in the bashrc file and tried to compile with Allwmake. I got the following error. Kindly help me fix this


expressions/exprResult/exprResultGlobals.C: In member function ‘const Foam::expressions::exprResult& Foam::expressions::exprResultGlobals::get(const Foam::word&, const wordUList&) const’:
expressions/exprResult/exprResultGlobals.C:206:58: error: ‘const class Foam::HashTable<Foam::expressions::exprResultGloba ls::Table>’ has no member named ‘sortToc’; did you mean ‘sortedToc’?
<< "Known global scopes: " << variables_.sortToc() << nl;
^~~~~~~
/home/anik/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:34: recipe for target '/home/anik/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Debug/src/OpenFOAM/expressions/exprResult/exprResultGlobals.o' failed
make: *** [/home/anik/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Debug/src/OpenFOAM/expressions/exprResult/exprResultGlobals.o] Error 1
anikm is offline   Reply With Quote

Old   February 17, 2021, 13:20
Default Solution to "Default Compiling of Openfoam fails with Debug switch"
  #2
New Member
 
Kevin
Join Date: Jul 2017
Location: Austin, Texas, USA
Posts: 1
Rep Power: 0
UTAITA is on a distinguished road
Dear Anik,

I don't know if you found the solution yet, but the solution was posted here

OF-v1912 Debug mode compilation ERROR

by Mark Olesen, which I quote:

"This was patched a whole ago in the master branch, now renamed maintenance-v1912.
Otherwise just follow the compiler suggestion and fix the typo (should have indeed been sortedToc, but didn't get noticed in the regular compilation)".

You should then edit the file $WM_PROJECT_DIR/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C

to fix the typo.
Richal Sun likes this.
UTAITA is offline   Reply With Quote

Old   May 11, 2023, 09:41
Default
  #3
New Member
 
Join Date: Dec 2022
Posts: 23
Rep Power: 3
Nitish25 is on a distinguished road
Quote:
Originally Posted by UTAITA View Post
Dear Anik,

I don't know if you found the solution yet, but the solution was posted here

OF-v1912 Debug mode compilation ERROR

by Mark Olesen, which I quote:

"This was patched a whole ago in the master branch, now renamed maintenance-v1912.
Otherwise just follow the compiler suggestion and fix the typo (should have indeed been sortedToc, but didn't get noticed in the regular compilation)".

You should then edit the file $WM_PROJECT_DIR/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C

to fix the typo.
Hey
I am getting same error
kindly help me to resolve it.
TIA
Nitish25 is offline   Reply With Quote

Old   May 18, 2023, 08:49
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Nitish25 View Post
Hey
I am getting same error
kindly help me to resolve it.
TIA
Did you already try with a new source pack? For example,
https://dl.openfoam.com/source/v1912...912_220610.tgz
olesen is offline   Reply With Quote

Reply

Tags
compilation error, debug mode

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 course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
mpif90 breaks after compiling OpenFOAM startingWithCFD OpenFOAM Installation 2 October 1, 2013 09:06
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54


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