CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compilation error on IA64 g411 (http://www.cfd-online.com/Forums/openfoam-installation/57574-compilation-error-ia64-g411.html)

begou February 13, 2007 05:32

I'm still trying to compile Op
 
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

hjasak February 13, 2007 05:41

You are having probles with th
 
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

begou February 13, 2007 06:23

My C++ compiler seems to work:
 
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


All times are GMT -4. The time now is 04:17.