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

missing vtf3.h BPatch.h papi.h

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 12:59
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
OK, then there must be a conflict of MPI versions... what do these commands output:
Code:
mpirun --version
echo $FOAM_MPI
echo $PINC
echo $PLIBS
echo $MPI_ARCH_PATH
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 13:21
Default
  #22
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Hi,

sorry, I didn't notice your answer because of the new page.

Quote:
mpirun (Open MPI) 1.5.3
Quote:
echo $FOAM_MPI
openmpi-system
Quote:
echo $PINC
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
Quote:
echo $PLIBS
-pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Quote:
echo $MPI_ARCH_PATH
/usr/lib/openmpi
Best,
Ilya
linch is offline   Reply With Quote

Old   July 20, 2012, 13:28
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ilya,

OK, then the "LD_LIBRARY_PATH" variable must be contaminated - what does this output :
Code:
echo $LD_LIBRARY_PATH
If you can see the "local/mpich" path appear somewhere in the middle of that variable, then that would be the reason for this whole problem!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 13:33
Default
  #24
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Hi,
here it comes:
Quote:
echo $LD_LIBRARY_PATH
/home/shevchuk/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12:/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-system:/home/shevchuk/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib/openmpi-system:/usr/lib/openmpi/lib:/home/shevchuk/OpenFOAM/shevchuk-2.1.x/platforms/linux64GccDPOpt/lib:/home/shevchuk/OpenFOAM/site/2.1.x/platforms/linux64GccDPOpt/lib:/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib:/home/shevchuk/OpenFOAM/ThirdParty-2.1.x/platforms/linux64GccDPOpt/lib:/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/dummy:/opt/intel/Compiler/11.1/069/lib/intel64:/usr/lib/:/usr/lib64/:/opt/intel/Compiler/11.1/069/lib/intel64/:/usr/local/mpich/lib/
You're right. How can I clean it?

Best regards,
Iyla
linch is offline   Reply With Quote

Old   July 20, 2012, 14:13
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ilya,

