CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Build OpenFOAM on Tru64 (https://www.cfd-online.com/Forums/openfoam-installation/57668-build-openfoam-tru64.html)

francois March 17, 2005 11:55

Hi all, I want to install O
 
Hi all,

I want to install OpenFoam on Compaq Tru64 UNIX V5.1B (alpha proc).
Perhaps someone as done it before ?
Any help will be welcome.

I will send a post if it works !
Thank's
Francois

nils April 7, 2005 07:02

Hi Francois, I will start t
 
Hi Francois,

I will start to do the same next week. I will also post here, if it works, or when I get to problems, what they are.

I hope it works, this would save me a lot of time...

hjasak April 7, 2005 10:25

Hi, Actoally, there is a po
 
Hi,

Actoally, there is a port being done on lemieux at the moment, which is one of the big Dec machines. I have revived the dec build setup, but there are minor problems with handling a local optimized version of MPI. If you're building on a "normal" Dec, please let me know and I can pass over the setup files.

Some direct communication will be necessary and I assume you know about how to set up the build system in foam for a new architecture.

Hrv

francois April 8, 2005 05:37

Hi, I'm sorry but I'm very
 
Hi,

I'm sorry but I'm very busy at work for the moment and don't have the time to do anything despite courses for the student. Last weeks I only try to build gcc 3.4.3 on tru64 but it fails to compil ... so you see where I'm at the moment ...

steja April 27, 2005 08:59

Hi Hrvoje, Since we also ha
 
Hi Hrvoje,

Since we also have some "normal" DEC-Alpha workstations available we would like to install and run OpenFOAM on these machines. What steps need to be done for running on Compaq Tru64 UNIX V5.1A. Could you also pass the setup-files please. Are there any problems with "normal"-mpi or any other difficulties we should know about?

Thank you, Steffen

hjasak April 28, 2005 06:23

Hi, I don't really want to
 
Hi,

I don't really want to get involved in porting onto a machine I haven't got access to (and there is a lot of other things I should be doing anyway) :-), but here's some help.

1) You will need to know how to set up a new machine. Entries are required in:

~/.OpenFOAM-1.1/cshrc

and

~/OpenFOAM/OpenFOAM-1.1/.cshrc

Have a look at the stuff for other machines

2) I can send you a decAlphaGcc pack for wmake - this goes into:

~/OpenFOAM/OpenFOAM-1.1/wmake/rules

(again, see other machines for examples).

Make sure you've got gnu flex, bison, gmake, gzip and gtar - Decs are very bad for standard tools.

As for the pack, send me and E-mail on h dot jasak at dial dot pipex dot com and I'll E-mail it back to you.

Good luck,

Hrv

steja June 3, 2005 10:34

Hi, we managed to compile g
 
Hi,

we managed to compile gcc-3.4.3 and OpenFOAM on our Tru64-system. We used MPICH-1.2.6 instead of
LAM-7.1.1, because LAM did not work (the
dynamic linker reported errors)
The tutorials run fine on a single CPU. We then wanted to run a parallel case on 16 CPUs. Therefore we modified the channel395-example and raised the resolution up to 1.9 million cells.
After starting with mpirun we get the following message. We do not understand this (each node has 2GB of RAM) and perhaps it is not really related to too few memory.
Is there a way to get more debugging information, e.g. from which node the message is coming? We compiled OpenFOAM with the Debug-option (binaries are in decAlphaGccDebug directory)

Message:
=====================================

Create time

Create mesh for time = 0

new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library

Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Creating field Umean

Creating field R

Creating field Bmean

new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
p6_64149: p4_error: net_recv read: probable EOF on socket: 1
p3_38962: p4_error: net_recv read: probable EOF on socket: 1
Abort process (core dumped)
p4_65343: p4_error: net_recv read: probable EOF on socket: 1
p2_69004: p4_error: net_recv read: probable EOF on socket: 1
p5_66369: p4_error: net_recv read: probable EOF on socket: 1
p15_61113: p4_error: Found a dead connection while looking for messages: 14
p9_76100: p4_error: Found a dead connection while looking for messages: 0
p10_51041: p4_error: Found a dead connection while looking for messages: 14
p8_67906: p4_error: Found a dead connection while looking for messages: 0
rm_l_14_69388: (363.472656) wakeup_slave: unable to interrupt slave 0 pid 69387
Abort process (core dumped)
Abort process (core dumped)
Abort process (core dumped)

mattijs June 3, 2005 10:46

For easier parallel debugging
 
For easier parallel debugging have a look at the lamrun script which I posted some time ago. It will run every process in its own window inside gdb.

