|
[Sponsors] |
April 13, 2006, 05:48 |
Hi!
Because of problems with
|
#1 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
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 |
|
April 13, 2006, 06:13 |
See the discussion about "Suse
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
April 14, 2006, 04:09 |
Thanks a lot! I've resolved my
|
#3 |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debug mode with UDF ?? | Thierry | FLUENT | 1 | October 9, 2018 22:57 |
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 01:01 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |
Compiling openfoam | zaferleylek | OpenFOAM Installation | 0 | November 7, 2005 08:01 |