Installation of CFDEM on Mac OS X ... twoWayMPI problem!!

Submitted by mikahs on
mikahs

In reply to by anonymous_stub (not verified)

Hello Christoph, thanks for your answer. I did what you suggested, and somehow I got another error now (after the twoWayMPI thingy, which now works with some warnings, but ok)...

here is the last part of the log:


SOURCE=subModels/liggghtsCommandModel/readLiggghtsData/readLiggghtsData.C ; g++-mp-4.5 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/meshTools/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude -I-Wl,-u,_munmap -Wl,-multiply_defined,suppress -lmpi -lopen-rte -lopen-pal/include/ -I/Users/mikahs/LIGGGHTS/LIGGGHTS/src -IlnInclude -I. -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc45DPOpt/readLiggghtsData.o
ld: library not found for -lopen-pal/include/
collect2: ld returned 1 exit status
make: *** [/Users/mikahs/OpenFOAM/mikahs-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib/liblagrangianCFDEM_shared.dylib] Error 1

What about this library!? I would really appreciate some help here...
edit: mmm openmpi library... ok, I am still lost here as I do have -lopen-pal, but that /include/ makes me wonder...

Miguel

Wed, 5 Oct 2011 - 21:00 Permalink
mikahs

In reply to by anonymous_stub (not verified)

The problem was on the Options File..

just pasted this:
-I$(MPI_ARCH_PATH) \

without the fishy /include/ thingy...

Thanks for the help though!!

M.

Wed, 5 Oct 2011 - 21:32 Permalink
mikahs

In reply to by anonymous_stub (not verified)

Hello, I've got another problem now...

Now I'm not sure what is going on... What does that mean? has anybody experienced something similar?

Cheers,

Miguel

Log of the error:

SOURCE=cfdemSolverPiso.C ; g++-mp-4.5 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc45DPOpt/cfdemSolverPiso.o
/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/readPISOControls.H: In function 'int main(int, char**)':
/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable 'nOuterCorr'
/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable 'transonic'
g++-mp-4.5 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels/incompressible/singlePhaseTransportModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc45DPOpt/cfdemSolverPiso.o -L/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib \
-L/Users/mikahs/OpenFOAM/mikahs-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM_shared -lOpenFOAM -ldl -lpthread -lm -o /Users/mikahs/OpenFOAM/mikahs-2.0.x/platforms/darwinIntel64Gcc45DPOpt/bin/cfdemSolverPiso_shared
Undefined symbols:
"Foam::incompressible::turbulenceModel::New(Foam::GeometricField, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField const&, Foam::transportModel&, Foam::word const&)", referenced from:
_main in cfdemSolverPiso.o
"Foam::incompressible::turbulenceModel::typeName", referenced from:
_main in cfdemSolverPiso.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [/Users/mikahs/OpenFOAM/mikahs-2.0.x/platforms/darwinIntel64Gcc45DPOpt/bin/cfdemSolverPiso_shared] Error 1

Wed, 5 Oct 2011 - 21:44 Permalink

Hi guys, I'm running onto a problem while trying to compile CFDEM...

First of all, yes, I compiled OF 2.0.1 from scratch... re-compiled it again, compiled liggghts, the libraries, checked that I am using the same compilers, edited the .bashrc at /etc , and I am having this error on twoWayMPI.C... By the way, on Mac OS x S.L. 10.6.8...

I guess that I am having some sort of problem with the including of liggghts libraries, so I am trying re-make-ing liggghts with different options.

It is worth noting that everything else done before this message was done without error or warning. I am using a slightly modified myFedora11/fedora make of liggghts. Any suggestions, clues?

Cheers!

M.

What the error looks like:

SOURCE=subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C ; g++-mp-4.5 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/transportModels -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/meshTools/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude -I-Wl,-u,_munmap -Wl,-multiply_defined,suppress -lmpi -lopen-rte -lopen-pal/include/ -I/Users/mikahs/LIGGGHTS/LIGGGHTS/src -IlnInclude -I. -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/Volumes/Mac-OF-2.0.x/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc45DPOpt/twoWayMPI.o
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function 'virtual void Foam::twoWayMPI::getVectorData(Foam::word, double** const&) const':
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:140:58: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:140:63: warning: deprecated conversion from string constant to 'char*'
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function 'virtual void Foam::twoWayMPI::getScalarData(Foam::word, double** const&) const':
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:150:58: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:150:63: warning: deprecated conversion from string constant to 'char*'
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function 'virtual void Foam::twoWayMPI::giveVectorData(Foam::word, double** const&) const':
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:160:57: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:160:62: warning: deprecated conversion from string constant to 'char*'
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function 'virtual void Foam::twoWayMPI::giveScalarData(Foam::word, double** const&) const':
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:170:57: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:170:62: warning: deprecated conversion from string constant to 'char*'
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function 'virtual bool Foam::twoWayMPI::couple() const':
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:220:50: error: 'liggghts_get_maxtag' was not declared in this scope
make: *** [Make/darwinIntel64Gcc45DPOpt/twoWayMPI.o] Error 1