- are you sure you use the -parallel command line argument? How big are the processor* directory meshes? (just run checkMesh on them)

francois September 13, 2005 06:00

Steffen, In your previous p
 
Steffen,

In your previous post you have said that you "managed to compile gcc-3.4.3 and OpenFOAM on our Tru64-system".

I have gcc-3.4.3 up and running, but try to compile OpenFOAM on Tru64. Assuming you are using the bash shell, please could you explain us what you have done with those files:

- ~/.OpenFOAM-1.1/bashrc to add a check for True64-system and set WM_ARCH and WM_MPLIB

- ~/OpenFOAM/OpenFOAM-1.1/.bashrc

- $WM_DIR/rules/$WM_ARCH

Thank's four your help.
Francois

francois September 14, 2005 10:21

Some news ... Thank's to H
 
Some news ...

Thank's to Hrvoje Jasak I'm trying to build OpenFOAM1.2 on tru64 with the wmake/rule he send to me. For the moment it's compiling and everything seems to be ok ...

So, if someone is interested the folowing procedures may be helpfull:

Assuming you are using the bash shell you must test your system type and modify some variables in

* ~/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/bashrc add the lines before "# An unsupported operating system"

# Tru64 workstation
# ~~~~~~~~~~~~~~~~~
elif [ "$machineTest" = "OSF1" ]; then

export WM_ARCH=tru64
#export WM_MPLIB=LAM
export WM_MPLIB=MPI

* ~/OpenFOAM/OpenFOAM-1.2/.bashrc add the PATH for JAVA before "# An unsupported operating system"

# Tru64 workstation
# ~~~~~~~~~~~~~~
elif [ "$machineTest" = "OSF1" ]; then

export JAVA_HOME=/usr/opt/java14

* create the directory ~/OpenFOAM/OpenFOAM-1.2/wmake/rules/tru64Gcc

and put the wmake/rules from the attached to this post in this directory. I hope I'm not wrong but I think that the name of this directory depends on the WM_ARCH variable you have set previously in
~/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/bashrc

* be sure you have gcc, gnu flex, bison, gmake, gzip and gtar in your PATH.

* Then go to ~/OpenFOAM/OpenFOAM-1.2/ and try ./Allwmake

Good luck.
Francois

francois September 14, 2005 10:30

oup's the attachment didn't wo
 
oup's the attachment didn't work
Next try
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif tru64Gcc.tar.gz

francois September 21, 2005 11:10

Hi all, Last night I try to
 
Hi all,

Last night I try to build OpenFOAM-1.2 with gcc-4.0.1. But I got errors during the building process. I'm an old Fortran developper so the messages aren't very helpfull to me ... if there is any c++ guru here, they are welcome !

* The first error come with makeInterpolationCellPoint.C:

SOURCE=interpolations/interpolation/interpolationCellPoint/makeInterpolationCell Point.C ; g++ -DFOAM_EXCEPTION -Dtru64 -Dtru64GccOpt -DscalarMachine -DoptSolvers -Wall -O2 -fno-schedule-insns -DNoRepository -ftemplate-depth-17 -DWM_PROJECT_VERSION='"'1.2'"' -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/zlib-1.2.1 -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/tru64GccOpt/makeInterpolationCellPoint.o
/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/cpp_type_traits.h:352: error: template instantiation depth exceeds maximum of 17 (use -ftemplate-depth-NN to increase the maximum) instantiating 'struct std::__traitor<std::__is_arithmetic<foam::label>, std::__is_pointer<foam::label> >'
/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/cpp_type_traits.h:352: instantiated from 'std::__is_scalar<foam::label>'

Foam::interpolationCellPoint<foam::scalar>, Type = Foam::scalar]'
interpolations/interpolation/interpolationCellPoint/makeInterpolationCellPoint.C :38: instantiated from here

/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/cpp_type_traits.h:352: error: invalid use of undefined type 'struct std::__traitor<std::__is_arithmetic<foam::label>, std::__is_pointer<foam::label> >'
/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/cpp_type_traits.h:110: error: declaration of 'struct std::__traitor<std::__is_arithmetic<foam::label>, std::__is_pointer<foam::label> >'

interpolations/interpolation/interpolationCellPoint/makeInterpolationCellPoint.C :38: instantiated from here
/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/stl_algobase.h:443: error: '__simple' is not a valid template argument for type 'bool' because it is a non-constant expression
/data2/beaubert/usr/local/lib/gcc/alphaev7-dec-osf5.1b/4.0.1/../../../../include /c++/4.0.1/bits/stl_algobase.h:443: error: 'copy_b' is not a member of '<declaration>'
make: *** [Make/tru64GccOpt/makeInterpolationCellPoint.o] Error 1

