CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] v1606+ Compiling/installing problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2016, 22:31
Default 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: 9
tju_shq is on a distinguished road
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
joshm and Shitiz like this.
tju_shq is offline   Reply With Quote

Old   July 24, 2016, 14:23
Default
  #2
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
Hi,

Did you follow this:

https://openfoamwiki.net/index.php/Installation

Regards,
T.D.
T.D. is offline   Reply With Quote

Old   August 12, 2016, 04:04
Default [OpenFOAM plus][v1606+] Compiling/installing problems
  #3
New Member
 
Join Date: Aug 2016
Posts: 12
Rep Power: 9
sage is on a distinguished road
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!
Attached Files
File Type: gz log.make.gz (21.5 KB, 4 views)

Last edited by sage; August 12, 2016 at 06:01.
sage is offline   Reply With Quote

Old   August 13, 2016, 09:57
Default
  #4
New Member
 
Join Date: Aug 2016
Posts: 12
Rep Power: 9
sage is on a distinguished road
Quote:
Originally Posted by sage View Post
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)!
Can somebody please help me out. i'd really appreciate it. This is really holding up important work.
sage is offline   Reply With Quote

Old   August 18, 2016, 09:16
Default
  #5
New Member
 
Michael Stiehm
Join Date: Sep 2010
Posts: 13
Rep Power: 15
miael is on a distinguished road
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
miael is offline   Reply With Quote

Old   August 25, 2016, 01:03
Default Installation error OpenFoam V16.06+
  #6
New Member
 
Join Date: Aug 2016
Posts: 4
Rep Power: 9
shri@ is on a distinguished road
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
shri@ is offline   Reply With Quote

Old   August 25, 2016, 06:37
Default
  #7
New Member
 
buidu
Join Date: Dec 2014
Posts: 27
Rep Power: 12
buidu is on a distinguished road
Hi, have you found the final solution? I have the same problem during the installation.
Thank you.
Quote:
Originally Posted by tju_shq View Post
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
buidu is offline   Reply With Quote

Old   August 28, 2016, 11:27
Default
  #8
New Member
 
Luke
Join Date: Jul 2012
Posts: 8
Rep Power: 13
MrFrog is on a distinguished road
Yes,

I also have the "/usr/bin/ld: cannot find -lrandomProcesses" problem...
Did anybody find anything on this yet?
MrFrog is offline   Reply With Quote

Old   September 6, 2016, 08:13
Default
  #9
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
Quote:
Originally Posted by tju_shq View Post
/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
Same error for me too... did anybody solve somehow?
coccone is offline   Reply With Quote

Old   September 6, 2016, 08:24
Default
  #10
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
Quote:
Originally Posted by shri@ View Post
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
Exactly the same error I have, OF solvers still work but some functions are not recognized. I figured it out on a simple test case trying to use setFields and it did not work.
coccone is offline   Reply With Quote

Old   September 11, 2016, 07:02
Default
  #11
New Member
 
Join Date: Apr 2013
Posts: 20
Rep Power: 13
Nathanael3 is on a distinguished road
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
The compilation of all the remaining utilities went well, I got setFields back !

Hope that helps,
Nathanaël.
Nathanael3 is offline   Reply With Quote

Old   September 11, 2016, 10:29
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
The "-j" option at the end will make it use all available cores, so that it's faster to build it.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 12, 2016, 06:20
Default
  #13
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
The "-j" option at the end will make it use all available cores, so that it's faster to build it.

Best regards,
Bruno
Thank you Bruno for looking into this, however I tried to build again (even deleteing all and going over the whole list of commands) I still have some issues at least with ParaView. In the makePV log there are some errors reporting files not found.
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
Attached Files
File Type: gz log.makePV.gz (158.8 KB, 3 views)
coccone is offline   Reply With Quote

Old   September 13, 2016, 16:14
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by coccone View Post
In the makePV log there are some errors reporting files not found.
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.
Sorry, I didn't notice those error messages when building ParaView in OpenFOAM+. I only cared about the final text:
Code:
    ---
    Installation complete for paraview-5.0.1
    Now update the environment by running:
        wmREFRESH
    ---
Done
so I didn't even go back to look for more details. In your case, the same message is reported, but it's 100 lines above the end of the file, not sure why. Nonetheless, those "error" messages can be ignored and ParaView has been built with success.

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:
Originally Posted by coccone View Post
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
There are two requirements for those two commands to work:
  1. You must be running the commands from the base folder "~/OpenFOAM".
  2. Open-MPI must be installed in your system, via apt-get.
wyldckat is offline   Reply With Quote

