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

[OpenFOAM.com] v3.0+ Compiling/installing problems on Ubuntu 15.10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2016, 09:53
Default v3.0+ Compiling/installing problems on Ubuntu 15.10
  #1
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Hi,

I am having problem installing OF-V3.0+ with ubuntu 15.10.

I am getting the following error message

Code:
make[2]: *** [/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/bin/cavitatingFoam] Error 1
make[1]: *** [cavitatingFoam] Error 2
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Intracomm::current_op'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_comm_map'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Is_initialized()'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_err_map'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Free()'
/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/lib/openmpi-system/libPstream.so: undefined reference to `op_intercept'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/mytest/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Debug/bin/solidDisplacementFoam] Error 1
make[1]: *** [solidDisplacementFoam] Error 2
It looks to me MPI problem. But when I run mpirun, i get

Code:
mpirun --version
mpirun (Open MPI) 1.6.5
Thanks for reading and helping.
cute is offline   Reply With Quote

Old   June 1, 2016, 16:45
Default
  #2
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Anyone has any suggestion regarding installation problem. I am trying to compile source code with Debug option.
cute is offline   Reply With Quote

Old   June 21, 2016, 02:35
Default
  #3
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
I am still stuck on this error for a long time. Any suggestion.
cute is offline   Reply With Quote

Old   June 21, 2016, 03:44
Default
  #4
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Here is my log file,if you would like to see errors.
Attached Files
File Type: zip log.zip (8.0 KB, 3 views)
cute is offline   Reply With Quote

Old   June 21, 2016, 13:23
Default
  #5
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
Two thing to try :
i) remove debug flag and recompile . See if you can any error
ii) compile thirdparty openmpi by yourself with debug flag and then compile openfoam in debug mode
pgh is offline   Reply With Quote

Old   June 21, 2016, 13:27
Default
  #6
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Quick question, how to compile openmpi with debug option. Is there any line I need to change in a file.
cute is offline   Reply With Quote

Old   June 22, 2016, 04:49
Default
  #7
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
HI Sorry . i missed the point. You donot need to compile openmpi with debug flag.
check this link
http://www.cfd-online.com/Forums/ope...i-related.html
pgh is offline   Reply With Quote

Old   June 22, 2016, 05:09
Default
  #8
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Thanks for the reply. I was able to fix that error by compiling openmpi separately.
Now I am getting following errors: (Note I used grep command to display all Errors)

Code:
Error FODC0002 in file:///home/mytest/OpenFOAM/OpenFOAM-v3.0: Error opening /home/mytest/OpenFOAM/OpenFOAM-v3.0: No such file or directory
Error FODC0002 in file:///applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml: Error opening /applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/PV4blockMeshReader_SM.xml: No such file or directory
Error FODC0002 in file:///home/mytest/OpenFOAM/OpenFOAM-v3.0: Error opening /home/mytest/OpenFOAM/OpenFOAM-v3.0: No such file or directory
Error FODC0002 in file:///applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml: Error opening /applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/PV4FoamReader_SM.xml: No such file or directory
I am installing OpenFOAM-v3.0+, but why in the error code it looks for OpenFOAM-v3.0.

Thanks for the help.
cute is offline   Reply With Quote

Old   June 23, 2016, 01:19
Default
  #9
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11
pgh is on a distinguished road
check whether you have sourced bashrc from desired openfoam folder
pgh is offline   Reply With Quote

Old   June 23, 2016, 03:32
Default
  #10
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
yes, it is in OpenFoam/OpenFoam-v3.0+/etc/bashrc.

I was able to compile with Debug switch with above 4 errors. I ran icoFoam, it is working through Debugger gdb. I read somewhere that it is possible to debug openfoam source code without debugging ThirdParty. How can I do that?
cute is offline   Reply With Quote

Reply


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
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Problems installin OpenFoam-1.5-dev in Ubuntu 8 tmata2002 OpenFOAM Installation 2 September 23, 2009 11:50
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 22:40
Compile problems on ubuntu 810 with gcc432 deepblue17 OpenFOAM Bugs 10 March 2, 2009 08:32
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


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