* There is lot of errors like the previous one, but I also got errors with lib that are not found (maybe becasue of the previous errors), like this one:

cd Make/tru64GccOpt ; \
gcc -DFOAM_EXCEPTION -Dtru64 -Dtru64GccOpt -DscalarMachine -DoptSolvers -Wall -O2 -fno-schedule-insns -DNoRepository -ftemplate-depth-17 -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/meshTools/lnInclude -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/lagrangian/basic/lnInclude -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -Xlinker -expect_unresolved -Xlinker '*' -shared pointAddressing.o samplingLine.o cuttingPlane.o curve.o graph.o rawGraph.o gnuplotGraph.o xmgrGraph.o jplotGraph.o writePatchGraph.o writeCellGraph.o makeGraph.o meshToMesh.o calculateMeshToMeshAddressing.o calculateMeshToMeshWeights.o -L/data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt -lmeshTools -llagrangian -o /data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt/libsampling.so
/usr/bin/ld:
Can't locate file for: -lmeshTools
collect2: ld returned 1 exit status
make: *** [/data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt/libsampling.so] Error 1

* And this one :

cd Make/tru64GccOpt ; \
gcc -DFOAM_EXCEPTION -Dtru64 -Dtru64GccOpt -DscalarMachine -DoptSolvers -Wall -O2 -fno-schedule-insns -DNoRepository -ftemplate-depth-17 -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/meshTools/lnInclude -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/sampling/lnInclude -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -Xlinker -expect_unresolved -Xlinker '*' -shared findRefCell.o adjustPhi.o wallPointYPlus.o nearWallDistNoSearch.o nearWallDist.o wallDist.o reflectionVectors.o wallDistReflection.o bound.o totalPressureFvPatchScalarField.o wallBuoyantPressureFvPatchScalarField.o pressureTransmissiveFvPatchScalarField.o supersonicFreestreamFvPatchVectorField.o turbulentInletFvPatchFields.o timeVaryingUniformFixedValueFvPatchFields.o oscillatingFixedValueFvPatchFields.o -L/data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt -lmeshTools -lsampling -o /data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt/libcfdTools.so
/usr/bin/ld:
Can't locate file for: -lmeshTools
collect2: ld returned 1 exit status
make: *** [/data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt/libcfdTools.so] Error 1


What's wrong here ?
The gcc-4.0.1 version I use was build with gcc-3.4.3:

gcc -v
Using built-in specs.
Target: alphaev7-dec-osf5.1b
Configured with: ../gcc-4.0.1/configure --prefix=/data2/beaubert/usr/local --enable-languages=c,c++
Thread model: posix
gcc version 4.0.1

mattijs September 21, 2005 11:15

Change the template-depth opti
 
Change the template-depth option to say 30 like for the other ports.

The meshTools library was probably not built as a consequence of this so linking of other libraries failed.

francois September 21, 2005 11:24

Tank's Mattijs ! That's I w
 
Tank's Mattijs !

That's I was trying at the moment but I only increase the template-depth option to 20 !

I will try a value of 30 ...

francois September 21, 2005 12:23

Thank's for your help Mattijs,
 
Thank's for your help Mattijs, it works with a template-depth option to 30. But I'm now experiencing other problems when building OpenFOAM applications like potentialFoam below:


/data2/beaubert/OpenFOAM/OpenFOAM-1.2/wmake/kshScripts/mkObjectDir /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/bin/t
ru64GccOpt/potentialFoam
g++ -DFOAM_EXCEPTION -Dtru64 -Dtru64GccOpt -DscalarMachine -DoptSolvers -Wall -O2 -fno-schedule-insns -DNoRepository -fte
mplate-depth-30 -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/cfdTools/incompressible -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2
/src/cfdTools/general/lnInclude -I/data2/beaubert/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC Mak
e/tru64GccOpt/potentialFoam.o -L/data2/beaubert/OpenFOAM/OpenFOAM-1.2/lib/tru64GccOpt \
-lcfdTools -lOpenFOAM -lm -o /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/bin/tru64GccOpt/potentialFoam
Foam::reduce(double&, Foam::sumOp<double> const&)
Foam:: OPstream::~OPstream()
Foam::IPstream::IPstream(int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)
collect2: ld returned 1 exit status
make: *** [/data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/bin/tru64GccOpt/potentialFoa m] Error 1

As anybody see this before ?

mattijs September 22, 2005 04:45

These routines are all in the
 
These routines are all in the Pstream library (which I assume you have compiled already). See if it links if you add a -lPstream to your link line.

