|
[Sponsors] |
December 3, 2013, 09:14 |
error building swak4foam
|
#61 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
I am building swak4foam on a cluster with OpenFOAM 2.2.0. Here is my steps:
- I load my OpenFOAM environement first, then go to $WM_PROJECT_USER_DIR directory - I donwload https://github.com/wyldckat/swak4foa...ive/master.zip and unpack it - I loaded Flex and Bison modules - cd swak4foam-master/; ./Allwmake 2>&1 > make.log My 'make.log' is attached. It contains errors like: Code:
could not open file polyMesh.H for source file repositories/SurfacesRepository.C Code:
SOURCE=repositories/SurfacesRepository.C ; icpc -std=c++0x -Dlinux64 -DWM_DP -w d327,654,819,1125,1476,1505,1572 -xSSE3 -O2 -no-prec-div -DNoRepository -IMake/ linux64IccDPOpt -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/Op enFOAM-2.2.0/src/finiteVolume/lnInclude -I/app/materials/openfoam/2.2.0/intel-11 .1/intel-4.0/OpenFOAM-2.2.0/src/sampling/lnInclude -I/app/materials/openfoam/2.2 .0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/app/material s/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/triSurface/lnInclude -I /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/surfMesh/l nInclude -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src /lagrangian/basic/lnInclude -I/app/materials/openfoam/2.2.0/intel-11.1/intel-4.0 /OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/app/materials/openfoa m/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/app/materi als/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnIn clude -fPIC -c $SOURCE -o Make/linux64IccDPOpt/SurfacesRepository.o /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/finiteVolu me/lnInclude/fvMesh.H(50): catastrophic error: could not open source file "polyM esh.H" #include "polyMesh.H" ^ compilation aborted for repositories/SurfacesRepository.C (code 4) make: *** [Make/linux64IccDPOpt/SurfacesRepository.o] Error 4 Parser library did not compile OK. No sense continuing as everything else depend s on it Requirements for Library not satisfied. I see no sense in going on Can anyone help please? |
|
December 3, 2013, 10:25 |
|
#62 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|||
December 3, 2013, 10:29 |
|
#63 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
m/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude)? No idea (and I don't have an Intel-compiler to test it)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 3, 2013, 11:17 |
|
#64 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
Quote:
Code:
echo $FOAM_SRC /app/materials/openfoam/2.2.0/intel-11.1/intel-4.0/OpenFOAM-2.2.0/src |
||
December 3, 2013, 15:40 |
|
#65 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
ls blalaPath/polyMesh.H Some people have compiled swak with the Intel-compiler. So it should be feasible. Maybe one of them can assist you
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 3, 2013, 16:14 |
|
#66 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
Quote:
Thanks for your advice. I checked those files again. While the path is indeed correct, I found that the files in $FOAM_SRC/src/OpenFOAM/lnInclude/ are actually symbolic links pointing to files elsewhere. I then found that some of those files have incorrect permissions so that they cannot be read by a normal user on the system. So basically my OpenFOAM installation is somewhat broken. I will ask the system people to correct those file permissions first. I will report back the outcome later. |
||
December 4, 2013, 11:10 |
|
#67 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
After fixing the file permission problem, my compiling can go a bit longer, until it stopped with another error, related to the Intel compiler, as discussed in this thread (http://www.cfd-online.com/Forums/ope...ion-2-0-a.html). I am not exactly clear after reading that thread: is the problem completely fixed by using a new version of Intel compiler? I am using an old cluster with OpenFOAM built with intel compiler version 11.x. But new versions 12.x and 13.x are also available.
|
|
December 4, 2013, 11:50 |
|
#68 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hello dear Bernhard,
sorry for propound this here, but could you introduce me for some line about historty of groovyBC and the creator( I mean you!) I need these information for my thesis.I sent an email to you too before.thanks.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
December 4, 2013, 12:27 |
|
#69 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
a) I don't have an Intel-compiler b) didn't want to read through all 50 Postings in the thread to find out which one you meant. Hint: for linking to a specific posting use the #23 link that every posting has
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 4, 2013, 16:26 |
|
#70 | |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
Quote:
|
||
December 4, 2013, 17:38 |
Error in installation
|
#71 | |
New Member
Join Date: Oct 2013
Posts: 4
Rep Power: 13 |
Hi Bernhard,
Thank you very much for your help in this post. I am trying to compile swak4foam but running into a little problem of one of the files in Gcc46 folder not found. I did check the source and the file was there, so I am really not sure what went wrong. Attached below is the log of my compilation. Could you please take a look? Thank you very much for your help. Quote:
|
||
December 4, 2013, 18:56 |
|
#72 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 4, 2013, 19:17 |
|
#73 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
There are no proper papers on it (I'm not in academia so I don't have to write a paper on EVERYTHING I do). People in the past when referencing it either referred to the Wiki-page (this is the 21st century. URLs can be used as references. They might change, I'm aware of that) or one of the presentations listed on the swak-page. Reason why I wrote groovyBC was that before that I had written a utility to set a parabolic inlet condition. People were asking questions on that ("How do I use it for a different orientation") and I figured "with that thing people don't have to write C++ so they'll ask less questions". Turned out that I was wrong … (that is the interesting part on the history of groovyBC as far as I'm concerned)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 4, 2013, 19:24 |
|
#74 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Are you one of these people who already updated to Mavericks (which I believe is darwin13). MacPorts recommends reinstalling the whole MacPorts-tree after a OS-Upgrade like this (my theory: you installed gcc46 on 10.8, upgraded to 10.9 now gcc46 doesn't know where to find stuff). Even if I'm wrong: try uninstalling gcc46 and reinstalling it
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 5, 2013, 05:17 |
|
#75 | |
New Member
Feng
Join Date: Oct 2011
Posts: 6
Rep Power: 15 |
Quote:
By the way, after I installed the development version of swak4Foam, the space problem disappeared. |
||
December 5, 2013, 06:24 |
|
#76 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
a) there is documentation b) more people need the "other" average. So I decided to name this function differently than the OF-convention About the space: strange. Don't remember fixing that
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 5, 2013, 11:16 |
|
#77 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by immortality; December 5, 2013 at 12:20. |
||
December 6, 2013, 22:16 |
|
#78 |
New Member
Join Date: Oct 2013
Posts: 4
Rep Power: 13 |
Hi Bernhard,
The problem was exactly what you pointed out. I've reinstalled everything and it can compile smoothly now. Thank you very much for your help. |
|
December 7, 2013, 07:30 |
|
#79 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
OK. That is valuable information for me: wait with the Mavericks-update until I have a couple of days where it doesn't matter that MacPorts rebuilds itself
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
December 8, 2013, 10:05 |
|
#80 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quote:
But I'd like to point out an important detail - @macelee: you should have downloaded from the OF22X branch, not the master branch, as explained here: http://www.cfd-online.com/Forums/ope...tml#post434217 post #8 Best regards, Bruno
__________________
|
||
Tags |
compile error, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
[swak4Foam] and twoPhaseEulerFoam | mnikku | OpenFOAM Community Contributions | 1 | February 19, 2016 06:21 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 11:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |