Hello,
I am trying to compile CFDDEM. I recieve this error. As seen below, i have openfoam version 2.3.1. Ligghts is already compiled and works fine for me.
collect2: error: ld returned 1 exit status
make: *** [/home/rhewum/OpenFOAM/rhewum-2.3.1/platforms/linux64GccDPOpt/bin/cfdemPostproc] Error 1
compilation done.
alice | Mon, 04/11/2016 - 16:46
Hello Manton,
Hello Manton,
please use one of the OpenFOAM-*-x versions, e.g. OpenFOAM-2.4.x instead of the pre-compiled binary versions.
Best regards,
Alice
manton | Fri, 04/15/2016 - 16:05
Openfoam 2.4 compiled but still the same error.
Hi alice,
Thanks for the reply. I installed openfoam 2.4 but still the same error. Here are some first lines from the log file of installation.
home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-2.4.0/src/lagrangian/cfdemParticle
removing all .dep files ...
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file cfdemCloud/cfdemCloud.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C due to No such file or directory
Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file RASModel.H for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file omp.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
....
It keeps going on... with the same message at the end No such file or directory..... I believe this is the possible cause for the installation error. may be my source directory or the installation directory.. or something of this kind is causing the error.
I followed the installation procedure as mentioned from your website which goes like the following:
git clone the desired repository:
If not already done, open a terminal and create a directory for LIGGGHTS(R) in $HOME:
cd
mkdir LIGGGHTS
cd LIGGGHTS
To clone the public LIGGGHTS repository, open a terminal and execute:
git clone git://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git LIGGGHTS-PUBLIC
If not already done, open a terminal and create a directory for CFDEM(R)coupling in $HOME:
cd
mkdir CFDEM
cd CFDEM
Make sure that OpenFOAM(R) is already set up correctly!
To clone the public CFDEM(R)coupling repository, open a terminal and execute:
git clone git://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION
Troubles? See Troubleshooting section below.
Update your repositories by git pull:
To get the latest version, open a terminal, go to the location of your local installation and type: Warning: git stash will remove your changes in $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION !
cd $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION
git stash
git pull
......
strangely after dowloading from the git clone i open another terminal, i get a message
"do you want to create a directory -Public-2.4.0" yes or no.
What ever i click and try to install it gives me the same error. My question is.. is this normal during installation because it is not mentioned anywhere in the procedure.?
alice | Mon, 04/18/2016 - 09:27
Hello Manton,
Hello Manton,
the messages you mentioned in the beginning of your post are only pre-compiler statements, you can ignore them. Just let the routine proceed. However, it is important to use an OpenFOAM-*.x version, e.g. 2.4.x (not 2.4.0 as indicated by the last but one line you postet...). The question itself is normal, when installing a CFDEMcoupling-version for the first time, a user-directory of the form username-Public-OFversion is created.
Best regards,
Alice
manton | Tue, 04/19/2016 - 15:36
Installed openfoam 2.4.x but CFDEM cannot be installed
Hello Alice,
I have installed openfoam 2.4.x as you have mentioned. When compiling CFDEM i i did not get the error as before. But still i could not run the test case. I searched the forum and found this following thread:
http://www.cfdem.com/forums/install-cfdem-issues
The problem explained in the forum is exactly what i have now. Even in the other thread you have suggested to install openfoam 2.4.x .
I have mentioned the error below:
// run_parallel_cfdemSolverPiso_ErgunTestMPI_CFDDEM //
/home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-2.4.0/tutorials/cfdemSolverPiso/ErgunTestMPI/CFD
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not find an executable:
Executable: cfdemSolverPiso
Node: rhewum-HP-Z420-Workstation
while attempting to start process rank 0.
--------------------------------------------------------------------------
4 total processes failed to start
alice | Tue, 04/19/2016 - 16:33
Hello Manton,
Hello Manton,
the message you postet above just indicates that there is no executable called cfdemSolverPiso. This means that either the solver did not compile (likely) or that something's wrong with the pathes. Just have a look at the log-files that are created during the compilation ($CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log) to see what went wrong.
Best regards,
Alice
manton | Wed, 04/20/2016 - 11:14
Log files
// log_compileCFDEMcoupling_cfdemParticle-2016-04-19-14:33 //
Hello Alice,
I checked the directory which you mentioned.
In all the log files of solvers i have the same error mentioned below.:
/home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle
/home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/functions.sh: line 96: rmdepall: command not found
/home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/functions.sh: line 98: wclean: command not found
/home/rhewum/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/functions.sh: line 100: wmake: command not found