CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   pisoFoam compiling error with OF 1.7.1 on MAC OSX (http://www.cfd-online.com/Forums/openfoam-programming-development/85669-pisofoam-compiling-error-1-7-1-mac-osx.html)

Greg Givogue March 3, 2011 19:10

pisoFoam compiling error with OF 1.7.1 on MAC OSX
 
Hi,

Today I decided to go through the process of installing OF 1.7.1 on an OSX 10.6.6 partition. I followed the instructions from http://openfoamwiki.net/index.php/Ho...enFOAM_v17_Mac. I tested icoFoam and simpleFoam - both worked great. However, the pisoFoam sovler failed with the following message:

Greg-Givogues-iMac:cavity greggivogue$ pisoFoam 4
-bash: pisoFoam: command not found

Message in pisoFoam.log………..

--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not find an executable:

Executable: pisoFoam
Node: Greg-Givogues-iMac.local

while attempting to start process rank 0.
--------------------------------------------------------------------------


So I decided to run wclean and wmake on pisoFoam and got the following message... and subsequent error. Does anyone know how to fix this problem - I really need pisoFoam for my project. Thanks


--------------------------------------------------------------------------
Greg-Givogues-iMac:pisoFoam greggivogue$ wmake
Making dependency list for source file pisoFoam.C
could not open file polyPatch.H for source file pisoFoam.C
could not open file labelPair.H for source file pisoFoam.C
could not open file boundBox.H for source file pisoFoam.C
could not open file pointZoneMesh.H for source file pisoFoam.C
could not open file faceZoneMesh.H for source file pisoFoam.C
could not open file cellZoneMesh.H for source file pisoFoam.C
could not open file lduMesh.H for source file pisoFoam.C
could not open file fvBoundaryMesh.H for source file pisoFoam.C
could not open file surfaceInterpolation.H for source file pisoFoam.C
could not open file DimensionedField.H for source file pisoFoam.C
could not open file volFieldsFwd.H for source file pisoFoam.C
could not open file surfaceFieldsFwd.H for source file pisoFoam.C
could not open file pointFieldsFwd.H for source file pisoFoam.C
could not open file slicedVolFieldsFwd.H for source file pisoFoam.C
could not open file slicedSurfaceFieldsFwd.H for source file pisoFoam.C
could not open file fvPatchFvMeshTemplates.C for source file pisoFoam.C
could not open file fvc.H for source file pisoFoam.C
could not open file fvMatrices.H for source file pisoFoam.C
could not open file fvm.H for source file pisoFoam.C
could not open file linear.H for source file pisoFoam.C
could not open file uniformDimensionedFields.H for source file pisoFoam.C
could not open file calculatedFvPatchFields.H for source file pisoFoam.C
could not open file fixedValueFvPatchFields.H for source file pisoFoam.C
could not open file adjustPhi.H for source file pisoFoam.C
could not open file findRefCell.H for source file pisoFoam.C
could not open file mathematicalConstants.H for source file pisoFoam.C
could not open file argList.H for source file pisoFoam.C
could not open file timeSelector.H for source file pisoFoam.C
could not open file singlePhaseTransportModel.H for source file pisoFoam.C
could not open file turbulenceModel.H for source file pisoFoam.C
could not open file setRootCase.H for source file pisoFoam.C
could not open file createTime.H for source file pisoFoam.C
could not open file createMesh.H for source file pisoFoam.C
could not open file createFields.H for source file pisoFoam.C
could not open file initContinuityErrs.H for source file pisoFoam.C
could not open file readTimeControls.H for source file pisoFoam.C
could not open file readPISOControls.H for source file pisoFoam.C
could not open file CourantNo.H for source file pisoFoam.C
could not open file setDeltaT.H for source file pisoFoam.C
could not open file continuityErrs.H for source file pisoFoam.C
SOURCE=pisoFoam.C ; g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/pisoFoam.o
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H: In function 'int main(int, char**)':
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable 'transonic'
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable 'nOuterCorr'
g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/openmpi-1.4.1 -lPstream Make/darwinIntel64DPOpt/pisoFoam.o -L/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt \
-lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -lpthread -lm -o /Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/pisoFoam
Undefined symbols:
"Foam::incompressible::turbulenceModel::New(Foam:: GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::transportModel&)", referenced from:
_main in pisoFoam.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [/Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/pisoFoam] Error 1

gschaider March 4, 2011 10:54

Quote:

Originally Posted by Greg Givogue (Post 297858)
Hi,

Today I decided to go through the process of installing OF 1.7.1 on an OSX 10.6.6 partition. I followed the instructions from http://openfoamwiki.net/index.php/Ho...enFOAM_v17_Mac. I tested icoFoam and simpleFoam - both worked great. However, the pisoFoam sovler failed with the following message:

Greg-Givogues-iMac:cavity greggivogue$ pisoFoam 4
-bash: pisoFoam: command not found

Message in pisoFoam.log………..

--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not find an executable:

Executable: pisoFoam
Node: Greg-Givogues-iMac.local

while attempting to start process rank 0.
--------------------------------------------------------------------------


So I decided to run wclean and wmake on pisoFoam and got the following message... and subsequent error. Does anyone know how to fix this problem - I really need pisoFoam for my project. Thanks


--------------------------------------------------------------------------
Greg-Givogues-iMac:pisoFoam greggivogue$ wmake
Making dependency list for source file pisoFoam.C
could not open file polyPatch.H for source file pisoFoam.C
could not open file labelPair.H for source file pisoFoam.C
could not open file boundBox.H for source file pisoFoam.C
could not open file pointZoneMesh.H for source file pisoFoam.C
could not open file faceZoneMesh.H for source file pisoFoam.C
could not open file cellZoneMesh.H for source file pisoFoam.C
could not open file lduMesh.H for source file pisoFoam.C
could not open file fvBoundaryMesh.H for source file pisoFoam.C
could not open file surfaceInterpolation.H for source file pisoFoam.C
could not open file DimensionedField.H for source file pisoFoam.C
could not open file volFieldsFwd.H for source file pisoFoam.C
could not open file surfaceFieldsFwd.H for source file pisoFoam.C
could not open file pointFieldsFwd.H for source file pisoFoam.C
could not open file slicedVolFieldsFwd.H for source file pisoFoam.C
could not open file slicedSurfaceFieldsFwd.H for source file pisoFoam.C
could not open file fvPatchFvMeshTemplates.C for source file pisoFoam.C
could not open file fvc.H for source file pisoFoam.C
could not open file fvMatrices.H for source file pisoFoam.C
could not open file fvm.H for source file pisoFoam.C
could not open file linear.H for source file pisoFoam.C
could not open file uniformDimensionedFields.H for source file pisoFoam.C
could not open file calculatedFvPatchFields.H for source file pisoFoam.C
could not open file fixedValueFvPatchFields.H for source file pisoFoam.C
could not open file adjustPhi.H for source file pisoFoam.C
could not open file findRefCell.H for source file pisoFoam.C
could not open file mathematicalConstants.H for source file pisoFoam.C
could not open file argList.H for source file pisoFoam.C
could not open file timeSelector.H for source file pisoFoam.C
could not open file singlePhaseTransportModel.H for source file pisoFoam.C
could not open file turbulenceModel.H for source file pisoFoam.C
could not open file setRootCase.H for source file pisoFoam.C
could not open file createTime.H for source file pisoFoam.C
could not open file createMesh.H for source file pisoFoam.C
could not open file createFields.H for source file pisoFoam.C
could not open file initContinuityErrs.H for source file pisoFoam.C
could not open file readTimeControls.H for source file pisoFoam.C
could not open file readPISOControls.H for source file pisoFoam.C
could not open file CourantNo.H for source file pisoFoam.C
could not open file setDeltaT.H for source file pisoFoam.C
could not open file continuityErrs.H for source file pisoFoam.C
SOURCE=pisoFoam.C ; g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/pisoFoam.o
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H: In function 'int main(int, char**)':
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable 'transonic'
/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable 'nOuterCorr'
g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/openmpi-1.4.1 -lPstream Make/darwinIntel64DPOpt/pisoFoam.o -L/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt \
-lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -lpthread -lm -o /Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/pisoFoam
Undefined symbols:
"Foam::incompressible::turbulenceModel::New(Foam:: GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::transportModel&)", referenced from:
_main in pisoFoam.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [/Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/pisoFoam] Error 1

Is this the only solver that is broken? Check with

ls $FOAM_APPBIN

what is there. Have a look with

ls -l $FOAM_LIBBIN/libincom*

whether these Libraries are there. Try to remove the turbulence Libraries

rm $FOAM_LIBBIN/libincompressibleTurbulenceModel.* $FOAM_LIBBIN/libincompressibleRASModels.* $FOAM_LIBBIN/libincompressibleLESModels.*

then recompile everything with ./Allwmake (shouldn't take too long as only these libraries will be relinked)

Bottom line: I've got no concrete problem what the problem might be

gschaider March 4, 2011 11:02

Quote:

Originally Posted by gschaider (Post 297944)
Is this the only solver that is broken? Check with

ls $FOAM_APPBIN

what is there. Have a look with

ls -l $FOAM_LIBBIN/libincom*

whether these Libraries are there. Try to remove the turbulence Libraries

rm $FOAM_LIBBIN/libincompressibleTurbulenceModel.* $FOAM_LIBBIN/libincompressibleRASModels.* $FOAM_LIBBIN/libincompressibleLESModels.*

then recompile everything with ./Allwmake (shouldn't take too long as only these libraries will be relinked)

Bottom line: I've got no concrete problem what the problem might be

Ah. Noticed. Try adding the line

-lincompressibleTurbulenceModel \

right behind EXE_LIBS to the pisoFoam/Make/options-file if it isn't there. I didn'T see that library referenced in your output and it should be

Bernhard

Greg Givogue March 4, 2011 18:18

Thank you Bernhard! I would never have picked up on that.

Last night I decided to take another crack at it using the disc image approach described here http://chrisjbutler.wordpress.com/20...for-os-x-10-6/

and here http://macof17x.blogspot.com/p/detailed-setup.html.

It seems to be a better way of doing things from a space prespective.

My build tests well and I appreciate everyone's effort to make this process as painless as possible! Greg


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