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

Debug version of OpenFOAM-1.6

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

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2023, 08:31
Default
  #21
New Member
 
Join Date: Dec 2022
Posts: 23
Rep Power: 4
Nitish25 is on a distinguished road
Quote:
Originally Posted by anikm View Post
I have followed your instruction in my WSL ubuntu 18.04 for OpenFOAM-v1912. For Opt mode as usual there is no error. However, in "Debug" mode I am finding the following error.


g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I/home/anik/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Debug/src/OpenFOAM -IlnInclude -I. -I/home/anik/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/anik/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude -fPIC -c expressions/exprString/exprString.C -o /home/anik/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Debug/src/OpenFOAM/expressions/exprString/exprString.o
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


Can you kindly help me?
Hey
I am getting same error
kindly help me to resolve it.
TIA
Nitish25 is offline   Reply With Quote

Old   February 17, 2025, 09:24
Default
  #22
New Member
 
Shyam Sundar J
Join Date: Apr 2024
Posts: 2
Rep Power: 0
Shyam Sundar J is on a distinguished road
Hi Mr. Bruno, I'm trying to work with debug version of OpenFOAM and thanks for your instructions, I created all the aliases and changes as it is intended.

Now I'm currently using OpenFOAM v2312 and I'm wondering how to compile the debug version. I'm new to this and I needed some help on compiling the debug version.
To be honest, I didn't really understand the term compiling the debug version and creating the linux64debug file in platforms.

I really want to use both the opt and debug modes in the same terminal and want to switch between then using aliases.

Can you please help with me?

I understand this is a very old post and I was 6 years old when this thread was created.
Can anyone please help me with this?

Best Regards,
Shyam
Shyam Sundar J is offline   Reply With Quote

Old   February 19, 2025, 08:17
Default
  #23
Member
 
Shravan
Join Date: Mar 2017
Posts: 89
Rep Power: 10
Severus is on a distinguished road
Hello,
Few years back I made a document that contains the procedure on Debug mode compilation.
I have attached it below.

It is tested for OpenFOAM v9 with Ubuntu 20.04
Since you use ESI version, some of the paths might change in your case.
At the end of the document, I have added a list of reference links that helped me do this (thanks to this community). You can check out those links as well.

Good luck!
Severus is offline   Reply With Quote

Old   February 20, 2025, 14:56
Default
  #24
New Member
 
Shyam Sundar J
Join Date: Apr 2024
Posts: 2
Rep Power: 0
Shyam Sundar J is on a distinguished road
Thank you so much for your response. I'll use this document and add debug mode and let you know about my updates.
Shyam Sundar J is offline   Reply With Quote

Reply

Tags
debug version error g++

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 on cluster: version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie OpenFOAM 10 April 19, 2021 19:06
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 22:47
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 18:55


All times are GMT -4. The time now is 16:20.