|
[Sponsors] |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 8, 2010, 12:52 |
|
#41 | |||
Senior Member
|
I am using Ubuntu 10.04 and I had to make two changes to compile the ThirdParty tools:
1) before compiling AllMake.stage4 (Paraview): Quote:
Quote:
ThirdParty - 0,1,2,3 passed but 4 not (this is not a problem because I do have other paraview installation) src/Allwmake - passed OK applications/Allwmake - crashed! Quote:
Last edited by aerothermal; December 8, 2010 at 13:06. Reason: addition |
||||
December 8, 2010, 13:09 |
|
#42 | |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
I wonder whether your "scotch" really compiled successfully. Mine failed under ubuntu 10.04 because /usr/lib/libz.a was missing, which was repaired by
Code:
sudo apt-get install zlib1g-dev Quote:
__________________
David A. Boger |
||
December 8, 2010, 13:12 |
|
#43 | |
Senior Member
|
Hi Boger,
Yes I do have the zlib1g-dev in newest version. See that stage 3 appears to be fine... Quote:
|
||
December 9, 2010, 14:14 |
|
#44 |
New Member
Ashish Nedungadi
Join Date: Mar 2009
Location: Laurel, Maryland, USA
Posts: 13
Rep Power: 17 |
I am running Fedora Core 13, 64-bit and I was not making any progress with compiling 1.6-ext. I found out I don't have the executable rpmbuild. So, I had to install it using instructions found here:
http://www.g-loaded.eu/2006/04/05/ho...ges-on-fedora/ Now I have rpmbuild and the install is much happier. Still have a ways to go, but I will report back if everthing goes smoothly. @Martin: Apparently rpmbuild is not standard, so a good check would be to see if rpmbuild exists. Thanks for all your hard work on this project. |
|
December 9, 2010, 14:33 |
|
#45 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Similarly, under ubuntu 10.04, I found I needed
Code:
sudo apt-get install bison flex build-essential git gitk git-gui rpm Code:
sudo apt-get install libxt-dev Code:
sudo apt-get install zlib1g-dev Code:
sudo apt-get install gnuplot python-numpy Code:
sudo apt-get install binutils-dev Code:
sudo apt-get install libtool autoconf I also needed to link make to gmake for ParMGridGen-1.0, as mentioned above. Maybe all of this could have been avoided when the OS was installed...
__________________
David A. Boger |
|
December 9, 2010, 14:37 |
|
#46 |
Senior Member
|
I have all those libraries in Ubuntu 10.04 but the code still does not compile.
see error above... |
|
December 9, 2010, 14:52 |
|
#47 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Can you post a little more of the log file preceding your applications error message (e.g. what application was compiling and what was its compile command)?
Also, why is libscotchDecomp in the user-ext-1.6/lib? I imagine you would have had to override the usual setting for WM_PROJECT_DIR?
__________________
David A. Boger |
|
December 9, 2010, 15:03 |
|
#48 | ||
Senior Member
|
ThirdParty/AllMake.stage4
Quote:
Quote:
the bashrc for each version is sourced by the user in order to choose the version. Last edited by aerothermal; December 9, 2010 at 15:26. Reason: typo |
|||
December 9, 2010, 18:06 |
Problems with Stage 2-openmpi1.4.3
|
#49 |
New Member
Ashish Nedungadi
Join Date: Mar 2009
Location: Laurel, Maryland, USA
Posts: 13
Rep Power: 17 |
On FC13, 64-bit, I am still having problems with Stage 2, which is the openmpi-1.4.3 step. Here are some of the errors I get at the very end:
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot ************************************************** ***************************** * * WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' * to fail. To ignore these errors, you can set the '$QA_RPATHS' * environment variable which is a bitmask allowing the values * below. The current value of QA_RPATHS is 0x0000. * * 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor * issue but are introducing redundant searchpaths without * providing a benefit. They can also cause errors in multilib * environments. * 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute * nor relative filenames and can therefore be a SECURITY risk * 0x0004 ... insecure RPATHs; these are relative RPATHs which are a * SECURITY risk * 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other * RPATHs; this is just a minor issue but usually unwanted * 0x0010 ... the RPATH is empty; there is no reason for such RPATHs * and they cause unneeded work while loading libraries * 0x0020 ... an RPATH references '..' of an absolute path; this will break * the functionality when the path before '..' is a symlink * * * Examples: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like * $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like * $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths * ************************************************** ***************************** ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/ompi-server' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/orted' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/opal_wrapper' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/orte-iof' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/orte-ps' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/ompi_info' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/orte-clean' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/orterun' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ************************************************** ***************************** * * WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' * to fail. To ignore these errors, you can set the '$QA_RPATHS' * environment variable which is a bitmask allowing the values * below. The current value of QA_RPATHS is 0x0000. * * 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor * issue but are introducing redundant searchpaths without * providing a benefit. They can also cause errors in multilib * environments. * 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute * nor relative filenames and can therefore be a SECURITY risk * 0x0004 ... insecure RPATHs; these are relative RPATHs which are a * SECURITY risk * 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other * RPATHs; this is just a minor issue but usually unwanted * 0x0010 ... the RPATH is empty; there is no reason for such RPATHs * and they cause unneeded work while loading libraries * 0x0020 ... an RPATH references '..' of an absolute path; this will break * the functionality when the path before '..' is a symlink * * * Examples: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like * $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like * $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths * ************************************************** ***************************** ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib/libopen-rte.so.0.0.0' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib/libmpi.so.0.0.2' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib/openmpi/mca_mpool_sm.so' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib/openmpi/mca_btl_sm.so' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] ERROR 0002: file '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib/openmpi/mca_coll_sm.so' contains an invalid rpath '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib' in [/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib] error: Bad exit status from /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.DZR2Yx (%install) RPM build errors: Bad exit status from /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.DZR2Yx (%install) Installing package: openmpi-1.4.3 Uninstalling openmpi-1.4.3 using RPM: openmpi-1.4.3-linux64GccDPOpt.x86_64 Installing openmpi-1.4.3 using RPM file: /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.4.3-linux64GccDPOpt.x86_64.rpm error: open of /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.4.3-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Done installing package openmpi-1.4.3 Anybody else compiling on Fedora Core 13 64-bit system? Any help would be appreciated. Thanks! Ashish |
|
December 9, 2010, 18:21 |
|
#50 | |
Senior Member
|
Dear Boger,
I managed to compile Paraview. See the other forum about QT. Actually I have qt3 and qt4 in system so I had to configure that to qt4. But regarding directories I have: Quote:
After I deleted the surrogate, the 1.6ext compiled properly. Thank you boger for the light on this. Regards, Guilherme Last edited by aerothermal; December 10, 2010 at 07:27. Reason: fixed issue |
||
December 9, 2010, 23:13 |
|
#51 | |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
> @Martin: Apparently rpmbuild is not standard, so a good check would be to see if rpmbuild exists.
I just put a note in the ThirdParty/README file about 'rpm' and 'rpmbuild' being prerequisite applications in order to compile the ThirdParty packs. In the early design of the new ThirdParty compilation process, I thought about supplying 'rpm' as an optional ThirdParty package too. A simple bash script to download and compile rpm/rpmbuild as a bootstrap step for the whole ThirdParty compilation process would have been provided. I thought it was a tad overkill, but if installing rpm/rpmbuild on most systems turns out to be a difficult step, maybe supplying a way to compile and install rpm/rpmbuild from source code would be useful after all. Martin Quote:
|
||
December 10, 2010, 02:56 |
|
#52 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello,
A Good Morning to everyone! On Fedora, in order to get all the OpenFOAM-1.6-ext Third Party packages to build fine using the RPM approach, I had to make some changes to the ".rpmmacros" file found in the user's home directory (/home/username/.rpmmacros) My file currently looks like this: %_topdir /mnt/Ego_01/applications/rpmbuild %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\ elif [ "$RPM_BUILD_NCPUS" -gt 3 ]; then echo "-j$RPM_BUILD_NCPUS"; \\\ else echo "-j3"; fi) %__arch_install_post # /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot in the last line, as can be seen, I have commented out everything after the "%__arch_instal_post" command. If I remember right, it is also ok to comment out the entire line.... it would then look like: # %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot Some of the errors I saw posted on this thread are directly connected with the "rpaths" and the "buildroot" checks which Fedora recommends, but causes issues when creating relocatable and locally installed rpms.... Disabling these two checks have NOT caused any other problems on my system so far..... everything seems to work fine :-)! For information... my system is: Fedora 14 (32-bit) P.S 1: Installing "rpmbuild" on Fedora is merely a question of running: yum install rpm-build yum install rpmdevtools rpmdev-setuptree Nothing complicated about that :-)! P.S 2: Currently, in order to get OF-1.6-ext compiled properly on Fedora versions >13, you need to make a change in the wmake rules.... I have submitted a bug (and bug-fix suggestion) on the OF-1.6-ext bugtracker.... check out issue number 40 (http://sourceforge.net/apps/mantisbt..._view_page.php) Hope this helps.... Philippose |
|
December 11, 2010, 11:14 |
|
#53 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, Philippose,
I am usnig OpenSUSE 11.3. I do not have .rpmmacros. Is it normal? Do I need to create this manually? Thanks! Pei |
|
December 11, 2010, 12:07 |
|
#54 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello,
No you DON'T need a .rpmmacros file for compiling the ThirdParty packages of OF-1.6-ext. I've NEVER used such a file myself, on all the Unix distros I have been using for designing and testing this new compilation process for the ThirdParty pack, including Fedora. If you DO happen to have a .rpmmacros file because you've built RPM packages before, THEN checking it out like Philippose did might be helpful. As for Philippose additional instructions to get rpm/rpmbuild to compile packages in parallel using "make -j number_of_procs", this is no longer necessary. I have contributed fixes to the git repository in order to do that directly within the .spec files by using the good old environment variable $WM_NCOMPPROCS when compiling packages with 'make'. Those modifications will get merge into the master branch in due time. Again, the RPM based compilation of the ThirdParty packages was designed to be self contained as much as possible. All the necessary operations are within the ThirdParty packages compilation bash scripts and in the various package's .spec files. The only thing missing is the complementary development packages that you will need to install, like rpm/rpmbuild, flex/bison, some -dev libraries, mainly because many of todays Linux distros are not configured by default to do software development right off the bat. Martin |
|
December 11, 2010, 16:50 |
|
#55 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello Martin,
As is usually the case, you are right :-)! You do not necessarily need the ".rpmmacros" file in order to create the ThirdParty RPMs, and neither do you need the commands in the rpmmacros file in order to obtain a parallel compilation. I saw the changes you had made in the spec files a while ago. Just that, in my system I happened to have a ".rpmmacros" file, which ended up causing conflicts and errors such as the RPATHS and the Build Root ones. I am not sure (do not have my laptop this weekend), but maybe "rpmdev-setuptree" creates a ".rpmmacros" file..... can someone confirm this? However the point is... maybe the rpmbuild system on different distributions handle these options differently, and maybe there is a default global configuration somewhere which adds on these tests by default unless explicitly overridden by a user-level configuration or something. I wish you a great weekend ahead! Philippose |
|
December 23, 2010, 04:38 |
|
#56 | |
Member
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 16 |
Is there any news on this? I have the same problem here. I'm on SUSE Enterprise Linux 11. (git pulled on 23-12-2010)
Then another strange thing happened during the compilation. I manually had to add a lot of environment variables, since many header files could not be found. These were: export SCOTCH_LIB_DIR=$SCOTCH_DIR/lib export SCOTCH_INCLUDE_DIR=$SCOTCH_DIR/include These variables LIB and INCLUDE had to be defined for: SCOTCH, METIS, PARMETIS, MESQUITE, OPENMPI Also export QT_BIN_DIR=/usr/bin was required. Best regards, Alex Quote:
Last edited by aloeven; December 23, 2010 at 06:29. |
||
December 23, 2010, 05:22 |
|
#57 |
Member
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 16 |
When I tried to run a case in parallel I got the error:
[machine:18193] [[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file runtime/orte_init.c at line 125 -------------------------------------------------------------------------- Sorry! You were supposed to get help about: orte_init:startup:internal-failure But I couldn't open the help file: $FOAM_INST_DIR/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/openmpi-1.4.3-root$FOAM_INST_DIR/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/share/openmpi/help-orte-runtime: No such file or directory. Sorry! -------------------------------------------------------------------------- [machine:18193] [[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file orterun.c at line 543 After some searching, it was solved by defining: export OPAL_PREFIX=$MPI_ARCH_PATH Alex. OpenFOAM-1.6-ext on SUSE Enterprise Linux 11 (patch level 1) Last edited by aloeven; December 23, 2010 at 06:29. |
|
December 23, 2010, 11:22 |
|
#58 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Alex-
Re your question "Is there any news on this?", are you referring to the mesquite headers problems preventing OpenFOAM libraries from compiling? If so, the problem was resolved over the next several posts following the one you quoted. As far as the LIB and INCLUDE paths, you should not have to set them yourself. If you look in settings.sh or settings.csh, you'll see them being set. These scripts are invoked by etc/cshrc or etc/bashrc. Did you source those files at the appropriate points after installing the packages? Looking at the settings.* file, you'll also see several conditions that need to be met for the paths to be set -- basically, certain versions of the packages are expected to be installed in certain places.
__________________
David A. Boger |
|
December 23, 2010, 11:37 |
|
#59 |
Member
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 16 |
Hi David,
I have installed 1.6-ext on two distributions and on Fedora there is no problem. On the SUSE enterprise I see the problems mentioned in my post. I will go throuh the bashrc, settings.sh and the posts again to see if I can locate the problem. Alex. |
|
December 23, 2010, 15:37 |
|
#60 |
New Member
Ashish Nedungadi
Join Date: Mar 2009
Location: Laurel, Maryland, USA
Posts: 13
Rep Power: 17 |
So, I was having trouble getting past Stage 2 (openmpi-1.4.3 compile). Looking at some of the detail logs, I find this:
*** Initialization, setup configure: builddir: /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/openmpi-1.4.3 configure: srcdir: /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/openmpi-1.4.3 checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu installing to directory "/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt" Take a look at the "installing to directory". It's all mangled up and it throws off the installation of openmpi. At the very end I get these errors: Found '/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64' in installed files; aborting error: Bad exit status from /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.50EA0c (%install) RPM build errors: Bad exit status from /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.50EA0c (%install) Installing package: openmpi-1.4.3 Uninstalling openmpi-1.4.3 using RPM: openmpi-1.4.3-linux64GccDPOpt.x86_64 Installing openmpi-1.4.3 using RPM file: /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.4.3-linux64GccDPOpt.x86_64.rpm error: open of /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.4.3-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Done installing package openmpi-1.4.3 The way I got around this was to move /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/openmpi-1.4.3-linux64GccDPOpt.x86_64/home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3 to /home/neduna1/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages Anybody else seeing this? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 36 | September 2, 2009 13:46 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 18:55 |