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

OpenFOAM with IBM AIX

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2005, 19:26
Default Hi, i'm trying to compile O
  #1
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Hi,

i'm trying to compile OpenFOAM under AIX with the xlc, but i get errors only. First the rule file for xlc is absolutly different comparing to all other gcc rule files.
If anybody has such a file, then it would be nice to post it.
But in the moment it seems, that i give up to compile OpenFOAM with the xlc, because the entire code, especially the makefiles are not build for AIX and xlc.

The errors look like:
SOURCE_DIR=.
SOURCE=Pstream.C ; xlC -Dibm -qflag=w:w -O3 -DNoRepository -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/ibmOpt/inc lude -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -qpic=large -pthread -q64 -c $SOURCE -o Make/ibmOpt/Pstream.o
/aws/sys/xlc600_200412/usr/vacpp/bin/.orig/xlC: 1501-210 command option t contains an incorrect subargument
1540-5200 (W) The option "pic=large" is not supported.
"/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/HashTable.C" , line 339.19: 1540-1118 (S) The declaration of "iter" uses the undefined class "Foam::HashTable<class>::Iterator<foam::string > &,Foam::HashTable<class>::hashedEntry *>" when the class must be complete.
"/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/HashTable.C" , line 322.6: 1540-0700 (I) The previous message was produced while processing "Foam::HashTable<class>::resize(const label)".
"/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/HashTable.C" , line 254.9: 1540-0700 (I) The previous message was produced while processing "Foam::HashTable<class>::insert(const Foam::word &, Foam::string)".
"Pstream.C", line 53.20: 1540-0700 (I) The previous message was produced while processing "Foam::Pstream::addValidParOptions(HashTable<foam: :string,foam::word,foam::strin g::hash> &)".
make: 1254-004 The error code from the last command is 1.


Those kinds of errors happen through the entire code.

mfg,

Matthias
matthias is offline   Reply With Quote

Old   December 12, 2005, 02:09
Default You should use the gnu compile
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
You should use the gnu compiler instead
g++ 4.0.2, it compiles fine under aix so that will no be a problem.

for the wmake/rules i use this, which works fine.
*** c++ ***
CC = g++ -fpermissive -maix32

LINKLIBSO = $(CC) $(c++FLAGS) -shared -Wl,-G -Wl,-bbigtoc -Wl,-brtl -Wl,-bnoentry

LINKEXE = $(CC) $(c++FLAGS) -Wl,-brtl

The -fpermissive flags is necessary for the X-includes used by foam for the Gstream lib.

N
niklas is offline   Reply With Quote

Old   December 12, 2005, 10:10
Default Can you upload the binaries of
  #3
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Can you upload the binaries of the gnu gcc 4.0.2?
When i try to compile under AIX, there are errors only and its very slow. Or do you have a tested instruction for building the gcc under AIX?
matthias is offline   Reply With Quote

Old   December 12, 2005, 10:20
Default it sounds like you are standin
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
it sounds like you are standing in the gcc-4.0.2 dir and using ksh shell.

create a build dir in gcc-4.0.2.
cd gcc-4.0.2
mkdir build
cd build
../configure --prefix=$HOME/OpenFOAM/ibm/gcc-4.0.2 --enable-shared --enable-__cxa-atexit --enable-languages=c,c++
make
make install

you might have to install autoconf, automake, make, bison and flex prior to gcc also.

and building gcc under ksh is known to be very slow so before you do configure you type bash, so you're in that environment instead.

N
niklas is offline   Reply With Quote

Old   December 12, 2005, 13:18
Default Ok, thanks i have compile
  #5
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Ok, thanks


i have compiled the gcc and it runs fine. But when i try to build OpenFOAM, there are several errors.

First i copied the linux rule file to a directory ibmGcc. Then i changed the settings for c++ and c like yours. And finally, i removed the wmkldeps file to force OpenFOAM to build a new one.