If this solves the problem add it to all your link lines by adding it to your $WM_DIR/rules/ files. (see e.g. the solaris entry)

francois September 22, 2005 06:37

Thanks Mattijs for your help !
 
Thanks Mattijs for your help !
Indeed the Pstream library was not in the path.

I add the following line to OpenFOAM/OpenFOAM-1.2/wmake/rules/tru64Gcc/general file:

GLIBS = -L$(FOAM_LIBBIN)/dummy -lPstream -lm

The next error was that gmake was not in my PATH. OpenFOAM need it in the OpenFOAM/OpenFOAM-1.2/src/Allwmake script. The make version I use is the gnu one but the executable is "make" not "gmake". So I rename it gmake and put it in my PATH.

and now it works expect some problems with FoamX:

FoamX
Starting NameServer with inet:fortune.univ-valenciennes.fr:1234 ...
Starting FoamX Host Browser with inet:fortune.univ-valenciennes.fr:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.2 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Sep 22 2005
Time : 12:29:26
Host : fortune.univ-valenciennes.fr
PID : 311529
Root :
Case :
Nprocs : 1
HostBrowser running.....
Using jar /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX /lib/FoamX.jar
Using jar /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX /lib/jlfgr-1_0.jar
java.lang.NoClassDefFoundError: FoamX/App
/data2/beaubert/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: 311529 Killed
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 317631).
/data2/beaubert/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: 317631 Killed

I use jre142 which is in my PATH defined in OpenFOAM/OpenFOAM-1.2/.bashrc as:

export JAVA_HOME=~/usr/local/jre142

I will see what can be done for this.

Next challange for me will be the lam or pmich support for OpenFOAM.


Thanks again for your very helpfull messages Mattijs, without you I could not be able to build OpenFOAM.

francois September 22, 2005 08:16

The problem "runFoamXHB: 31763
 
The problem "runFoamXHB: 317631 Killed" is fixed now.
I only have to relog again ...

the next problem I had to deal with was this error when FoamX startup:

FoamX
Starting NameServer with inet:fortune.univ-valenciennes.fr:1234 ...
Starting FoamX Host Browser with inet:fortune.univ-valenciennes.fr:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.2 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Sep 22 2005
Time : 13:43:19
Host : fortune.univ-valenciennes.fr
PID : 347712
Root :
Case :
Nprocs : 1
HostBrowser running.....
Using jar /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX /lib/FoamX.jar
Using jar /data2/beaubert/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX /lib/jlfgr-1_0.jar
java.lang.NoClassDefFoundError: FoamX/App
/data2/beaubert/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: 347712 Killed
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 358130).
/data2/beaubert/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: 358130 Killed

As mentioned for the solaris port, the OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX/lib/FoamX.jar

doesn't contains the necessary stuf to start OpenFOAM. So I download FoamX.jar from the OpenFOAM-1.2.General.tgz archive for linux and replace it.

It works ...

francois April 4, 2006 05:45

I manage to install OpenFOAM1.
 
I manage to install OpenFOAM1.2 on a dec-alpha cluster (Tru64 OS) of a friend.

I use my own build of OpenFOAM on Tru64 and make a tar of it and untar it on my friend's cluster.

But something is wrong with this new installation.

For example when I try to build foamToTecplot in foamToTecplot dir with wmake I've got the following error:

~/OpenFOAM/openf-1.2/applications/foamToTecplot]
openf@.....$ wmake
Make: Cannot open /home/sngetj/openf/OpenFOAM/OpenFOAM-1.2/wmake/Make/tru64GccOpt/options. Stop.

Make: Cannot open /home/sngetj/openf/OpenFOAM/OpenFOAM-1.2/wmake/Make/tru64GccOpt/options. Stop.

Well I dont know why wmake try to find Make/tru64GccOpt/options file in $WM_DIR because this file is the current dir.

The login shell is tcsh but I use bash as a working shell and configuration for OpenFOAM:

echo $WM_SHELL
tcsh

When I do . ~/.bashrc I've got an error:
Executing: /home/sngetj/openf/OpenFOAM/OpenFOAM-1.2/.bashrc
Executing: /home/sngetj/openf/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/apps/ensightFoam/bashrc
Executing: /home/sngetj/openf/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/apps/paraview/bashrc
bash: setenv: command not found

I dont know why this setenv is there for bash scripts ?!

I've tried to configure OpenFOAM for tcsh and modify those files to set the correct $WM_ARCH and $JAVA_HOME:

~/OpenFOAM/OpenFOAM-1.2/.cshrc
~/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/cshrc

But the same error message occur when I try a wmake.

Any ideas?
Thank's

François


All times are GMT -4. The time now is 11:39.