CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Trouble compiling on Debian Etch (

jkr April 12, 2006 13:44

Hi, I've been trying now fo

I've been trying now for several hours to get OpenFoam-1.3 compiled on Debian. I've modified bashrc-like files according to the system, compiled libcwd to get "demangle.h"... I'm now stuck with this error:

SOURCE=global/global.C ; g++-4.0 -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O2 -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.3'"' -I/home/XXX/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/home/XXX/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -I/usr/include/libcwd -fPIC -pthread -c $SOURCE -o Make/linuxDPOpt/global.o
/home/XXX/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C: In static member function 'static void Foam::error::printStack(Foam:':
/home/XXX/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:193: error: 'auto_demangling' was not declared in this scope
/home/XXX/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:194: error: 'cplus_demangle' was not declared in this scope

Of course global.o is not built and later readSTLASCII.o fails to build.

BTW is there a way to clean the whole build tree? Scripts like wclean, wmcleanAll... do not clean lam and mico dirs...

Any hint would be appreciated ;-)

System: Debian Etch Linux 2.6.15
Gcc: gcc-4.01 (from the etch tree)

Thanks for your help.


mbeaudoin April 12, 2006 15:01

Hello Julien, The missing d
Hello Julien,

The missing demangle.h file is from the binutils package, not the one from libcwd.

Look up the recent discussion about porting OpenFOAM 1.3 over SuSE 9.1.

Debian based systems have the same problem as RedHat regarding the missing demangle.h file.

I have recompiled OpenFOAM 1.3 on a Debian based system (Knoppix 5.0) last week, and I had to apply the same modification to my local binutils installation as the one described for RedHat.

I am currently in the process of documenting the whole recompilation process for OpenFOAM 1.3, and so far, I successfully recompiled OpenFOAM 1.3 on SuSE 9.1 x86_64, RedHat WS 4, Centos/RedHat 4, and Knoppix 5.0 (which is base on Debian).


grisu April 14, 2006 14:56

Hello Martin, Julien! I'm a
Hello Martin, Julien!

I'm also recompiling OF 1.3 on Debian (AMD64) and have to confirm this "demangle.h"-problem. I tried first with the deb-package binutils-dev, which provides "iberty" , but then I had to install the mentioned rpm-package for the demangle.h.

Next problem was that Xext- and X11-libs are installed only in /usr/X11R6/lib instead of lib64.

At the moment I have troubles compiling mico (if I just run the top Allwmake I get errors that micocoss/mico libraries are not found), so I am trying to compile mico separately.

Sorry, I overlooked this thread, so I posted my last comment in the suse9.1-thread.

All times are GMT -4. The time now is 23:41.