After modifying the bash-scripts, i run Allwmake. I took LAM as MPI in the script.

It started well, but there were some problems with lam, he could not build all modules. After that OpenFOAM compiled. And now i get errors like these:

/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/wmake/bashScripts/mkObjectDir /fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/lib/ibmGccOpt/lam-7.1.1/libPstream
rm -f so_locations
cd Make/ibmGccOpt ; g++ -fpermissive -maix32 -Dibm -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/ibmGccOpt/ include -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -shared -Wl,-G -Wl,-bbigtoc -Wl,-brtl -Wl,-bnoentry OPwrite.o IPread.o Pstream.o -L/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/lib/ibmGccOpt -L/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/ibmGccOpt/ lib -lmpi -llam -lpthread -lutil -o /fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.2/lib/ibmGccOpt/lam-7.1.1/libPstream.s o
collect2: library libutil not found
make: 1254-004 The error code from the last command is 1.


Stop.
Target "allFiles" is up to date.
Target "lnInclude/uptodate" is up to date.
/bin/sh: not found

make: 1254-004 The error code from the last command is 1.


Stop.
libso
"global/global.dep", line 0: make: 1254-027 Cannot open global/global.dep.
"OSspecific/Unix/sigfpe.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/sigfpe.dep.
"OSspecific/Unix/sigInt.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/sigInt.dep.
"OSspecific/Unix/sigQuit.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/sigQuit.dep.
"OSspecific/Unix/timer.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/timer.dep.
"OSspecific/Unix/fileStat.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/fileStat.dep.
"OSspecific/Unix/Unix.dep", line 0: make: 1254-027 Cannot open OSspecific/Unix/Unix.dep.
"global/argList/argList.dep", line 0: make: 1254-027 Cannot open global/argList/argList.dep.
"primitives/bool/bool.dep", line 0: make: 1254-027 Cannot open primitives/bool/bool.dep.
"primitives/bool/boolIO.dep", line 0: make: 1254-027 Cannot open primitives/bool/boolIO.dep.
"primitives/char/charIO.dep", line 0: make: 1254-027 Cannot open primitives/char/charIO.dep.
"primitives/int/intIO.dep", line 0: make: 1254-027 Cannot open primitives/int/intIO.dep.
"primitives/uint/uintIO.dep", line 0: make: 1254-027 Cannot open primitives/uint/uintIO.dep.
"primitives/long/longIO.dep", line 0: make: 1254-027 Cannot open primitives/long/longIO.dep.
"primitives/label/label.dep", line 0: make: 1254-027 Cannot open primitives/label/label.dep.
"primitives/scalar/scalar.dep", line 0: make: 1254-027 Cannot open primitives/scalar/scalar.dep.
"primitives/labelVector/labelVector.dep", line 0: make: 1254-027 Cannot open primitives/labelVector/labelVector.dep.
"primitives/vector/vector.dep", line 0: make: 1254-027 Cannot open primitives/vector/vector.dep.
"primitives/labelTensor/labelTensor.dep", line 0: make: 1254-027 Cannot open primitives/labelTensor/labelTensor.dep.
"primitives/tensor/tensor.dep", line 0: make: 1254-027 Cannot open primitives/tensor/tensor.dep.
"primitives/complex/complex.dep", line 0: make: 1254-027 Cannot open primitives/complex/complex.dep.
"primitives/complexVector/complexVector.dep", line 0: make: 1254-027 Cannot open primitives/complexVector/complexVector.dep.
"primitives/strings/string/string.dep", line 0: make: 1254-027 Cannot open primitives/strings/string/string.dep.
"primitives/strings/string/stringIO.dep", line 0: make: 1254-027 Cannot open primitives/strings/string/stringIO.dep.
"primitives/strings/word/word.dep", line 0: make: 1254-027 Cannot open primitives/strings/word/word.dep.
"primitives/strings/word/wordIO.dep", line 0: make: 1254-027 Cannot open primitives/strings/word/wordIO.dep.
"primitives/strings/fileName/fileName.dep", line 0: make: 1254-027 Cannot open primitives/strings/fileName/fileName.dep.
"primitives/strings/fileName/fileNameIO.dep", line 0: make: 1254-027 Cannot open primitives/strings/fileName/fileNameIO.dep.
"containers/HashTables/HashTable/HashTableName.dep", line 0: make: 1254-027 Cannot open containers/HashTables/HashTable/HashTableName.dep.
"containers/Lists/SortableList/ParSortableListName.dep", line 0: make: 1254-027 Cannot open containers/Lists/SortableList/ParSortableListName.dep.
"containers/Lists/PackedList/PackedListName.dep", line 0: make: 1254-027 Cannot open containers/Lists/PackedList/PackedListName.dep.
"containers/Lists/ListOps/ListOps.dep", line 0: make: 1254-027 Cannot open containers/Lists/ListOps/ListOps.dep.
"primitives/Lists/boolList.dep", line 0: make: 1254-027 Cannot open primitives/Lists/boolList.dep.
"primitives/Lists/labelIOList.dep", line 0: make: 1254-027 Cannot open primitives/Lists/labelIOList.dep.
"primitives/Lists/scalarList.dep", line 0: make: 1254-027 Cannot open primitives/Lists/scalarList.dep.
"primitives/Lists/vectorList.dep", line 0: make: 1254-027 Cannot open primitives/Lists/vectorList.dep.
"primitives/Lists/tensorList.dep", line 0: make: 1254-027 Cannot open primitives/Lists/tensorList.dep.

