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

[OpenFOAM.org] Parview 5.4.0 compilation problems on Ubuntu 18

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gadieid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2019, 07:46
Default Parview 5.4.0 compilation problems on Ubuntu 18
  #1
New Member
 
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 6
gadieid is on a distinguished road
Hi.
My operating system is Ubuntu 18.04.2 out of the box and I am trying to compile OpenFoam 6.x from source using these instructions:

https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

The computer includes a simple NVIDIA card (GT710)

The source code is downloaded with git
git clone https://github.com/OpenFOAM/OpenFOAM-6.git
git clone https://github.com/OpenFOAM/ThirdParty-6.git

The reason I am compiling is that I want to compile Paraview with python (I am using anaconda 2.7 latest distribution)

MPi version is Open MPI 2.1.1

So my compilation line looks like this:

./makeParaView -python -mpi -python-lib /home/eyal/anaconda2/lib/libpython2.7.so.1.0 > log.makePV 2>&1

And repeatedly get this error:

[ 87%] Linking CXX static library ../../lib/libvtkPVServerManagerRenderingCS-pv5.4.a
[ 87%] Built target vtkPVServerManagerRenderingCS
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2

The OF itself pass compilation without any problems.
As a workaround I use the PV from previous Of version (PV 4.4) but would like to be able to compile the new one.
Any help will be apprecaite,
Thanks
Gadi
gadieid is offline   Reply With Quote

Old   April 29, 2019, 20:46
Default
  #2
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: The error lines you provided tell us nothing useful The complete "log.makePV" you tell us a lot more.

That said, you're using another Python installation, so the build scripts might be getting confused, due to multiple Python 2.7 versions...

Run:
Code:
./makeParaView -help
and check what other options exist for Python settings...

An example from here: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.8
Code:
./makeParaView -qt-4.8.6 -mpi -python -python-lib /opt/rh/python27/root/usr/lib64/libpython2.7.so -python-include /opt/rh/python27/root/usr/include/python2.7 > log.makePV 2>&1
which you can see, it uses the option "-python-include"...
__________________
wyldckat is offline   Reply With Quote

Old   April 30, 2019, 02:54
Default
  #3
New Member
 
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 6
gadieid is on a distinguished road
Thanks for your input. I will try to attach the full log.
As you mentioned, I am using a different Python package. It worked in previous version of OF/PV (3 and 4) and the only change needed was to supply the new pythonlib.
My mistake was that i presumed it will work on these version as well.

In PV5.4 the python-include-dir is new and I tried to set it as well, but there was no difference in the results.

I tried to remove the -python at all (and change the makeParaView file to have python=false) but the same problem occurred (I suspect that it still tries to compile with python).

The last attempt was to use a clean environment with the OS-out-of-the-box python, and use the exact lines of the instructions. That worked!

So indeed the blame is on me, trying different Python. I might try a lower Anaconda version and see if it will work, or simply install all the libraries I need in the OD python. but at least there is some focus on the source of the problem.

However if you have the time and can glance in the full log of the bad compilation this will be great.

Thanks for your help!
Gadi.
Attached Files
File Type: gz log.makePV.python.gz (143.2 KB, 5 views)
joshwilliams likes this.
gadieid is offline   Reply With Quote

