|
[Sponsors] |
ParaView-4.0.1 did not compile for foam extend 3.0 installation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 2, 2014, 07:33 |
ParaView-4.0.1 did not compile for foam extend 3.0 installation
|
#1 |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
Hi all,
I am using Scientific Linux and I tried to install foam extend 3.0 WITHOUT installing the original OpenFoam 2.x.x. I followed the instructions on the openfoam wiki website given for Fedora (which is the one that should be followed for the package system SL is using). foam extend's own packages seem to have installed fine, but I am having problems with ThirdParty. For your information, I am trying to use the qt47-devel package which should be fine to compile ParaView 4.0.1, and I am showing the correct path to the bin directory of qt that comes with it. My prefs.sh has this line to point to QT_DIR_BIN: Code:
export QT_BIN_DIR=/usr/lib64/qt47/bin/ Code:
$ ./ThirdParty/AllMake.pre >& ThirdParty/log_AllMake.pre Code:
RPM build errors: Bad exit status from /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.qZ98vr (%build) Installing package: ParaView-4.0.1 Uninstalling ParaView-4.0.1 using RPM: ParaView-4.0.1-linux64GccDPOpt.x86_64 Installing ParaView-4.0.1 using RPM file: /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm error: open of /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory |
|
June 2, 2014, 17:09 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings mhkenergy and welcome to the forum!
Scientific Linux is very similar to CentOS and RHEL. You didn't mention which version you're using, so I'll have to guess that you might be using SL 6.5, therefore please try following the instructions given here: http://www.cfd-online.com/Forums/ope...tml#post483525 post #4 Best regards, Bruno
__________________
|
|
June 2, 2014, 17:20 |
|
#3 |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
wyldkat, thank you for your reply. Yes, I am using Scientific Linux release 6.5. I will look at the post you recommended and post back whether it works or not.
|
|
June 2, 2014, 19:45 |
|
#4 | |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
Unfortunately, still no progress. With gcc v4.8.2 and qt-devel v4.7 I am using for the installation process, I am still getting the same error:
Code:
RPM build errors: Bad exit status from /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.jcIpE6 (%build) Installing package: ParaView-4.0.1 Uninstalling ParaView-4.0.1 using RPM: ParaView-4.0.1-linux64GccDPOpt.x86_64 Installing ParaView-4.0.1 using RPM file: /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm error: open of /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Quote:
I would be glad if someone can help me with this without making me install ParaView separately from binary. |
||
June 3, 2014, 06:00 |
|
#5 |
Senior Member
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18 |
Hi,
The quote is for Ubuntu. That is about the OpenFOAM reader for paraFoam, which is not the same as compiling ParaView. We still have that problem with the reader for Ubuntu. I also had problems installing ParaView in REDHAT, but just recently I figured out a way to make it work in our system. Before compiling ParaView, do: export WM_NCOMPPROCS=1 Let me know if that is helpful for you as well. Best regards, Håkan |
|
June 3, 2014, 07:19 |
|
#6 |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
Hi Hakan,
Thank you for your reply. However, I still get the same error after trying your advice and putting it to $WM_PROJECT_DIR/etc/prefs.sh. ParaView had first warned when I was doing my first Install with a lesser version of qt, but then I installed qt 4.7 which was stated in that first Install error message to be sufficient for compiling ParaView 4.0.1. Would running AllClean script before attempting this be useful? I am attaching my logfile in case someone would like to to check and think about the problem encountered. There are a few other things like scotch and parmetis, but currently I am just concentrated on the ParaView compile problem. You can see the paraView error part close to the end of the log-file in attachment. |
|
June 3, 2014, 08:02 |
|
#7 |
Senior Member
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18 |
The error message is the same for all the packages that fail, so it is not specific to ParaView:
Error: expecting string instruction after `rep' Googling for this, I see that some people had problems with gcc versions and binutils. I use as --version -------------- GNU assembler version 2.20.51.0.2-5.36.el6 20100205 gcc --version --------------- gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3) If you would like to try, you can uncomment different lines for gcc/gmp/mpfr/mpc in AllMake.stage.1 to compile other versions of gcc. Of course, you may have to change your foam-extend environment so that the new version is used. It may help. Google a bit for this error message and see what you find. Håkan |
|
June 3, 2014, 19:50 |
|
#8 |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
So far my experience with installing foam extend 3.0 on Scientific Linux 6.5:
I tried 4 different combinations of installations that would result from pairing gcc versions 4.8.2 & 4.4.7 with Qt v4.7 & QT_THIRD_PARTY (which if I don't remember wrong is Qt v4.8.5). I also have binutils-devel v2.20.51 that is provided by sl6x repo. It appears that the compilation process of ParaView 4.0.1 that comes with foam extend 3.0 does not like gcc v4.8.2; which resulted not only in errors in ParaView compilation but also in scotch and parametis. On the ParaView side, it gave "Error: expecting string instruction after `rep'". Then I disabled gcc v4.8.2 and switched to 4.4.7 which handled the installation of scotch and parametis, and compiled ParaView a long way up to 88% until it quit by providing the error below for both system installed Qt v4.7 and QT_THIRD_PARTY=1 options: Code:
[ 88%] Generating ui_pqBarChartOptionsWidget.h Generating ui_pqApplicationOptions.h uic: Error in line 115, column 61 : Unexpected attribute alignment File '/home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.0.1-source/Qt/Components/Resources/UI/pqApplicationOptions.ui' is not valid make[2]: *** [Qt/Components/ui_pqApplicationOptions.h] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 88%] Generating ui_pqBoxWidget.h make[1]: *** [Qt/Components/CMakeFiles/pqComponents.dir/all] Error 2 make: *** [all] Error 2 error: Bad exit status from /home/silverwolf/foam/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.ErU441 (%build) I will look into what this error I posted above might mean, but as of now I am not very hopeful in terms of how this is going to get solved since I've already spent way too much time on trying to make this work among a million things I have to deal with my research. Please feel free to have look at my attached prefs.sh and ThirdParty installation process logfile if you're interested. Thanks again everyone for sharing their opinions and knowledge about the problem. I would be glad for further assistance. Best regards, Last edited by mhkenergy; June 3, 2014 at 21:41. |
|
June 4, 2014, 03:26 |
|
#9 |
New Member
Join Date: Jun 2014
Posts: 10
Rep Power: 12 |
Folks, at last I have good news
I was able to compile ParaView 4.0.1 after long tries but the solution came after a surprising update from Qt itself. Today when I tried to run $WM_THIRD_PARTY_DIR/AllMake.stage4 , I saw that the connection to the package url failed. I looked on the web to see if the Qt download links were dead, and indeed I saw that on June 2 they updated 4.8 series version to 4.8.6 from 4.8.5 which was the version that came with foam extend 3.0 itself. And since I couldn't compile ParaView on SL 6.5 with both Qt v4.7 (System installed Qt version) and Qt 4.8.5 (QT_THIRD_PARTY=1 version), I manipulated a few files so that I could connect to the recently updated Qt package download server and install Qt 4.8.6 with proper environment variables. These were namely:
Then we need to create a ".spec" file corresponding to 4.8.6 version, which is should be:
For those of you like me who are using devtoolset-2 version gcc which is v4.8.2, ParaView simply refused to compile with it. So I disabled it, and used gcc 4.4.7 which comes with the standard development tools software group of sl6x repo. I'd recommend you to stick with that version instead of a higher one. Make sure you set your compilerInstall=System variable in your prefs.sh. After that, you can simply source your $WM_PROJECT_DIR/etc/bashrc, execute $WM_THIRD_PARTY/AllMake.stage4 and start the compilation of Qt v4.8.6 which takes a really long time. The script took care of compiling ParaView after finishing its work with Qt v4.8.6, and I got a compiled working version of ParaView v4.0.1 that is compatible with paraFoam. In attachment I am presenting to you my prefs.sh,and a screenshot of a working ParaView after a painful process . When I have time, I can try writing out a neat guideline for the process. Thanks again for sharing your experiences and ideas. I'm posting this immediately after getting a successfully compiled ParaView, so I'll post if I encounter further unresolved problems with the entire process of installing foam extend 3.0. Best regards, |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation Problem with ParaView 3.12.0 on Scientific Linux 5.7 | Wley | OpenFOAM Installation | 2 | September 28, 2012 07:06 |
ParaView installation problem on Suse 11.4 | victorz | OpenFOAM Installation | 4 | February 6, 2012 18:26 |
[OpenFOAM] Installation problem with ParaView 3.8.0 on openSUSE 11.2 | aero_ | ParaView | 14 | August 2, 2010 19:13 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |
Paraview installation troubles | jjhall | OpenFOAM Installation | 3 | April 17, 2008 13:59 |