OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit)
Hello all, :)
I was using OpenFoam 1.6 ext in Fedora 16 for the last few months. As far as remember, the installation process was simple, I followed a thread in cfdonline and everything worked fine in the first trial itself. Everything was working fine.. Humm.. but, last weak I decided to upgrade to Fedora 17 and now I am stuck with the compilation process... :( I downloded the source from git and tried to build the third party packages first. There were some issues in buillding libccmio and paraview. After lots of googling I was able to correct them and finally the thirdparty side was finished without errors. But when I try to do Allwmake I am getting lots of errors.. The first few lines are follows, Code:
[jabir@entropy OpenFOAM-1.6-ext]$ ./Allwmake 2>&1 | tee wmake_log_file_D.txt BTW, I am following this thread as the guideline for installation. http://www.cfd-online.com/Forums/ope...1-4-64bit.html one more notable thing, my system paraview, version 3.14, installed from fedora official repository is returning this error. (tested after commenting openfoam path from bashrc) [jabir@entropy ~]$ paraview /usr/lib/paraview/paraview: symbol lookup error: /lib/libOSMesa.so.8: undefined symbol: _glapi_Dispatch [jabir@entropy ~]$ But, after compiling openfoam's thirdparty, paraview is working.. It is version 3.12 now, ie., it is the one I compiled.. right? Any help or tips will be greatly appreciated.. Thanks in advance.. Jabir |
Hi.. Good morning all.. :)
I googled for the errors of the ./Allwmake and found this page. I cant reach a conclusion, but I think my problems are somehow related to this. http://gcc.gnu.org/gcc-4.7/porting_to.html Quote:
Code:
[jabir@entropy OpenFOAM-1.6-ext]$ gcc --version Shall I compile gcc coming with the thirdparty? The "Gcc and companion libraries" part is found commented in Allmake.stage1 script. why? Is it fine to uncomment those lines and rerun stage1? Somebody please advice! and Thanks a lot for your time, Regards Jabir |
Hello there,
A Good Day to you! Great to see that you have already tried to compile OpenFOAM on Fedora 17 :-)! I tried compiling on Fedora 17 (64-bit) last evening, and ended up with the same errors... You are right.... the errors you are seeing are related to the changes in the new version of GCC (GCC 4.7.0) which is the default compiler in Fedora 17. I am currently working through each of these errors one by one, and correcting the OpenFOAM source-code where required. However, I am not done with the changes yet. I guess once I am finished, I will probably create a new branch on the OpenFOAM-1.6-ext Git server to encapsulate all the changes required to get OpenFOAM compiled with GCC 4.7.0. Have a great day ahead! Philippose |
Hi Philippose! A good day to you too..
Thank you for your reply.. I am really glad to hear that someone else is also facing the same errors..sorry! :) So, I decided to wait until you finish the correction of the OpenFOAM source-code and made it available though the git repo. Meantime, I am planing to install Fedora 16 in the freespace available in the hard drive. Please let me know once you finished with updating the git repository. What about the error coming from paraview, I mensioned in the first thread? Can you please test it in your computer? Code:
[jabir@entropy ~]$ paraview Code:
echo ======================================== Regards, Jabir |
> Also, Why does the "Gcc libraries" section is commented in Allmake.stage1 script? Is it possible to uncomment those lines and build a previous version of gcc specifically for compiling openfoam?
Simple answer: Yes it is possible to uncomment those lines. Those instructions were provided to give people the choice of using some other versions of the gcc compiler than the default version bundled with your OS. Sometimes, your OS will ship with a new version of the gcc compiler that is untested with OpenFOAM, and your compilation process might sometimes break. Sounds familiar? On my end, I rarely rely in the stock compiler bundled with the OS to compile OpenFOAM because I don't want to spend time on those compiler's compile or runtime related issues. I select a proven version of the compiler, the same SGI or Hrv have been using for their releases, and I stick with that. I switch compiler when they decide to switch compiler, or when I need something special like the new AVX opcodes offered by gcc 4.6.x and up. Compiling GCC is a fairly minor operation that I have tried to automate as much as possible with the 1.6-ext version. Give it a try. Martin |
Hello Martin!
Thanks for your valuable advice.. Your notes are really short, simple and informative. I got the point.. :) I am going to delete everything and starting from scratch again. I am planning to use gcc-4.5.1. I shall post the updates tomorrow. BTW the problem with paraview is still unsolved.. :( Thanks once again, Regards Jabir |
Hi again,
A Good Evening! I just wanted to inform you, that I have pushed a new branch into the OpenFOAM-1.6-ext Git repository called "hotfix/gcc47" which contains the changes required to compile OpenFOAM-1.6-ext using GCC 4.7. These changes have been tested on a Fedora 17 64-bit machine, and the results of the Test-Harness have been uploaded to the OpenFOAM-extend CDash Test-Harness server. @Martin: Thanks a lot for your response regarding access to the CDash Server. I was under the impression that I need to log in first, and that I needed to have a valid account on the CDash system in order to be able to submit the test results..... However, submission of the results using the Test-Harness as setup on the Git Master branch worked perfectly :-)! It would be great if others could try compiling OpenFOAM on Linux Distributions based on GCC 4.7 to confirm that the changes made are ok. Have a great weekend ahead! Philippose |
> @Martin: Thanks a lot for your response regarding access to the CDash Server. I was under the impression that I need to log in first, and that I needed to have a valid account on the CDash system in order to be able to submit the test results..... However, submission of the results using the Test-Harness as setup on the Git Master branch worked perfectly :-)!
Glad you find it useful. The test harness and its CDash server is open for everybody wishing to publish and share there test loop results. No login account is necessary. Just run the test harness script, your results will be uploaded and published on the openfoam-extend CDash server automagically. http://openfoam-extend.sourceforge.n...enFOAM-1.6-ext Martin |
> BTW the problem with paraview is still unsolved..
Can't help here. After creating a Fedora 17 64-bits and a Fedora 17 32-bits VMware machines, the system installed version of ParaView (version 3.14) is running without a glitch on both systems. Just make sure you run 'yum update' on your system. Martin |
Hello Martin!
I tried to build openfoam.1.6-ext from scratch again. I uncommented the lines in Allmake.stage1 script for gcc 4.5.1 and changed the compilerInstall=OpenFOAM in etc/settings.sh. I tried it 2 times but failed to build the gcc. Some final lines of the terminal output are, Code:
packages/gcc-4.5.1/platforms/linuxGccDPOpt/share/man/man7/gpl.7 I dont know how to proceed with this. Please advice. Then about the paraview issue, it really look strange. I have already done 'yum update' and 'yum reinstall paraview' several times. The same error is also coming from another package vmtk(vascular modeling toolkit). It is installed in the home folder by a similar process of compiling, building, bashrc sourcing etc. Code:
[jabir@entropy lca-rca]$ vmtkimageviewer -ifile cardiacvoi.vti Regards, Jabir |
Hai Philippose! Good afternoon!
Thank you so much for the corrections for the new version of gcc. I have downloaded the new tarball and am going to compile it. I will update you the results. BTW, During the compilation of paraview, I have faced an error and used this bug report to solve it. http://www.vtk.org/Bug/view.php?id=12881 I dont know much about its relevance, but please have a look. Thanks for your time and effort .. :) Regards Jabir |
2 Attachment(s)
Hello.. Good morning all! At last, I successfully compiled OpenFOAM 1.6 ext in Fedora 17. Thanks to philippose for creating and made available the "hotfix/gcc47" through the git repository. I have reinstalled the whole fedora before testing the new fixed version. The same error mensioned in post #11 appeared again, and I used the patch available in the above link. The paraview is working smoothly now without any errors. The log file of the compilation process is attached. Thanks and Regards, Jabir |
Gentlemen, please, explain me, what command do I need to use to switch to the mentioned branch.
Unfortunately, I don't know git very good. Best regards, Aleksey. |
Quote:
http://repo.or.cz/w/OpenFOAM-1.6-ext...s/hotfix/gcc47 hope this helps. Regards, Jabir |
I tried to use the version of OF-1.6-ext you mentioned. The src directory compiled OK, bu I can't compile anything from applications folder. For example during compilation of icoFoam I get (during linking):
Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/icoFoam.o -L/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \ gcc: 4.7.1 Please, help. Best regards, Aleksey. |
I failed to compile OF-1.6-ext on OpenSUSE 12.2 using default gcc-4.7.1 but I managed to compile OF-1.6-ext using gcc-4.5 (using scripts from ThirdPart dir). I had to modify some .spec files to do it.
|
All times are GMT -4. The time now is 05:58. |