CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiling OpenFOAM 13 in Debug mode (http://www.cfd-online.com/Forums/openfoam-installation/57660-compiling-openfoam-13-debug-mode.html)

fra76 April 13, 2006 04:48

Hi! Because of problems with
 
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

gschaider April 13, 2006 05:13

See the discussion about "Suse
 
See the discussion about "Suse 9.1 Port" (Dont know the exact title; you'll find it when you search for demangle.h)

fra76 April 14, 2006 03:09

Thanks a lot! I've resolved my
 
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


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