CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Compilation error on IA64 g411

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2007, 04:32
Default I'm still trying to compile Op
  #1
New Member
 
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17
begou is on a distinguished road
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
begou is offline   Reply With Quote

Old   February 13, 2007, 04:41
Default You are having probles with th
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   February 13, 2007, 05:23
Default My C++ compiler seems to work:
  #3
New Member
 
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17
begou is on a distinguished road
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
begou is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
udf compilation error sdp FLUENT 0 February 5, 2009 02:58
Compilation error skabilan OpenFOAM Installation 1 September 17, 2007 13:33
Compilation error CFX 11 Beth CFX 0 July 26, 2007 19:36
error during UDF compilation mvee FLUENT 3 May 3, 2007 05:03
Compilation error on IA64 olol1976 OpenFOAM Installation 1 October 19, 2006 14:11


All times are GMT -4. The time now is 22:09.