and so on ...

What is wrong? I think he has not build lam correctly! Or are my rule-files incorrect?

mfg,
Matthias
matthias is offline   Reply With Quote

Old   December 13, 2005, 02:13
Default Could you try to build it with
  #6
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Could you try to build it without LAM support.
I am not sure what is going on there so I dont know if its your setup or if your missing something to build LAM.
the /bin/sh: not found is slightly worrying me... surely /bin/sh must exist?

in ~/.OpenFOAM-1.2/cshrc (or bash) set WM_MPILIB to nothing

setenv WM_MPLIB

and see if that builds first.

N
niklas is offline   Reply With Quote

Old   January 16, 2006, 06:23
Default Hallo, It took a long time,
  #7
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Hallo,

It took a long time, but now i have compiled OpenFOAM with the gcc under AIX, but there are still errors:

In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:100:1: warning: "asinl" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:616:1: warning: this is the location of the previous definition
In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:115:1: warning: "fabsl" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:630:1: warning: this is the location of the previous definition
In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:120:1: warning: "floorl" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:632:1: warning: this is the location of the previous definition
In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:125:1: warning: "ceill" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:621:1: warning: this is the location of the previous definition
In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:130:1: warning: "powl" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:658:1: warning: this is the location of the previous definition
In file included from ../include/mico/os-math.h:315,
from os-unix.cc:53:
../include/mico/lmath.h:135:1: warning: "fmodl" redefined
In file included from ../include/mico/os-math.h:302,
from os-unix.cc:53:
/fastfs/work/mviargog/OpenFOAM/ibm/gcc-4.0.2/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0. 2/include/math.h:636:1: warning: this is the location of the previous definition
../include/mico/iop.h:565: warning: 'class MICO::GIOPConnMgr' has virtual functions but non-virtual destructor
../include/mico/os-math.h:401: error: 'static MICO_LongDouble OSMath::nan()' cannot be overloaded
../include/mico/os-math.h:342: error: with 'static MICO_Double OSMath::nan()'
../include/mico/os-math.h: In static member function 'static MICO_Double OSMath::infinity(MICO_Boolean)':
../include/mico/os-math.h:335: warning: division by zero in '-0x00000000000000001 / 0.'
../include/mico/os-math.h: In static member function 'static MICO_LongDouble OSMath::infinityl(MICO_Boolean)':
../include/mico/os-math.h:394: warning: division by zero in '-1.0e+0l / 0.'
gmake: *** [os-unix.pic.o] Error 1

