CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation OF1.5-dev (http://www.cfd-online.com/Forums/openfoam-installation/63866-installation-of1-5-dev.html)

ttdtud April 22, 2009 08:24

Installation OF1.5-dev
 
I have downloaded OF1.5-dev from svn repository and Thirdparty from OpenFOAM homepage.
I have adjusted my ".bashrc" file and added "WM_32=on" because my OS is 32bit.
If i go to "OpenFOAM-1.5-dev/src and excute the "./Allmake" i willhave the following messages:
+ cd OpenFOAM
+ wmakeLnInclude .
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
..........................
+ wmake libso mpi
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOptOPENMPI/objectFiles' could not be created
+ wmake libo OSspecific/Unix
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
.....................
+ wmake libso topoChangerFvMesh
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso engine
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
...............................
+ wmake libso edgeMesh
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso meshTools
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso finiteVolume
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso finiteArea
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso dynamicMesh
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ cd tetDecompositionFiniteElement
+ ./Allwmake
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make.cellDecomp/linuxGccDPOpt/objectFiles' could not be created
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make.faceDecomp/linuxGccDPOpt/objectFiles' could not be created
..............................
+ wmake libso intermediate
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso dieselSpray
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ cd molecularDynamics
+ wmake libso potential
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ cd molecularDynamics
+ wmake libso molecule
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ cd postProcessing
+ ./Allwmake
+ wmake libo postCalc
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso forces
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso fieldAverage
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso foamCalcFunctions
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ cd conversion
+ ./Allwmake
+ wmake libso
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso autoMesh
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created
+ wmake libso errorEstimation
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 214: make: command not found
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/wmake/wmake: line 215: make: command not found
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

Any helps would be appreciated gratefully.

deepsterblue April 22, 2009 09:22

The script can't find make. Install binutils for your distribution.

ttdtud April 22, 2009 11:07

Hi Sandeep, thank you very much.
yes, i have installed binutils, binutils-dev and cmake. At least the compilation does work. However, i have the following errors again:
+ cd OpenFOAM
+ wmakeLnInclude .
+ cd Pstream
+ ./Allwmake
+ wmake libso dummy
Making dependency list for source file Pstream.C
Making dependency list for source file IPread.C
Making dependency list for source file OPwrite.C

+ case "$WM_MPLIB" in
+ export WM_OPTIONS=linuxGccDPOptOPENMPI
+ WM_OPTIONS=linuxGccDPOptOPENMPI
+ set +x
+ wmake libso mpi
Making dependency list for source file OPwrite.C
could not open file mpi.h for source file OPwrite.C
Making dependency list for source file IPread.C
could not open file mpi.h for source file IPread.C
Making dependency list for source file Pstream.C
could not open file mpi.h for source file Pstream.C
OPwrite.C:30:17: error: mpi.h: Datei oder Verzeichnis nicht gefunden
IPread.C:30:17: error: mpi.h: Datei oder Verzeichnis nicht gefunden
OPwrite.C:38: error: ‘MPI_Request’ was not declared in this scope
OPwrite.C:38: error: template argument 1 is invalid
OPwrite.C:38: error: invalid type in declaration before ‘;’ token
OPwrite.C: In static member function ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’:
OPwrite.C:81: error: ‘MPI_PACKED’ was not declared in this scope
OPwrite.C:84: error: ‘MPI_COMM_WORLD’ was not declared in this scope
OPwrite.C:85: error: ‘MPI_Bsend’ was not declared in this scope
OPwrite.C:93: error: ‘MPI_PACKED’ was not declared in this scope
OPwrite.C:96: error: ‘MPI_COMM_WORLD’ was not declared in this scope
OPwrite.C:97: error: ‘MPI_Send’ was not declared in this scope
OPwrite.C:101: error: ‘MPI_Request’ was not declared in this scope
OPwrite.C:101: error: expected `;' before ‘request’
OPwrite.C:107: error: ‘MPI_PACKED’ was not declared in this scope
OPwrite.C:110: error: ‘MPI_COMM_WORLD’ was not declared in this scope
OPwrite.C:111: error: ‘request’ was not declared in this scope
OPwrite.C:112: error: ‘MPI_Isend’ was not declared in this scope
OPwrite.C:114: error: request for member ‘append’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C: In static member function ‘static void Foam::OPstream::waitRequests()’:
OPwrite.C:132: error: request for member ‘size’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C:134: error: ‘MPI_Status’ was not declared in this scope
OPwrite.C:134: error: template argument 1 is invalid
OPwrite.C:134: error: invalid type in declaration before ‘(’ token
OPwrite.C:134: error: request for member ‘size’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C:140: error: request for member ‘size’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C:141: error: request for member ‘begin’ in ‘OPstream_outstandingRequests_’, which is ofnon-class type ‘int’
OPwrite.C:142: error: request for member ‘begin’ in ‘status’, which is of non-class type ‘int’
OPwrite.C:143: error: ‘MPI_Waitall’ was not declared in this scope
OPwrite.C:152: error: request for member ‘clear’ in ‘OPstream_outstandingRequests_’, which is ofnon-class type ‘int’
OPwrite.C: In static member function ‘static bool Foam::OPstream::finishedRequest(Foam::label)’:
OPwrite.C:159: error: request for member ‘size’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C:164: error: request for member ‘size’ in ‘OPstream_outstandingRequests_’, which is of non-class type ‘int’
OPwrite.C:172: error: ‘MPI_Status’ was not declared in this scope
OPwrite.C:172: error: expected `;' before ‘status’
OPwrite.C:174: error: invalid types ‘int[const Foam::label]’ for array subscript
OPwrite.C:174: error: ‘status’ was not declared in this scope
OPwrite.C:174: error: ‘MPI_Test’ was not declared in this scope
IPread.C:40: error: ‘MPI_Request’ was not declared in this scope
IPread.C:40: error: template argument 1 is invalid
IPread.C:40: error: invalid type in declaration before ‘;’ token
IPread.C: In constructor ‘Foam::IPstream::IPstream(Foam::Pstream::commsType s, int, Foam::label, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)’:
IPread.C:62: error: ‘MPI_Status’ was not declared in this scope
IPread.C:62: error: expected `;' before ‘status’
IPread.C:68: error: ‘MPI_COMM_WORLD’ was not declared in this scope
IPread.C:68: error: ‘status’ was not declared in this scope
IPread.C:68: error: ‘MPI_Probe’ was not declared in this scope
IPread.C:69: error: ‘MPI_BYTE’ was not declared in this scope
IPread.C:69: error: ‘MPI_Get_count’ was not declared in this scope
IPread.C: In static member function ‘static Foam::label Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, std::streamsize)’:
IPread.C:100: error: ‘MPI_Status’ was not declared in this scope
IPread.C:100: error: expected `;' before ‘status’
IPread.C:108: error: ‘MPI_PACKED’ was not declared in this scope
IPread.C:111: error: ‘MPI_COMM_WORLD’ was not declared in this scope
IPread.C:112: error: ‘status’ was not declared in this scope
IPread.C:113: error: ‘MPI_Recv’ was not declared in this scope
IPread.C:130: error: ‘status’ was not declared in this scope
IPread.C:130: error: ‘MPI_BYTE’ was not declared in this scope
IPread.C:130: error: ‘MPI_Get_count’ was not declared in this scope
IPread.C:148: error: ‘MPI_Request’ was not declared in this scope
IPread.C:148: error: expected `;' before ‘request’
IPread.C:156: error: ‘MPI_PACKED’ was not declared in this scope
IPread.C:159: error: ‘MPI_COMM_WORLD’ was not declared in this scope
IPread.C:160: error: ‘request’ was not declared in this scope
IPread.C:161: error: ‘MPI_Irecv’ was not declared in this scope
IPread.C:174: error: request for member ‘append’ in ‘IPstream_outstandingRequests_’, which is ofnon-class type ‘int’
IPread.C:174: error: ‘request’ was not declared in this scope
IPread.C: In static member function ‘static void Foam::IPstream::waitRequests()’:
IPread.C:194: error: request for member ‘size’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:196: error: ‘MPI_Status’ was not declared in this scope
IPread.C:196: error: template argument 1 is invalid
IPread.C:196: error: invalid type in declaration before ‘(’ token
IPread.C:196: error: request for member ‘size’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:202: error: request for member ‘size’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:203: error: request for member ‘begin’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:204: error: request for member ‘begin’ in ‘status’, which is of non-class type ‘int’
IPread.C:205: error: ‘MPI_Waitall’ was not declared in this scope
IPread.C:214: error: request for member ‘clear’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C: In static member function ‘static bool Foam::IPstream::finishedRequest(Foam::label)’:
IPread.C:221: error: request for member ‘size’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:226: error: request for member ‘size’ in ‘IPstream_outstandingRequests_’, which is of non-class type ‘int’
IPread.C:234: error: ‘MPI_Status’ was not declared in this scope
IPread.C:234: error: expected `;' before ‘status’
IPread.C:236: error: invalid types ‘int[const Foam::label]’ for array subscript
IPread.C:236: error: ‘status’ was not declared in this scope
IPread.C:236: error: ‘MPI_Test’ was not declared in this scope
make: *** [Make/linuxGccDPOptOPENMPI/OPwrite.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
make: *** [Make/linuxGccDPOptOPENMPI/IPread.o] Fehler 1
.................
/bin/sh: flex: command not found
mv: Aufruf von stat für „lex.yy.cc“ nicht möglich: Datei oder Verzeichnis nicht gefunden
g++: Make/linuxGccDPOpt/readSTLASCII.C: Datei oder Verzeichnis nicht gefunden
g++: no input files
make: *** [Make/linuxGccDPOpt/readSTLASCII.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
......................................
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make: *** [/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libmeshTools.so] Fehler 1
.............................................

Any other ideas?

Thanks for any help!

chapman April 22, 2009 11:24

You have to install "flex". It can be obtained here: http://flex.sourceforge.net/

Depending on your distribution there might be an easier way to get "flex". Which distribution do you use?

ttdtud April 22, 2009 11:28

Hi CHapman,
actually i have already installed "flex". I have SuSe 11.0.

what should I do now?

thanks in advance.

chapman April 22, 2009 11:32

Please post the results of the following commands just to make sure that flex/flex++ can be found.

Code:

which flex
Code:

which flex++

ttdtud April 22, 2009 11:36

It seems that some dynamical libraries or links couldn't been found by compilation.
e.g.

cannot find -ltriSurface
cannot find -ldynamicMesh
cannot find -lbasicThermophysicalModels
cannot find -lfiniteVolume

could not open file metis.h for source file metisDecomp/metisDecomp.C
metisDecomp/metisDecomp.C:37:22: error: metis.h: Datei oder Verzeichnis nicht gefunden

any ideas?

ttdtud April 22, 2009 11:38

Quote:

Originally Posted by chapman (Post 213800)
Please post the results of the following commands just to make sure that flex/flex++ can be found.

Code:

which flex
Code:

which flex++

/usr/bin/flex

and

/usr/bin/flex++

chapman April 22, 2009 11:43

Ok, flex/flex++ seems to be installed.

Try to compile only "triSurface" in the src-directory by doing

Code:

src
wmake libso triSurface

and post the error code here.

There are some known issues concerning flex and the file "readSTLASCII.C". Maybe this is the problem.

ttdtud April 22, 2009 11:57

Quote:

Originally Posted by chapman (Post 213805)
Ok, flex/flex++ seems to be installed.

Try to compile only "triSurface" in the src-directory by doing

Code:

src
wmake libso triSurface

and post the error code here.

There are some known issues concerning flex and the file "readSTLASCII.C". Maybe this is the problem.

Hi Chapman,
it seems that "triSurface" has been already compiled.
When i enter the command
wmake libso triSurface
i have the message:
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libtriSurface.so' is up to date
Is it OK?

chapman April 22, 2009 12:02

Then try to do the same with the other missing parts named above

wmake libso lxxx

ttdtud April 23, 2009 04:47

Hi Chapman
I have tried to compile for every part under "src".
For "autoMesh" i have:
/usr/bin/ld: cannot find -ldecompositionMethods
collect2: ld returned 1 exit status
make: *** [/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libautoMesh.so] Fehler 1

Then I came into "decompositionAgglomeration", there are 3 parts. I have compiled for every part. I have the following:
for "parMetisDecomp"
usr/bin/ld: cannot find -lmetis-parmetis
collect2: ld returned 1 exit status
make: *** [/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/openmpi-1.2.6/libparMetisDecompositionMethod.so] Fehler 1

for "MGridGenGamgAgglomeration"
/usr/bin/ld: cannot find -lMGridGen
collect2: ld returned 1 exit status
make: *** [/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libMGridGenGAMGAgglomeration.so] Fehler 1

for "decompositionMethods"
/usr/bin/ld: cannot find -lmetis
collect2: ld returned 1 exit status
make: *** [/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libdecompositionMethods.so] Fehler 1

the other errors has happened by compilation "Pstream"
in "Pstream"
wmake libso dummy
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/dummy/libPstream.so' is up to date

wmake libso gamma
SOURCE=PstreamGlobals.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/home/hongyi/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/include -IlnInclude -I. -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/PstreamGlobals.o
SOURCE=Pstream.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/home/hongyi/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/include -IlnInclude -I. -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/Pstream.o
PstreamGlobals.C:33:34: error: linux/gamma/libgamma.h: Datei oder Verzeichnis nicht gefunden
Pstream.C:68:37: error: linux/gamma/libgamma.h: Datei oder Verzeichnis nicht gefunden
PstreamGlobals.C: In function ‘void Foam::PstreamGlobals::gammaWait(Foam::label)’:
PstreamGlobals.C:70: error: ‘gamma_wait’ was not declared in this scope
Pstream.C: In function ‘void Foam::handler()’:
Pstream.C:80: error: ‘gamma_active_port’ was not declared in this scope
Pstream.C:90: error: ‘gamma_msglen’ was not declared in this scope
Pstream.C:107: error: ‘gamma_msglen’ was not declared in this scope
Pstream.C:124: error: ‘gamma_msglen’ was not declared in this scope
Pstream.C:189: error: ‘gamma_post_recv’ was not declared in this scope
Pstream.C: In static member function ‘static bool Foam::Pstream::init(int&, char**&)’:
Pstream.C:231: error: ‘gamma_init’ was not declared in this scope
Pstream.C:233: error: ‘gamma_my_node’ was not declared in this scope
Pstream.C:307: error: ‘gamma_my_par_pid’ was not declared in this scope
Pstream.C:311: error: ‘GO_BACK’ was not declared in this scope
Pstream.C:314: error: ‘gamma_set_active_port’ was not declared in this scope
Pstream.C:320: error: ‘gamma_sync’ was not declared in this scope
Pstream.C:325: error: ‘scheduledTransfer’ is not a member of ‘Foam::Pstream’
Pstream.C: In static member function ‘static void Foam::Pstream::exit(int)’:
Pstream.C:338: error: ‘gamma_exit’ was not declared in this scope
Pstream.C: In static member function ‘static void Foam::Pstream::abort()’:
Pstream.C:347: error: ‘gamma_abort’ was not declared in this scope
Pstream.C: In function ‘void Foam::reduce(Foam::scalar&, const Foam::sumOp<double>&)’:
Pstream.C:382: error: no matching function for call to ‘Foam::IPstream::read(int&, char*, unsigned int)’
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:119: note: candidates are: static Foam::label Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, std::streamsize)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:128: note: virtual Foam::Istream& Foam::IPstream::read(Foam::token&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:131: note: virtual Foam::Istream& Foam::IPstream::read(char&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:134: note: virtual Foam::Istream& Foam::IPstream::read(Foam::word&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:137: note: virtual Foam::Istream& Foam::IPstream::read(Foam::string&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:140: note: virtual Foam::Istream& Foam::IPstream::read(Foam::label&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:143: note: virtual Foam::Istream& Foam::IPstream::read(Foam::floatScalar&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:146: note: virtual Foam::Istream& Foam::IPstream::read(Foam::doubleScalar&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:149: note: virtual Foam::Istream& Foam::IPstream::read(char*, std::streamsize)
Pstream.C:405: error: invalid conversion from ‘int’ to ‘Foam::Pstream::commsTypes’
Pstream.C:405: error: initializing argument 1 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:405: error: invalid conversion from ‘const char*’ to ‘int’
Pstream.C:405: error: initializing argument 2 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:405: error: invalid conversion from ‘unsigned int’ to ‘const char*’
Pstream.C:405: error: initializing argument 3 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:433: error: invalid conversion from ‘int’ to ‘Foam::Pstream::commsTypes’
Pstream.C:433: error: initializing argument 1 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:433: error: invalid conversion from ‘const char*’ to ‘int’
Pstream.C:433: error: initializing argument 2 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:433: error: invalid conversion from ‘unsigned int’ to ‘const char*’
Pstream.C:433: error: initializing argument 3 of ‘static bool Foam::OPstream::write(Foam::Pstream::commsTypes, int, const char*, std::streamsize)’
Pstream.C:453: error: no matching function for call to ‘Foam::IPstream::read(int, char*, unsigned int)’
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:119: note: candidates are: static Foam::label Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, std::streamsize)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:128: note: virtual Foam::Istream& Foam::IPstream::read(Foam::token&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:131: note: virtual Foam::Istream& Foam::IPstream::read(char&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:134: note: virtual Foam::Istream& Foam::IPstream::read(Foam::word&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:137: note: virtual Foam::Istream& Foam::IPstream::read(Foam::string&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:140: note: virtual Foam::Istream& Foam::IPstream::read(Foam::label&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:143: note: virtual Foam::Istream& Foam::IPstream::read(Foam::floatScalar&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:146: note: virtual Foam::Istream& Foam::IPstream::read(Foam::doubleScalar&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:149: note: virtual Foam::Istream& Foam::IPstream::read(char*, std::streamsize)
make: *** [Make/linuxGccDPOpt/PstreamGlobals.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
make: *** [Make/linuxGccDPOpt/Pstream.o] Fehler 1

wmake libso mpi
'/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/openmpi-1.2.6/libPstream.so' is up to date

wmake libso pvm
SOURCE=OPwrite.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/home/hongyi/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/include -IlnInclude -I. -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/OPwrite.o
SOURCE=IPread.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/home/hongyi/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/include -IlnInclude -I. -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/IPread.o
IPread.C:34:18: OPwrite.C:34:18: error: pvm3.h: Datei oder Verzeichnis nicht gefunden
error: pvm3.h: Datei oder Verzeichnis nicht gefunden
OPwrite.C: In destructor ‘virtual Foam::OPstream::~OPstream()’:
OPwrite.C:53: error: ‘PVM_BYTE’ was not declared in this scope
OPwrite.C:54: error: ‘pvm_psend’ was not declared in this scope
OPwrite.C:54: error: ‘PvmOk’ was not declared in this scope
OPwrite.C:59: warning: the address of ‘void abort()’ will always evaluate as ‘true’
IPread.C:49: error: prototype for ‘Foam::IPstream::IPstream(int, Foam::label, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)’ does not match any in class ‘Foam::IPstream’
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:57: error: candidates are: Foam::IPstream::IPstream(const Foam::IPstream&)
/home/hongyi/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/IPstream.H:90: error: Foam::IPstream::IPstream(Foam::Pstream::commsTypes , int, Foam::label, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)
make: *** [Make/linuxGccDPOpt/OPwrite.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
make: *** [Make/linuxGccDPOpt/IPread.o] Fehler 1

At last the compilations for other parts are OK.
What should i do?

chapman April 23, 2009 04:56

I had a simliar error yesterday (cannot find -ldecompositionMethods)

It was quite strange since it was solved by running src/decompositionAgglomeration/Allwmake. After doing that "lmetis" and all the other parts were found.

ttdtud April 23, 2009 07:47

Hi Chapman,

what should I do now? I have tried to do everything i can.

By the way is there a big difference between OF in 32bit-Linux and 64bit-Linux?

chapman April 23, 2009 10:49

Quote:

Originally Posted by ttdtud (Post 213907)
Hi Chapman,
what should I do now? I have tried to do everything i can.

Sorry for not having further hints. As said above running Allwmake solved my problem, bit I don't know why I had to compile this file manually.

ngj April 24, 2009 02:23

Hi

"missing -lparmetis" is because you have not compiled the ThirdParty software. If you compile that while having sourced 1.5-dev, then you should be able to resolve those errors.

Good luck

Niels

ttdtud April 24, 2009 02:58

Quote:

Originally Posted by ngj (Post 214007)
Hi

"missing -lparmetis" is because you have not compiled the ThirdParty software. If you compile that while having sourced 1.5-dev, then you should be able to resolve those errors.

Good luck

Niels

Hi Niels,
actually i have downloaded Thirdparty from officical OpenFOAM website and unpacked them. I think that Thirdparty donot need to be compiled. Am I right?
PS. I download OF-1.5-dev from svn repository.
My Install steps are:
1. get OF-1,5-dev using "svn co http://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/" to download OF-1.5-dev"
2. Create dictionary "OpenFOAM" in the home ~/OpenFOAM
3. Move OpenFOAM-1.5.dev into "~/OpenFOAM"
4. Download "ThidParty.General.tgtgz and ThirdParty.linuxGcc.gtgz" from OpenFOAM homepage, unpack them in ~/OpenFOAM
5. add line ". $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" in ~/.bahsrc and source it.
6. go to dictionary "~/OpenFOAM/OpenFOAM-1.5-dev/src" excute ./Allwmake then get the error messages.

which is false and what should I do?

Thanks in advance for any helps!

jaswi April 24, 2009 03:38

Hi

Quote:

I think that Thirdparty donot need to be compiled. Am I right?
PS. I download OF-1.5-dev from svn repository.
My Install steps are:
1. get OF-1,5-dev using "svn co http://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/" to download OF-1.5-dev"
2. Create dictionary "OpenFOAM" in the home ~/OpenFOAM
3. Move OpenFOAM-1.5.dev into "~/OpenFOAM"
4. Download "ThidParty.General.tgtgz and ThirdParty.linuxGcc.gtgz" from OpenFOAM homepage, unpack them in ~/OpenFOAM
5. add line ". $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" in ~/.bahsrc and source it.
6. go to dictionary "~/OpenFOAM/OpenFOAM-1.5-dev/src" excute ./Allwmake then get the error messages.

My friend the steps you are following are for installation but what you are doing is compilation. As far as I remember , the compilation requires that all the statements in the script Allwmake are executed. Compilation of the Third Party software preceeds the ompilation of the /src directory.

Quote:

which is false and what should I do?
No the instruction for installation are not false. Please compile the third party stuff and try again , it shall work.

Kind Regards
Jaswi

mixer April 24, 2009 04:12

Hi Jaswi,

I have downloaded the OF1.5-dev and Third-Party from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/

1. but, this did not contain the /etc folder within OpenFOAM-1.5-dev. So, I could not find the cshrc file to be sourced. Can anyone tell me what to do?

2.The thirdParty i downloaded has 3 folders: lam-7.1.4, libccmio-2.6.1, wmakeFiles. Should i just added it to a ThirdParty folder that i already have from OpenFoam-1.5. how does one compile it. I could not find any wmake anywhere in this.

I could run the ./Allwmake in OpenFOAM-1.5-dev/src without error.

Am i downloading the wrong installation files.

thanks for help.

jaswi April 24, 2009 04:26

Hi Mixer

Please download the dev version from the SVN. The command and the link is :

svn co http://openfoam-extend.svn.sourcefor...nFOAM-1.5-dev/

This gives you just the code.

For the Third Party stuff, I always take the stuff from the OpenFOAM website . The commands for the 64 bit distro are :

wget http://downloads.sourceforge.net/foa...se_mirror=mesh

wget http://downloads.sourceforge.net/foa...se_mirror=mesh

Sometimes you need to remove the use_mirror=mesh if the download doesn't start.

Hope that helps

Kind Regards
Jaswi


All times are GMT -4. The time now is 14:25.