Old   September 14, 2016, 02:48
Default
  #15
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,712
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by coccone View Post
To a closer look at the name of the file requested, the "1606" suffix in the directory path misses the "+" character.
Bruno tagged me on this.
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.
wyldckat likes this.

Last edited by olesen; September 20, 2016 at 01:48.
olesen is offline   Reply With Quote

Old   September 14, 2016, 03:57
Default
  #16
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer:

Sorry, I didn't notice those error messages when building ParaView in OpenFOAM+. I only cared about the final text:
Code:
    ---
    Installation complete for paraview-5.0.1
    Now update the environment by running:
        wmREFRESH
    ---
Done
so I didn't even go back to look for more details. In your case, the same message is reported, but it's 100 lines above the end of the file, not sure why. Nonetheless, those "error" messages can be ignored and ParaView has been built with success.
I may have messed it up a bit, since even compressed the log was bigger than the forum attachment size limit, I had to delete the last thousand lines. Anyway I ran it some more times yesterday and in the last log I got it is at the end, as you said. So I guess that besides Error FODC0002 (the missing "+") everything is fine with paraView.

Quote:
Originally Posted by wyldckat View Post
Quick answer:
There are two requirements for those two commands to work:
  1. You must be running the commands from the base folder "~/OpenFOAM".
  2. Open-MPI must be installed in your system, via apt-get.
I had already installed Open-Mpi but they did not work, I must have been running them from a different path. Now they are just fine.

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
Attached Files
File Type: gz log.make.tar.gz (5.8 KB, 5 views)
coccone is offline   Reply With Quote

Old   September 14, 2016, 15:48
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by coccone View Post
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.
Quick answer: It's because you're trying to build with 64-bit labels. For example, if you take a look at these instructions: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - in step #7 it asks you to decide whether to use 32 or 64-bit integer support.

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_);
                                                               ^
and then based on what a few lines above it shows:
Code:
-DWM_LABEL_SIZE=64
this means that 64-bit integer support on v1606+ is partially broken


The simplest solution is to go back to step #7, start a new terminal window and use the following commands:
  1. To remove the previous entry for sourcing the v1606+ environment, run thisc ommand:
    Code:
    sed -i.old -e 's=.*of1606\+.*==' $HOME/.bashrc
  2. Then do the correct step from #7.
  3. Then do #8.
  4. Then do #9.
  5. Then do #11 and so on.
And hopefully you'll be good to go when it's finished.


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 09:00. Reason: see "edit:" and "edit 2:"
wyldckat is offline   Reply With Quote

Old   September 15, 2016, 04:34
Wink
  #18
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
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!
coccone is offline   Reply With Quote

Old   September 17, 2016, 07:31
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by coccone View Post
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 ...
Quick answer: I was in a hurry and only read the error messages diagonally, but after checking it now, a few lines below the ones I mentioned in the previous post, it has this message in the log file, near the end:
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_);
Emphasis:
Code:
deduced conflicting types for parameter ‘const EntryType’ (‘int’ and ‘Foam::label {aka long int}’)
"int" is usually 32-bit and "long int" is usually 64-bit. And the "5" was one of my main suspects as well, since it didn't have any type casting around it.

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)
This is for ensuring the number "1.0", which is usually of type "double" by default, is properly cast as either a "double" or a "float", depending on the floating point precision option used for building OpenFOAM. Similarly, I was expecting something like that, but for integers/labels.
wyldckat is offline   Reply With Quote

Old   September 17, 2016, 07:40
Default
  #20
New Member
 
Join Date: Aug 2016
Posts: 12
Rep Power: 9
sage is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: It's because you're trying to build with 64-bit labels. For example, if you take a look at these instructions: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - in step #7 it asks you to decide whether to use 32 or 64-bit integer support.

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_);
                                                               ^
and then based on what a few lines above it shows:
Code:
-DWM_LABEL_SIZE=64
this means that 64-bit integer support on v1606+ is partially broken


The simplest solution is to go back to step #7, start a new terminal window and use the following commands:
  1. To remove the previous entry for sourcing the v1606+ environment, run thisc ommand:
    Code:
    sed -i.old -e 's=.*of1606\+.*==' $HOME/.bashrc
  2. Then do the correct step from #7.
  3. Then do #8.
  4. Then do #9.
  5. Then do #11 and so on.
And hopefully you'll be good to go when it's finished.


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).
I was able to simply install OpenFoam-4.0 from openfoam.org. That is much easier to install with just a few lines of code.
sage is offline   Reply With Quote

Reply

Tags
installation, openfoam-v1606+

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
[mesh manipulation] Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 03:45
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 06:44
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 05:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 11:00


All times are GMT -4. The time now is 13:55.