The GNU linker doesn't work and i was not be able
to compile it properly. So i used the AIX linker.
Also i had problems with the xlc,xlc++, because of this i took the gcc4.0.2.
And now i get always errors, when i try to compile MICO.

Java is not installed on the system.

Any help will be appreciated

mfg,
Matthias
matthias is offline   Reply With Quote

Old   January 16, 2006, 13:53
Default see if you can prevent os-math
  #8
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
see if you can prevent os-math.h to pull in lmath.h on AIX.

Hasn't mico ever been ported to AIX? Maybe something on the discussion site.

2) You could try replacing mico with another corba. It will require some work on the java startup problem though.
mattijs is offline   Reply With Quote

Old   March 24, 2006, 04:47
Default Hi,all! I'm trying to compi
  #9
Member
 
Masashi IMANO
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 34
Rep Power: 17
imano is on a distinguished road
Hi,all!

I'm trying to compile OpenFOAM-1.2 under AIX 5.2 (hardware is HITACHI SR11000) with the gcc-4.0.2, but I got error below while compiling libOpenFOAM.so.

make: execvp: /bin/sh: Arg list too long

I found that this error is due to the default kernel setting
like IRIX OS as discussed in the thread:
Gcc for SGI IRIX 6.5
http://www.cfd-online.com/OpenFOAM_D...ges/1/139.html
,but I don't have authority to recompile the kernel.

[Q]
a) How can I avoid this error without recompiling the kernel?
b) Does anyone have the pre-compiled binary package of OpenFOAM for AIX 5.2?

Regards,
Masashi
imano is offline   Reply With Quote

Old   May 7, 2006, 06:47
Default Hi, I'm trying to compile O
  #10
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Hi,

I'm trying to compile OpenFOAM 1.3 under AIX but without success. Until now, there were lots of problems with the last version 'OpenFOAM 1.2' but i solved them, so that OpenFOAM 1.2 compiled and worked under AIX. In the new release i got these errors:

1. no demangle.h found
2. no execinfo.h found
3. several compile errors later

First i linked the demangle.h from the gcc4.1.0 sources into the path (and some other header files which the demangle.h needs). After that, the first error disappeared. The second one is more difficult, because there exists no execinfo.h on this AIX system. I tried to compile the glibc under AIX but it is not designed for AIX systems and you cannot compile it. So i moved the execinfo.h and some other header files from the sources into a separate folder and linked the headers into the path. So and now i get following:

/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/lib/ibmGcc4DPOpt/lam-7.1.1/libPstrea m.so' is up to date.
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/ibmGcc4DPOpt/dependencies' is up to date.
libso
SOURCE_DIR=global
SOURCE=global/global.C ; g++ -maix32 -Dibm -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -DWM_PROJECT_VERSION='"'1.3'"' -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/src/zlib-1.2.1 -I/fastfs/work/mviargog/src/glibc-2.4/include1 -I/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/ibmGcc4DPOpt/global.o
/fastfs/work/mviargog/src/glibc-2.4/include1/debug/execinfo.h:28: error: expected constructor, destructor, or type conversion before 'extern'
/fastfs/work/mviargog/src/glibc-2.4/include1/debug/execinfo.h:34: error: expected initializer before '__THROW'
/fastfs/work/mviargog/src/glibc-2.4/include1/debug/execinfo.h:40: error: expected initializer before '__THROW'
/fastfs/work/mviargog/src/glibc-2.4/include1/execinfo.h:4: error: expected constructor, destructor, or type conversion before 'extern'
/fastfs/work/mviargog/src/glibc-2.4/include1/execinfo.h:5: error: expected constructor, destructor, or type conversion before '(' token
/fastfs/work/mviargog/src/glibc-2.4/include1/execinfo.h:11: error: expected constructor, destructor, or type conversion before '(' token
/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C: In static member function 'static void Foam::error::printStack(Foam:stream&)':
/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:169: error: 'backtrace' was not declared in this scope
/fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/error.C:170: error: 'backtrace_symbols' was not declared in this scope
make: *** [Make/ibmGcc4DPOpt/global.o] Error 1
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/ibmGcc4DPOpt/dependencies' is up to date.