Took me a while to get back to you... OK, edit OpenFOAM's "etc/bashrc" file once again and search for these lines:
Code:
#- Clean LD_LIBRARY_PATH
cleaned=`$foamClean "$LD_LIBRARY_PATH"` && LD_LIBRARY_PATH="$cleaned"
Add below those two lines this new one:
Code:
cleaned=`$foamClean "$LD_LIBRARY_PATH" "/usr/local/mpich/lib/"` && LD_LIBRARY_PATH="$cleaned"
I think taking out the "intel64" paths is also a good idea, for which you can use instead this line (I hope I'm not mistaken on this one):
Code:
cleaned=`$foamClean "$LD_LIBRARY_PATH" "/usr/local/mpich/lib/:/opt/intel/Compiler/11.1/069/lib/intel64:/opt/intel/Compiler/11.1/069/lib/intel64/"` && LD_LIBRARY_PATH="$cleaned"
If it doesn't work, use spaces instead of ":".

Again, better start a new terminal. Rebuilding only "Pstream" is also a good idea, after you check if the variable mentioned before is cleaned.

If you still have problems, the environment variable "PATH" is also a suspect

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 14:43
Default
  #26
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Hi Bruno,

thanks a lot, step by step we are getting closer. After cleaning the LD_LIBRARY_PATH the error reduced to
Quote:
mpirun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Then I cleaned the PATH varible:
Quote:
cleaned=`$foamClean "$PATH" "/usr/local/mpich/bin"` && PATH="$cleaned"
cleaned=`$foamClean "$PATH" "/opt/intel/Compiler/11.1/069/bin/intel64"` && PATH="$cleaned"
But now there is no mpi-path left and mpirun can't be found any more Now we have to add the "right" PATH, don't we? But which one is the right one?

Best regards,
Ilya
linch is offline   Reply With Quote

Old   July 20, 2012, 14:50
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Do any of these appear:
Code:
which mpirun
which mpicc
ls -l `which mpirun`
ls -l `which mpicc`
mpirun --version
mpicc --help
Number 3 and 4 might reveal if there is a symbolic link.

If not, then try building again OpenFOAM's own Open-MPI 1.5.3
Don't forget to switch back from SYSTEMOPENMPI to OPENMPI in "etc/bashrc".
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 14:55
Default
  #28
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
mpirun -> negative; but mpicc (2,4,6) is still there.
Quote:
ls -l `which mpicc`
lrwxrwxrwx 1 root root 23 3. Aug 2011 /usr/bin/mpicc -> /etc/alternatives/mpicc
Is it a good or a bad news? Should I still try to recompile the OF-internal openmpi?
linch is offline   Reply With Quote

Old   July 20, 2012, 14:58
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Try these again, still with the SYSTEMOPENMPI:
Quote:
Originally Posted by wyldckat View Post
OK, then there must be a conflict of MPI versions... what do these commands output:
Code:
mpirun --version
echo $FOAM_MPI
echo $PINC
echo $PLIBS
echo $MPI_ARCH_PATH
edit: Additionally, if you can:
Code:
sudo update-alternatives --config mpirun
Check if there are other options already installed in the system.
__________________

Last edited by wyldckat; July 20, 2012 at 15:01. Reason: SYSTEMOPENMPI and see "edit:"
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 15:03
Default
  #30
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Ok, here it is:

Quote:
mpirun --version
bash: mpirun: command not found.

$ echo $FOAM_MPI
openmpi-system

$ echo $PINC
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread

$ echo $PLIBS
-pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

$ echo $MPI_ARCH_PATH
/usr/lib/openmpi
linch is offline   Reply With Quote

Old   July 20, 2012, 15:05
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
You can also check:
Code:
update-alternatives --config mpirun
And see also:
Code:
ls -l /usr/bin/mpirun.*
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 15:10
Default
  #32
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
it doesn't look good:
Quote:
update-alternatives --config mpirun
update-alternatives: error: no alternatives for mpirun.
Quote:
ls -l /usr/bin/mpirun.*
ls: /usr/bin/mpirun.* not found
linch is offline   Reply With Quote

Old   July 20, 2012, 15:12
Default
  #33
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Then switch back to the normal OPENMPI option in OpenFOAM's etc/bashrc file and start a new terminal.

Then:
Code:
foam3rdParty
./Allwmake > make.log 2>&1
Let's see if Open-MPI 1.5.3 will play nice this time around
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 15:18
Default
  #34
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Unfortunately not. There are still the same errors.
Attached Files
File Type: txt make.log.txt (14.6 KB, 2 views)
linch is offline   Reply With Quote

Old   July 20, 2012, 15:22
Default
  #35
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
I think it is mpicc's fault here... but I don't know how to disable it without removing it

By the way, does this output anything:
Code:
echo $GREP_OPTIONS
In the mean time I'm going to test on the VM how to add mpicc to the mix to see if it bungles something up...
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 15:27
Default
  #36
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
By the way, does this output anything:
Code:
echo $GREP_OPTIONS
nope, nothing there
linch is offline   Reply With Quote

Old   July 20, 2012, 16:34
Default
  #37
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ilya,

It's taking me a while in trying to reproduce the same error. And the "debian-security" server seems to be offline for a couple of minutes to help...

I did find something interesting: seems that you might have installed on your machine the package "mpi-default-dev" but not the "mpi-default-bin". Without the second one, it's not possible to use the system Open-MPI properly. To check if they are installed:
Code:
dpkg-query -s mpi-default-bin
dpkg-query -s mpi-default-dev
If both commands provide the line:
Code:
Status: install ok installed
then something strange is going on... if only one appears, then that's why you have half of it.

This command can help figure out if there are other surrounding packages:
Code:
dpkg-query -W "*mpi*"
Then use the "-s" for each package to confirm if they are installed. Or simply use Synaptic as root:
Code:
synaptic
I'll make another post when I have more information!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 18:40
Default
  #38
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ilya,

And I'm out of ideas. I haven't been able to reproduce the problem you're having. My guess would be that the other application to blame could be the Icc compiler that is installed in your machine.

Nonetheless, my suggestion is to:
  1. Make sure to install those two packages:
    Code:
    sudo apt-get install mpi-default-bin mpi-default-dev
    They will make sure Open-MPI is properly installed. You'll need to reboot the machine.
  2. Switch to SYSTEMOPENMPI in OpenFOAM's "etc/bashrc" file.
  3. Start a new terminal and try again building Pstream!
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 19:17
Default
  #39
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17
linch is on a distinguished road
Hi Bruno,

first thanks a lot for the time you spent trying to figure out, what's goin on here.

None of the mpi-default-... packages is installed. Unfortunately though, I don't even have the sudo privileges, so I'll have to beg our admins at Monday to install them.

I wish you a nice weekend!
Ilya
linch is offline   Reply With Quote

Old   July 20, 2012, 20:30
Default
  #40
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ilya,

Maybe instead of begging for installing those packages, then perhaps it would be best to request more information about what's installed in the machine and also ask which packages could be affecting OpenFOAM's proper installation!

Over this long attempt to get things running, we've found that:
  • The system's mpicc seems to be from one package.
  • The system's mpirun is somewhat elusive, because sometimes it's present, others seems to be missing... although I might not be remembering this one properly.
  • Intel's compiler is also in sight, which could either be good or bad.
    • I wonder if Intel MPI is installed in there somewhere as well!?
Knowing more about what's installed would help, because with the default packages, I don't have any problems whatsoever!

Nonetheless, in the end, you might have to switch to building with Icc instead of Gcc, which OpenFOAM supports, as long as the Icc version isn't too old...

edit: and have a nice weekend as well

Best regards,
Bruno
__________________

Last edited by wyldckat; July 20, 2012 at 20:30. Reason: see "edit:"
wyldckat 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


LinkBacks (?)
LinkBack to this Thread: https://www.cfd-online.com/Forums/openfoam-installation/80787-missing-vtf3-h-bpatch-h-papi-h.html
Posted By For Type Date
Albert's Useful Computer Tips: gcc and OpenFOAM This thread Refback October 16, 2013 06:46

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Term in RAS-Models ngj OpenFOAM Bugs 17 February 29, 2012 08:05
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
Problem with paraFoam ata OpenFOAM 14 November 30, 2009 05:23
Missing output files stefanke OpenFOAM Running, Solving & CFD 4 September 8, 2006 05:51
Missing tets along line when meshing with ICEM CFD Georges P. Côté CFX 6 March 23, 2006 01:34


All times are GMT -4. The time now is 03:14.