|
[Sponsors] |
[OpenFOAM.com] v1606+ Compiling/installing problems |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 21, 2016, 23:31 |
v1606+ Compiling/installing problems
|
#1 |
New Member
Shen shiquan
Join Date: Jul 2016
Location: The State Key Laboratory of Engines (Tianjin University)
Posts: 12
Rep Power: 10 |
when i install the OpenFOAM-v1606+, i have a trouble in compiling.
/usr/bin/ld: cannot find -lrandomProcesses collect2: error: ld returned 1 exit status /home/shq3/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/general:132: recipe for target '/home/shq3/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/foamDebugSwitches' failed make[2]: *** [/home/shq3/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/foamDebugSwitches] Error 1 make[2]: Leaving directory '/home/shq3/OpenFOAM/OpenFOAM-v1606+/applications/utilities/miscellaneous/foamDebugSwitches' /home/shq3/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'foamDebugSwitches' failed make[1]: *** [foamDebugSwitches] Error 2 make[1]: Leaving directory '/home/shq3/OpenFOAM/OpenFOAM-v1606+/applications/utilities/miscellaneous' /home/shq3/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'miscellaneous' failed make: *** [miscellaneous] Error 2 anyone can give a help. thank you in advance |
|
July 24, 2016, 15:23 |
|
#2 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
||
August 12, 2016, 05:04 |
[OpenFOAM plus][v1606+] Compiling/installing problems
|
#3 |
New Member
Join Date: Aug 2016
Posts: 12
Rep Power: 10 |
Hello!
I am trying to install the latest version of Openfoam-v1606+ on ubuntu 16.04. But this error keeps propping up everytime i type .\Allwmake I am copying the error message here. I will highly appreciate timely help since this installation procedure is really holding up very important work. I am also attaching the log file for the error. make[1]: Entering directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/DNS' Skipping dnsFoam solver (no FFTW) make[1]: Leaving directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/DNS' make[1]: Entering directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic' /home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic/laplacianFoam make[2]: Entering directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic/laplacianFoam' g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/gohar/OpenFOAM/OpenFOAM-v1606+/src/finiteVolume/lnInclude -I/home/gohar/OpenFOAM/OpenFOAM-v1606+/src/meshTools/lnInclude -IlnInclude -I. -I/home/gohar/OpenFOAM/OpenFOAM-v1606+/src/OpenFOAM/lnInclude -I/home/gohar/OpenFOAM/OpenFOAM-v1606+/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/applications/solvers/basic/laplacianFoam/laplacianFoam.o -L/home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib \ -lfiniteVolume -lmeshTools -lOpenFOAM -ldl \ -lm -o /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/laplacianFoam /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Intracomm::current_op' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_comm_map' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Is_initialized()' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_err_map' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Free()' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `op_intercept' /home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Init(void (*)(void const*, void*, int, MPI:atatype const&), bool)' collect2: error: ld returned 1 exit status /home/gohar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/general:132: recipe for target '/home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/laplacianFoam' failed make[2]: *** [/home/gohar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/laplacianFoam] Error 1 make[2]: Leaving directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic/laplacianFoam' /home/gohar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'laplacianFoam' failed make[1]: *** [laplacianFoam] Error 2 make[1]: Leaving directory '/home/gohar/OpenFOAM/OpenFOAM-v1606+/applications/solvers/basic' /home/gohar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'basic' failed make: *** [basic] Error 2 Thanks a lot! Last edited by sage; August 12, 2016 at 07:01. |
|
August 13, 2016, 10:57 |
|
#4 | |
New Member
Join Date: Aug 2016
Posts: 12
Rep Power: 10 |
Quote:
|
||
August 18, 2016, 10:16 |
|
#5 |
New Member
Michael Stiehm
Join Date: Sep 2010
Posts: 13
Rep Power: 16 |
Hello Sage,
I had the same error and solved it by following this instruction: https://openfoamwiki.net/index.php/Installation (depending on your system). Unfortunately another error occurred: /opt/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/applications/solvers/DNS/dnsFoam/dnsFoam.o.data.rel.ro._ZTVN4Foam8OPstreamE[_ZTVN4Foam8OPstreamE]+0x80): Nicht definierter Verweis auf `Foam::UOPstream::writeQuoted(std::__cxx11::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' collect2: error: ld returned 1 exit status /opt/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/general:132: die Regel für Ziel „/opt/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/dnsFoam“ scheiterte make[2]: *** [/opt/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/dnsFoam] Fehler 1 make[2]: Verzeichnis „/opt/OpenFOAM/OpenFOAM-v1606+/applications/solvers/DNS/dnsFoam“ wird verlassen /opt/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: die Regel für Ziel „dnsFoam“ scheiterte make[1]: *** [dnsFoam] Fehler 2 make[1]: Verzeichnis „/opt/OpenFOAM/OpenFOAM-v1606+/applications/solvers/DNS“ wird verlassen /opt/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: die Regel für Ziel „DNS“ scheiterte make: *** [DNS] Fehler 2 Did anybody solved this? Regards, Miael |
|
August 25, 2016, 02:03 |
Installation error OpenFoam V16.06+
|
#6 |
New Member
Join Date: Aug 2016
Posts: 4
Rep Power: 10 |
Hello,
I am having similar problem in installing OpenFoam v16.06+. Error reads.. /usr/bin/ld: cannot find -lrandomProcesses collect2: error: ld returned 1 exit status /home/shridhar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/general:132: recipe for target '/home/shridhar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/foamDebugSwitches' failed make[2]: *** [/home/shridhar/OpenFOAM/OpenFOAM-v1606+/platforms/linux64GccDPInt32Opt/bin/foamDebugSwitches] Error 1 make[2]: Leaving directory '/home/shridhar/OpenFOAM/OpenFOAM-v1606+/applications/utilities/miscellaneous/foamDebugSwitches' /home/shridhar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'foamDebugSwitches' failed make[1]: *** [foamDebugSwitches] Error 2 make[1]: Leaving directory '/home/shridhar/OpenFOAM/OpenFOAM-v1606+/applications/utilities/miscellaneous' /home/shridhar/OpenFOAM/OpenFOAM-v1606+/wmake/makefiles/apps:39: recipe for target 'miscellaneous' failed make: *** [miscellaneous] Error 2 ------------------------------------- Did any of you found the solution for this? I would really appreciate if anyone could help we with this. I tried using Ubuntu 15.10 for the installation bit still the error persists. Shridhar |
|
August 25, 2016, 07:37 |
|
#7 | |
New Member
buidu
Join Date: Dec 2014
Posts: 27
Rep Power: 12 |
Hi, have you found the final solution? I have the same problem during the installation.
Thank you. Quote:
|
||
August 28, 2016, 12:27 |
|
#8 |
New Member
Luke
Join Date: Jul 2012
Posts: 8
Rep Power: 14 |
Yes,
I also have the "/usr/bin/ld: cannot find -lrandomProcesses" problem... Did anybody find anything on this yet? |
|
September 6, 2016, 09:13 |
|
#9 | |
New Member
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11 |
Quote:
|
||
September 6, 2016, 09:24 |
|
#10 | |
New Member
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11 |
Quote:
|
||
September 11, 2016, 08:02 |
|
#11 |
New Member
Join Date: Apr 2013
Posts: 20
Rep Power: 13 |
Hi,
I faced the same problem. I found a workaround. In my case, it was the compilaiton of foamDebugSwitches that was the problem. So after analysing Allwmake, I went for moving foamDebugSwitches folder out of utilities folder. Here are the commands I typed : Code:
foam cd applications/ mv utilities/miscellaneous/foamDebugSwitches foamDebugSwitches_Moved ./Allwmake Hope that helps, Nathanaël. |
|
September 11, 2016, 11:29 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Sorry for the late response. If everyone here is using Ubuntu 16.04, detailed installation instructions are available here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 If anyone is using CentOS 6.x (or RHEL), instructions are available here: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL Anyone else, please state which Operating System you're using and if on Linux, which Linux Distribution you're using, so it's a bit easier to fully diagnose the problem. Nonetheless, I reported this problem on the 16th of August here: https://develop.openfoam.com/Develop...lus/issues/213 - the solution is to run the following commands: Code:
cd $WM_THIRD_PARTY_DIR sed -i -e 's=unset _foamAddPath=unset -f _foamAddPath=' makeFFTW cd $WM_PROJECT_DIR ./Allwmake -j Best regards, Bruno
__________________
|
|
September 12, 2016, 07:20 |
|
#13 | |
New Member
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11 |
Quote:
To a closer look at the name of the file requested, the "1606" suffix in the directory path misses the "+" character. I checked the environment variables and the third party directory variable is correctly stored with the "+", so it must be releted somehow to a fault in the process of the make script. One more thing: if i do of the ln -s /usr/bin/mpicc.openmpi OpenFOAM-v1606+/bin/mpicc ln -s /usr/bin/mpirun.openmpi OpenFOAM-v1606+/bin/mpirun the output is File or directory not found Attached you can have a look at (part of) the paraview make log. Thanks again for the support, it is very much appreciated |
||
September 13, 2016, 17:14 |
|
#14 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
Quote:
Code:
--- Installation complete for paraview-5.0.1 Now update the environment by running: wmREFRESH --- Done That being said, I will add a reference to this on the wiki and I did already report this at OpenFOAM+ bug tracker, when a similar issue occurs when building the OpenFOAM+ plugins for ParaView, which I reported here: https://develop.openfoam.com/Develop...lus/issues/211 - Mark Olesen in turn reported the issue on ParaView's bug tracker: https://gitlab.kitware.com/paraview/...w/issues/16880 Quote:
|
|||
September 14, 2016, 03:48 |
|
#15 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
The problem is an upstream (paraview) issue with '+' characters. I've submitted an issue and a merge request:
Update 2016-09-21: now fixed in the main paraview branch, which means it will come into the next paraview release. Last edited by olesen; September 20, 2016 at 02:48. |
||
September 14, 2016, 04:57 |
|
#16 | ||
New Member
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11 |
Quote:
Quote:
To sum up, I am still struggling with openfoam installation, but now the error has changed, no more '.../foamDebugSwitches' failed but a new one. The makelog is attached. Thanks for support |
|||
September 14, 2016, 16:48 |
|
#17 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Based on the error message that you've gotten: Code:
fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C: In member function ‘virtual void Foam::turbulentDFSEMInletFvPatchVectorField::write(Foam::Ostream&) const’: fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C:1110:63: error: no matching function for call to ‘Foam::turbulentDFSEMInletFvPatchVectorField::writeEntryIfDifferent(Foam::Ostream&, const char [13], int, const label&) const’ writeEntryIfDifferent(os, "nCellPerEddy", 5, nCellPerEddy_); ^ Code:
-DWM_LABEL_SIZE=64 The simplest solution is to go back to step #7, start a new terminal window and use the following commands:
edit: Mark Olesen has already fixed that problem with the 64-bit integer support on the 7th of July. If you really need it, then it's best that you use the OpenFOAM-plus repository, namely the "master" branch (the default when you use git clone). edit 2: For further questions about the 64-bit integer support problems, please use this thread: http://www.cfd-online.com/Forums/ope...it-labels.html Last edited by wyldckat; October 30, 2016 at 10:00. Reason: see "edit:" and "edit 2:" |
||
September 15, 2016, 05:34 |
|
#18 |
New Member
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11 |
Got it Bruno!
with the 32 bit option it worked, but just for the sake of knowing, I am wondering how you could tell about the 64 bit integer support from the error message ... Anyway, thanks again for your support! |
|
September 17, 2016, 08:31 |
|
#19 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
lnInclude/fvPatchField.H:533:18: note: template argument deduction/substitution failed: fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C:1110:63: note: deduced conflicting types for parameter ‘const EntryType’ (‘int’ and ‘Foam::label {aka long int}’) writeEntryIfDifferent(os, "nCellPerEddy", 5, nCellPerEddy_); Code:
deduced conflicting types for parameter ‘const EntryType’ (‘int’ and ‘Foam::label {aka long int}’) For example, I don't know if you're familiar with OpenFOAM's source code, but once in a while you can see something like this: Code:
scalar(1.0) |
||
September 17, 2016, 08:40 |
|
#20 | |
New Member
Join Date: Aug 2016
Posts: 12
Rep Power: 10 |
Quote:
|
||
Tags |
installation, openfoam-v1606+ |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 04:45 |
[ICEM] Flow channel meshing problems | StefanG | ANSYS Meshing & Geometry | 19 | May 15, 2012 07:44 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 06:44 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 12:00 |