|
[Sponsors] |
February 13, 2007, 05:32 |
I'm still trying to compile Op
|
#1 |
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
I'm still trying to compile OpenFOAM on an Altix server (IA64, SLES9, g++-4.1.1) after installing this new g++ version (4.1.1) as suggested on this forum.
Now, the compilation fails after several hours with these messages that I do not understand: /scratch/begou/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxIA64Gcc4DPOpt/lib/lib micocoss2.3.11.a(CosNaming.o)(.text+0x22e1): In function `_Marshaller__seq_CosNaming_Binding::free(void*) const': : undefined reference to `std::__default_alloc_template<true,>::_S_force_ne w' /scratch/begou/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxIA64Gcc4DPOpt/lib/lib micocoss2.3.11.a(CosNaming.o)(.text+0x2321): In function `_Marshaller__seq_CosNaming_Binding::free(void*) const': : undefined reference to `std::__default_alloc_template<true,>::_S_force_ne w' etc... The command executed by Allwmake which produce these messages is: /opt/gcc/bin/g++-4.1.1 -L/opt/gcc/lib -DlinuxIA64 -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/scratch/begou/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxIA64Gcc4DPOpt/inclu de -I../FoamXServer -I/scratch/begou/OpenFOAM-1.3/src/triSurface/lnInclude -I/scratch/begou/OpenFOAM-1.3/src/meshTools/lnInclude -I/scratch/begou/OpenFOAM-1.3/src/dynamicMesh/lnInclude -I/scratch/begou/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC Make/linuxIA64Gcc4DPOpt/PatchToolServer.o Make/linuxIA64Gcc4DPOpt/IPatchToolServerImpl.o Make/linuxIA64Gcc4DPOpt/FoamXErrors.o Make/linuxIA64Gcc4DPOpt/LogEntry.o Make/linuxIA64Gcc4DPOpt/LogManager.o Make/linuxIA64Gcc4DPOpt/NameServer.o Make/linuxIA64Gcc4DPOpt/Orb.o Make/linuxIA64Gcc4DPOpt/Paths.o -L/scratch/begou/OpenFOAM-1.3/lib/linuxIA64Gcc4DPOpt \ -L/scratch/begou/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxIA64Gcc4DPOpt/lib -lmicocoss2.3.11 -lmico2.3.11 -ldl -lPatchToolServer -ltriSurface -ldynamicMesh -lmeshTools -lOpenFOAM -L/opt/gcc/lib -liberty -o /scratch/begou/OpenFOAM-1.3/applications/bin/linuxIA64Gcc4DPOpt/PatchToolServer Any suggestions ? Thanks for your help. Patrick |
|
February 13, 2007, 05:41 |
You are having probles with th
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
You are having probles with the compiler or the standard C++ libraries that come with it. This usually happens when your environment mixes 32- and 64-bit stuff. Try compiling something trivial that uses STL and see what happens:
#include <iostream> using namespace std; int main() { cout << "Hello, world!" << endl; return 0; } Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
February 13, 2007, 06:23 |
My C++ compiler seems to work:
|
#3 |
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
My C++ compiler seems to work:
begou@kolmo: /opt/gcc/bin/g++-4.1.1 toto.C begou@kolmo: ./a.out Hello, world! begou@kolmo: cat toto.C #include <iostream> using namespace std; int main() { cout << "Hello, world!" << endl; return 0; } I also try he compiler with a generic class (string) successfuly. .... string cc; cin>>cc ; cout<<cc<<endl; .... I'm using the absolute PATH because g++-4.1.1 is not supported by SLES9 and I have compiled it from sources and installed ins /opt/gcc. With OpenFoam wmake, I've tried to add -L/opt/gcc/lib at first place but it do not help anymore. Patrick |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf compilation error | sdp | FLUENT | 0 | February 5, 2009 03:58 |
Compilation error | skabilan | OpenFOAM Installation | 1 | September 17, 2007 14:33 |
Compilation error CFX 11 | Beth | CFX | 0 | July 26, 2007 20:36 |
error during UDF compilation | mvee | FLUENT | 3 | May 3, 2007 06:03 |
Compilation error on IA64 | olol1976 | OpenFOAM Installation | 1 | October 19, 2006 15:11 |