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

Compiling OpenFOAM 13 in Debug mode

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2006, 04:48
Default Hi! Because of problems with
  #1
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 215
Rep Power: 9
fra76 is on a distinguished road
Hi!
Because of problems with splitMesh utility, I'm trying to compile OF on a Fedora Core 5 x86_64 linux workstation, with this settings in .OpenFOAM-1.3/bashrc:

export WM_PRECISION_OPTION=SP
export WM_COMPILE_OPTION=Debug
export WM_JAVAC_OPTION=Opt

After a while, the compiling process return this error:

SOURCE_DIR=global
SOURCE=global/global.C ; g++ -m64 -DlinuxAMD64 -DSP -Wall -W -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.3'"' -I/home/francesco/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/home/francesco/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/linuxAMD64Gcc4SPDebug/global.o
In file included from global/global.C:61:
/home/francesco/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:41:22: error: demangle.h: No such file or directory
/home/francesco/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C: In static member function 'static void Foam::error::printStack(Foam:: Ostream&)':
/home/francesco/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:193: error: 'auto_demangling' was not declared in this scope
/home/francesco/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:194: error: 'cplus_demangle' was not declared in this scope
make: *** [Make/linuxAMD64Gcc4SPDebug/global.o] Error 1

It doesn't stop, and after a while other errors, and it finally stops.

I'm using the gcc 4.1.0 distributed with OpenFOAM, even if it should be exactly the same of Fedora Core 5:

[francesco@donald .OpenFOAM-1.3]$ which gcc
~/OpenFOAM/linuxAMD64/gcc-4.1.0/bin/gcc
[francesco@donald .OpenFOAM-1.3]$ gcc --version
gcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Any suggestions?
Francesco
fra76 is offline   Reply With Quote

Old   April 13, 2006, 05:13
Default See the discussion about "Suse
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
See the discussion about "Suse 9.1 Port" (Dont know the exact title; you'll find it when you search for demangle.h)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 14, 2006, 03:09
Default Thanks a lot! I've resolved my
  #3
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 215
Rep Power: 9
fra76 is on a distinguished road
Thanks a lot! I've resolved my problem with this steps:

1)
I've edited error.C and around the include statement re-define the name locally, i.e.


#define typename FraTypeName
#include <demangle>
#undef typename

(Thanks to Hrvoje Jasak)

2)
Then I've installed binutils-debuginfo (yum install binutils-debuginfo )

3)
And then, at the command line, just before ./Allwmake :
export CPLUS_INCLUDE_PATH=/usr/src/debug/binutils-2.15.92.0.2/include/
with the right version of binutils in the path, of course.
(Thanks to Bernhard Gschaider)

This resolved all the problems I was encountering on Fedora Core 5 !
Francesco
fra76 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when compiling debug version of 141 kar OpenFOAM Installation 0 February 22, 2008 10:59
Compiling errors for OpenFOAM 13 brucejimo OpenFOAM Installation 3 October 5, 2006 00:01
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54
Compiling openfoam zaferleylek OpenFOAM Installation 0 November 7, 2005 08:01
Debug mode with UDF ?? Thierry FLUENT 0 November 4, 2002 05:31


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