The moved header files are in the include1 folder that i created, you cannot take all header files from the glibc/include directory, because some of the header files are different to the system ones.

I hope someone has an idea to solve this problem!

mfg,

matthias
matthias is offline   Reply With Quote

Old   May 8, 2006, 04:22
Default Can't tell for sure, but I'm a
  #11
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Can't tell for sure, but I'm afraid this execinfo.h only works for Linux. My guess: comment out the two missing headers and all the stuff in the printStack-method.

The only thing you will be missing are stack-traces.
__________________
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
gschaider is offline   Reply With Quote

Old   May 9, 2006, 12:36
Default Ok thanks, now it works. Some
  #12
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Ok thanks, now it works. Some solvers are still missing, but the most important (for us) are available.

However, i have big trouble to run openmpi. I used the gcc and the gxlc(xlc) compilers to build the mpi but if i start mpirun then i get always this:

[berni1-en0:1417426] [NO-NAME] ORTE_ERROR_LOG: Not found in file orte_init_stage1.c at line 214
--------------------------------------------------------------------------
It looks like orte_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

orte_sds_base_select failed
--> Returned value -13 instead of ORTE_SUCCESS

--------------------------------------------------------------------------
[berni1-en0:1417426] [NO-NAME] ORTE_ERROR_LOG: Not found in file orte_system_init.c at line 41
[berni1-en0:1417426] [NO-NAME] ORTE_ERROR_LOG: Not found in file orte_init.c at line 49
--------------------------------------------------------------------------
Open RTE was unable to initialize properly. The error occured while
attempting to orte_init(). Returned value -13 instead of ORTE_SUCCESS.

The compiler run throws no errors and i downloaded the last release of openmpi. Lam has not build properly (no binaries),but i am still trying to get it work.
matthias is offline   Reply With Quote

Old   May 11, 2006, 13:45
Default Ok LAM works now, but we have
  #13
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Ok LAM works now, but we have to use the POE of IBM AIX, because only the POE works together with their job batch system. So i need support to build the lPstream and the solvers for the POE.

1. I linked the include and lib directories of POE where all the mpi stuff is located to the lPstream without any errors.

2. I rebuild a solver (e.g. simpleFoam) with the new lPstream. No errors are shown on the display.

3. So if i try to start simpleFoam then i get this error:
exec(): 0509-036 Cannot load program simpleFoam because of the following errors:
0509-022 Cannot load module /usr/lpp/ppe.poe/lib/libmpi_r.a(mpicore_r.o).
0509-150 Dependent module libmpi_r.a(mpci_r.o) could not be loaded.
0509-022 Cannot load module libmpi_r.a(mpci_r.o).
0509-026 System error: A file or directory in the path name does not exist.

My rules file for mplibPOE looks like this:

PFLAGS =
PINC = -I$(POE_ARCH_PATH)/include
PLIBS = -L$(POE_ARCH_PATH)/lib -lmpi_r -lc -lm -llapi_r -lpthreads

And the libraries are all in the path.

I need some ideas to solve this problem.

mfg,

Matthias
matthias is offline   Reply With Quote

Old   May 13, 2006, 04:49
Default Because of the errors above i
  #14
Member
 
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17
matthias is on a distinguished road
Because of the errors above i linked the -lmpi_r directly to the solver simpleFoam. So, when i start it, then i get this message:

debug::controlDict(): Cannot open essential file /fastfs/work/mviargog/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/controlDict

Segmentation fault (core dumped)

What means that?
matthias is offline   Reply With Quote