Old   April 30, 2019, 19:18
Default
  #4
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: So what broke the build was this:
Code:
/usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
collect2: error: ld returned 1 exit status
Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/build.make:199: recipe for target 'bin/vtkLegacyColorMapXMLToJSON' failed
make[2]: *** [bin/vtkLegacyColorMapXMLToJSON] Error 1
CMakeFiles/Makefile2:14852: recipe for target 'Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/all' failed
make[1]: *** [Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Searching online for the first error line gave me this: https://discourse.paraview.org/t/pv-...nd-uuid/884/14

So my guess is that there is a library in the Anaconda library stack that contaminated the build environment and affected the build.

I know I did use with success the Anaconda software stack back in 2016 to build ParaView et al, but apparently something went wrong with the build you have of Anaconda and Ubuntu 18.04.

Technically, as long as the two Python versions are identical or nearly identically (e.g. Python 2.7.13 and 2.7.14), you can now activate the shell environment for Anaconda on top of OpenFOAM and ParaView should pick up Anaconda's Python version and complete Python stack. This way you can get the best of both worlds: no headache building ParaView and have the complete Anaconda stack


----
Edit: I remember now where I wrote about using Anaconda... it's written here:
And yes, it was used by both OpenFOAM and foam-extend.

Last edited by wyldckat; April 30, 2019 at 19:21. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   May 1, 2019, 02:47
Default
  #5
New Member
 
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 6
gadieid is on a distinguished road
Thanks for the help!
gadieid is offline   Reply With Quote

Old   May 8, 2020, 05:51
Default
  #6
Member
 
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 6
CallumG is on a distinguished road
Has this ever been resolved? I have the same issue with the Third Party ./Allmake for OpenFOAM-6 on Ubuntu 18.04 (log attached). I think it's exactly the same issue, but from reading this thread and the one linked on the PV website I'm not sure I can fathom how to resolve it?

I followed the wiki instructions to a t:
https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

Apologise I'm inexperieced with compiling/building code so I may have missed what I actually need to do to get it to build? Is there any chance anyone could give me a bit of a steer on how I go about getting this to work?
Attached Files
File Type: zip log1.zip (144.0 KB, 3 views)
File Type: zip log2.zip (89.8 KB, 2 views)
CallumG is offline   Reply With Quote

Old   October 16, 2021, 14:40
Default
  #7
New Member
 
Leon
Join Date: Oct 2021
Posts: 1
Rep Power: 0
leonpjv is on a distinguished road
Hi Callum,

I realise this is too late to help you but may help someone else.

As wyldckat pointed out, Anaconda may cause issues with the build.

What I did to avoid anaconda interfering was:
1. Comment out the lines in the ~/.bashrc file which export the anaconda path. Look for the lines ">>> conda initialize >>>" and "<<< conda initialize <<<", and then comment out between them.
2. open a new terminal for changes to take effect.
3. then run ./makeParaView

This worked for me. You can uncomment afterwards (undo step 1).

Last edited by leonpjv; October 16, 2021 at 14:54. Reason: additional step rerquired
leonpjv is offline   Reply With Quote

Old   August 12, 2022, 14:40
Default
  #8
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 112
Rep Power: 5
joshwilliams is on a distinguished road
Quote:
Originally Posted by leonpjv View Post
Hi Callum,

I realise this is too late to help you but may help someone else.

As wyldckat pointed out, Anaconda may cause issues with the build.

What I did to avoid anaconda interfering was:
1. Comment out the lines in the ~/.bashrc file which export the anaconda path. Look for the lines ">>> conda initialize >>>" and "<<< conda initialize <<<", and then comment out between them.
2. open a new terminal for changes to take effect.
3. then run ./makeParaView

This worked for me. You can uncomment afterwards (undo step 1).
This is good advice. But a cleaner option than commenting/uncommenting code is to simply do "conda deactivate" before compiling. Then you may do "conda activate" after to restore your base python env.
joshwilliams is offline   Reply With Quote

Old   January 7, 2023, 22:05
Default Installtion of Paraview-5.6.3
  #9
New Member
 
shixuemozun
Join Date: Jan 2023
Posts: 3
Blog Entries: 1
Rep Power: 3
shixuemozun is on a distinguished road
When i run ./makeParaView

there are some troubles:

Makefile:152 all Error 2
Command exited with non-zero status 2
shixuemozun 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
[OpenFOAM.com] Problems building OF-1.7.x version, Ubuntu 16.04, Gcc-5.4.0 wadekar OpenFOAM Installation 2 February 22, 2017 11:11
OpenFoam 2.1.x /2.2.0 compilation failed on Ubuntu 12.04/10 64bit keepfit OpenFOAM Installation 2 March 26, 2013 09:43
Compilation Error 1 (Allwmake) on Ubuntu 11.04 freemankofi OpenFOAM Installation 12 June 14, 2011 06:10
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 06:07
Compilation problems and file locations Joel Siemens 3 February 11, 2003 12:42


All times are GMT -4. The time now is 22:30.