|
[Sponsors] |
[swak4Foam] compiling swak4foam on an IBM Dataplex running 64-bit RedHat 6.3 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 18, 2013, 15:35 |
compiling swak4foam on an IBM Dataplex running 64-bit RedHat 6.3
|
#1 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
I am having trouble trying to compile swak4foam for Openfoam 2.1.1 (please see below). I have Openfoam 2.1.1 running in parallel using openmpi with gcc4.4. Now I need to get swak4foam to compile. Any suggestions?
Code:
60 pershing-login04> ./Allwmake Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 2.4.1 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) swak4FoamParsers/foamVersion4swak.H changed wmakeLnInclude: linking include files to ./lnInclude make: *** No rule to make target `/usr/cta/unsupported/swak/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/debugName.H', needed by `plugins/SampledSurfaceValuePluginFunction.dep'. Stop. Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Last edited by wyldckat; December 25, 2013 at 08:57. Reason: Added [CODE][/CODE] |
|
December 25, 2013, 09:08 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings jianni and welcome to the forum!
Can you please specify how exactly you've installed OpenFOAM 2.1.1 and on which system (Linux or Mac OS X)? I ask this because something is not right in the feedback that swak4Foam's Allwmake is giving us, namely this address: Code:
/usr/cta/unsupported/swak/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude And when if you run the following commands, right after you run Allwmake, what do they give you? Code:
icoFoam -help which icoFoam Bruno
__________________
|
|
December 26, 2013, 10:18 |
|
#3 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
Dear Bruno,
Thanks for the response! I'm trying to compile this on an IBM Dataplex running 64-bit RedHat 6.3: "Red Hat Enterprise Linux Server release 6.3 (Santiago)" For icoFoam: 60 pershing-login04> icoFoam -help Usage: icoFoam [OPTIONS] options: -case <dir> specify alternate case directory, default is the cwd -noFunctionObjects do not execute functionObjects -parallel run in parallel -roots <(dir1 .. dirN)> slave root directories for distributed running -srcDoc display source code in browser -doc display application documentation in browser -help print the usage Using: OpenFOAM-2.1.1 (see www.OpenFOAM.org) Build: 2.1.1-221db2718bbb 61 pershing-login04> which icoFoam /usr/cta/unsupported/swak/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/icoFoam 62 pershing-login04> uname -a Linux pershing-login04 2.6.32-279.33.1.el6.x86_64 #1 SMP Sun Jun 30 03:00:43 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux Also, I noticed the include file debugName.H is nowhere in the entire directory structure! Could I been using a version of swak for Openfoam 1.x by accident? -James |
|
December 26, 2013, 11:43 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings James,
The problem seems to be that you have a binaries-only installation of OpenFOAM 2.1.1. And since you need to build swak4Foam from source, you need the source code of OpenFOAM as well. Check the contents of this folder: Code:
/usr/cta/unsupported/swak/OpenFOAM-2.1.1/src/ Do you know how exactly OpenFOAM 2.1.1 was installed on the IBM Dataplex you are using? Best regards, Bruno
__________________
|
|
December 26, 2013, 11:49 |
|
#5 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
I've installed Openfoam (2.x and 1.x) on this (and many other systems) here.
All the source files are there: 74 pershing-login04> find src | wc -l 17120 75 pershing-login04> find src -name "*.H" -print | wc -l 5274 76 pershing-login04> ls -ltrR src | grep -i debug | grep -i name -James |
|
December 26, 2013, 14:45 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
OK, I did some researching and tests:
Best regards, Bruno
__________________
|
|
December 26, 2013, 15:34 |
|
#7 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
./Allwclean corrected the issue!
Now I need to find out how to pass PYTHONINCLUDE to swak build (it cannot find Python.h): 142 pershing-login04> ./Allwmake | tee view.txt Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 2.4.1 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. SOURCE=pythonInterpreterWrapper.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/usr/cta/CSE.20130926/Release/python-2.7.5/include -I../swak4FoamParsers/lnInclude -I../simpleFunctionObjects/lnInclude -IlnInclude -I. -I/usr/cta/unsupported/swak/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/usr/cta/unsupported/swak/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/pythonInterpreterWrapper.o In file included from pythonInterpreterWrapper.C:37: pythonInterpreterWrapper.H:52:20: error: Python.h: No such file or directory In file included from pythonInterpreterWrapper.C:37: pythonInterpreterWrapper.H:79: error: ISO C++ forbids declaration of âPyThreadStateâ with no type pythonInterpreterWrapper.H:79: error: expected â;â before â*â token |
|
December 26, 2013, 15:45 |
|
#8 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
Never mind. They changed the Python paths on me. I'm now getting this error:
Code:
178 pershing-login04> ./Allwmake | tee view.txt Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 2.4.1 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakPythonIntegration.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/usr/people/ianni/OpenFOAM/ianni-2.1.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. Compiling user function-plugin ../Examples/UserPlugins/swakTestFunctionPlugins wmake error: file 'Make/files' does not exist in /usr/cta/unsupported/swak/OpenFOAM-2.1.1/swak4Foam/Examples/UserPlugins/swakTestFunctionPlugins Requirements for Library not satisfied. I see no sense in going on |
|
December 26, 2013, 15:49 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
Bruno
__________________
|
|
December 26, 2013, 15:53 |
|
#10 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
The path is there, but there are no files. I cannot imagine accidentally erase such files in such a long path. Maybe they were never there?
Code:
187 pershing-login04> pwd /mnt/gpfs_cta/unsupported/swak/OpenFOAM-2.1.1/swak4Foam/Examples/UserPlugins/swakTestFunctionPlugins/Make 188 pershing-login04> ls -ltr total 0 |
|
December 26, 2013, 16:00 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
December 26, 2013, 16:11 |
|
#12 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
I checked the zip file given to me and those files are NOT there. I think the person who gave me the swak zip file may have inadvertently not included them. I really, REALLY wish you guys would create a gzipped tar file to download instead of utilizing SVN as all SVN ports are blocked.
-James |
|
December 26, 2013, 16:17 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
Well, you can always report this on the bug tracker -> http://openfoamwiki.net/index.php/Co...oam#Bugreports But still, if you look at the wiki page, section Downloading: http://openfoamwiki.net/index.php/Co...am#Downloading - you'll see that nowadays there are several ways to download the files. In addition, from my Github repository, which unofficially provides a git based mirror and tweaks of the official SVN swak4Foam (for OpenFOAM 2.x), you can even download zip files directly: https://github.com/wyldckat/swak4foam/tree/OF22X Best regards, Bruno |
|
December 27, 2013, 11:45 |
|
#14 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
Bruno,
I noticed that SWAK placed the shared libraries in my home directory. Can I simply copy these to a common area for anyone to link to? I'm assuming there are no hard coded paths inside these shared libraries? -James |
|
December 27, 2013, 12:52 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
AFAIK, the paths should not be hard-coded into the binaries of swak4Foam. If they are, then it's a bug OpenFOAM has got a path meant for sharing custom solvers et al with more than one person... ah, I've found the post that explains this: http://www.cfd-online.com/Forums/ope...tml#post241758 post #4 Best regards, Bruno
__________________
|
|
December 30, 2013, 15:41 |
|
#16 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
Bruno,
Your git repository also does NOT have the Examples/UserPlugins/* area, the SVN repository is blocked and I cannot create tar images from SourceForce. Any other suggestions where I can get the full swak version for Openfoam 2.x ? -James |
|
December 30, 2013, 16:00 |
|
#17 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
Quote:
There are two unofficial mirror repositories of swak4Foam at GitHub, which rely on git-svn to keep track of the history from SVN in Git form:
Please let me know if these work or not! Best regards, Bruno
__________________
|
||
December 31, 2013, 10:52 |
|
#18 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
Is this correct for linux-64 bit, openfoam 2.x ?
openfoam-extend-Breeder2.0-libraries-swak4Foam-master.zip |
|
December 31, 2013, 12:26 |
|
#19 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
32 or 64 bit is not applicable in this case, since it's the source code and you can compile it for any architecture
__________________
|
||
December 31, 2013, 15:27 |
|
#20 |
New Member
Join Date: Dec 2013
Posts: 12
Rep Power: 13 |
That worked! Full compilation and no errors! Thanks!
A quick question : I dont see the binary funkySetFields. Is that supposed to be a stand alone executable or something to be linked with? . |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
Problem in running fluent 6.3 (64 bit) on ubuntu 8.1 (64 bit) | Mir5 | FLUENT | 3 | April 29, 2009 11:32 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |
Compiling and Running UDFs on an IBM Power3 | S. Hollman | FLUENT | 0 | January 6, 2005 12:23 |