|
[Sponsors] |
[OpenFOAM.org] Parview 5.4.0 compilation problems on Ubuntu 18 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2019, 08:46 |
Parview 5.4.0 compilation problems on Ubuntu 18
|
#1 |
New Member
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 7 |
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 |
|
April 29, 2019, 21:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 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
__________________
|
|
April 30, 2019, 03:54 |
|
#3 |
New Member
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 7 |
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. |
|
April 30, 2019, 20:18 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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.... 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 20:21. Reason: see "edit:" |
|
May 1, 2019, 03:47 |
|
#5 |
New Member
Gadi Eidelheit
Join Date: Apr 2019
Posts: 3
Rep Power: 7 |
Thanks for the help!
|
|
May 8, 2020, 06:51 |
|
#6 |
Member
Callum Guy
Join Date: Dec 2019
Location: Scotland
Posts: 44
Rep Power: 7 |
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? |
|
October 16, 2021, 15:40 |
|
#7 |
New Member
Leon
Join Date: Oct 2021
Posts: 1
Rep Power: 0 |
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 15:54. Reason: additional step rerquired |
|
August 12, 2022, 15:40 |
|
#8 | |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5 |
Quote:
|
||
|
|
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 12:11 |
OpenFoam 2.1.x /2.2.0 compilation failed on Ubuntu 12.04/10 64bit | keepfit | OpenFOAM Installation | 2 | March 26, 2013 10:43 |
Compilation Error 1 (Allwmake) on Ubuntu 11.04 | freemankofi | OpenFOAM Installation | 12 | June 14, 2011 07:10 |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 | ftec | OpenFOAM Installation | 7 | February 23, 2011 07:07 |
Compilation problems and file locations | Joel | Siemens | 3 | February 11, 2003 13:42 |