Old   May 15, 2006, 04:15
Default What it says: it tries to load
  #15
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
What it says: it tries to load the controlDict file which controls overall behaviour of OF.
mattijs is offline   Reply With Quote

Old   December 15, 2006, 10:38
Default Hello all, I am trying to c
  #16
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Hello all,

I am trying to compile OpenFOAM 1.3 on AIX 5.3 using xlC, Power4 arch. When allmake reaches wmake libso src/OpenFOAM I am getting the following error:


OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/HashTable.H", line 356.18: 1540-1118 (S) The declaration of "endIter_" uses the undefined class "Foam::HashTable<foam::entry>::Iterator<foam::entr y> &,Foam::HashTable<foam::entry>::hashedEntry *>" when the class must be complete.
"/u/ac/dhebert/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/dictionary.H", line 71.27: 1540-0700 (I) The previous message was produced while processing "class Foam::HashTable<foam::entry>".
"/u/ac/dhebert/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/dictionary.H", line 61.7: 1540-0700 (I) The previous message was produced while processing "class Foam::dictionary".


__________________

I think this is a linknig problem, and I was wondering if someone could give me pointers on what the linker might need to do. I can then find the appropriate IBM flags.

Also, I have attempted to compile Gcc4.1.1 (as instructed on wiki), and get an error saying C compiler can not make executables. If anyone has experience here that might help also.

Thanks for all your help,

David
dhebert is offline   Reply With Quote

Old   March 21, 2008, 11:14
Default Hi, I am trying to compile OF
  #17
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
Hi, I am trying to compile OF on an AIX machine. Because tar xzf does not work on this machine, I did this:

mv OpenFOAM-1.4.1.General.gtgz OpenFOAM-1.4.1.General.tar.gz
tar -xf OpenFOAM-1.4.1.General.tar.gz

However, I get this error:

tar: 0511-188 Cannot create ././@LongLink: The file access permissions do not allow the specified action.

and a @LongLink file dating back to 1970 is created in the directory.

I can not install extra package on the machine, which is running AIX version 5.3 ML06-03

Has anyone got experience on this topic ?
johndeas is offline   Reply With Quote

Old   March 21, 2008, 11:42
Default Hi John, In your example no
  #18
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Hi John,

In your example note that you simply changed the name of the file. It is still a compressed tar file. If tar (or gtar, I seem to recall a gtar command that differs from tar on IBM) is unvailable you need to uncompress first, then untar:

1) gunzip OpenFOAM-1.4.1.General.gtgz
2) tar -xf OpenFOAM-1.4.1...

Hope this helps,

David
dhebert is offline   Reply With Quote

Old   March 22, 2008, 04:33
Default Sorry, I mistyped what I did:
  #19
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
Sorry, I mistyped what I did:

mv OpenFOAM-1.4.1.General.gtgz OpenFOAM-1.4.1.General.tar.gz
gunzip OpenFOAM-1.4.1.General.gtgz
tar -xf OpenFOAM-1.4.1.General.tar

and I ended up with the error described in my first post.
johndeas is offline   Reply With Quote

Old   March 24, 2008, 09:11
Default John, Are you running on a
  #20
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
John,

Are you running on a machine that has limited space for your home directory? It may be that you do not have the space to untar the file. If the machine is set up where there is a scratch or work disk with more space, you could symbolically link the directory OpenFOAM from the work disk to your home, then untar. The only problem is that work disk are often scrubbed if files are not used, so be careful.

David
dhebert is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Is GUI there for OpenFoam navaladi OpenFOAM 4 September 11, 2023 13:35
OpenFoam vs CFX5 mass balance in OpenFoam tangd OpenFOAM Running, Solving & CFD 33 May 23, 2010 16:36
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 martapajon OpenFOAM Meshing & Mesh Conversion 7 January 21, 2008 12:52
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen jaswi OpenFOAM 0 August 3, 2007 13:11
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 01:05.