|
[Sponsors] |
July 20, 2010, 03:40 |
|
#21 |
Member
Leosding
Join Date: Mar 2009
Posts: 51
Rep Power: 17 |
||
July 22, 2010, 03:01 |
Problems with compiling OF 1.7 on mac
|
#22 |
New Member
Patrik Steinhoff
Join Date: May 2010
Location: Aachen
Posts: 5
Rep Power: 16 |
Dear all,
i decided to try compiling OF 1.7 on a mac with bernards patches. After setting the gcc-mp-4.5 compiler for compilation and executing the Allwmake there is the following error in the output: make: Nothing to be done for `all'. + wmakePrintBuild -check no git description found + /bin/rm -f 'OpenFOAM/Make/darwinIntel64DPOpt/global.?' + wmakeLnInclude OpenFOAM + wmakeLnInclude OSspecific/POSIX + Pstream/Allwmake + wmake libso dummy 'libNULL.dylib' is up to date. + case "$WM_MPLIB" in + set +x Note: ignore spurious warnings about missing mpicxx.h headers + WM_OPTIONS=darwinIntel64DPOptOPENMPI + wmake libso mpi 'libNULL.dylib' is up to date. + wmake libo OSspecific/POSIX ld -r -o libNULL.o ld: warning: -arch not specified ld: no object files specified for inferred architecture x86_64 make: *** [libNULL.o] Error 1 + wmake libso OpenFOAM 'libNULL.dylib' is up to date. + wmake libso lagrangian/basic 'libNULL.dylib' is up to date. + wmake libso triSurface 'libNULL.dylib' is up to date. + wmake libso edgeMesh 'libNULL.dylib' is up to date. + wmake libso surfMesh 'libNULL.dylib' is up to date. + decompositionMethods/AllwmakeLnInclude + wmakeLnInclude decompositionMethods + wmakeLnInclude metisDecomp + wmakeLnInclude parMetisDecomp + wmakeLnInclude scotchDecomp + dummyThirdParty/Allwmake + wmake libso scotchDecomp 'libNULL.dylib' is up to date. + wmake libso metisDecomp 'libNULL.dylib' is up to date. + wmake libso parMetisDecomp 'libNULL.dylib' is up to date. + wmake libso MGridGen/MGridGen 'libNULL.dylib' is up to date. + decompositionMethods/Allwmake + wmakeLnInclude decompositionMethods + wmake libso scotchDecomp 'libNULL.dylib' is up to date. + wmake libso metisDecomp 'libNULL.dylib' is up to date. + '[' -d /Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt/openmpi-1.4.1 ']' + wmake libso decompositionMethods 'libNULL.dylib' is up to date. + wmake libso meshTools 'libNULL.dylib' is up to date. + wmake libso finiteVolume 'libNULL.dylib' is up to date. + wmake libso genericPatchFields 'libNULL.dylib' is up to date. + wmake libso sampling 'libNULL.dylib' is up to date. + wmake libso dynamicMesh 'libNULL.dylib' is up to date. + wmake libso dynamicFvMesh 'libNULL.dylib' is up to date. + wmake libso topoChangerFvMesh 'libNULL.dylib' is up to date. + wmake libso ODE 'libNULL.dylib' is up to date. + wmake libso randomProcesses 'libNULL.dylib' is up to date. + thermophysicalModels/Allwmake + wmake libso specie 'libNULL.dylib' is up to date. + wmake libso thermophysicalFunctions 'libNULL.dylib' is up to date. + wmake libso liquids 'libNULL.dylib' is up to date. + wmake libso liquidMixture 'libNULL.dylib' is up to date. + wmake libso solids 'libNULL.dylib' is up to date. + wmake libso solidMixture 'libNULL.dylib' is up to date. + wmake libso basic 'libNULL.dylib' is up to date. + wmake libso reactionThermo 'libNULL.dylib' is up to date. + wmake libso laminarFlameSpeed 'libNULL.dylib' is up to date. + wmake libso chemistryModel 'libNULL.dylib' is up to date. + wmake libso pdfs 'libNULL.dylib' is up to date. + wmake libso radiation 'libNULL.dylib' is up to date. + wmake libso barotropicCompressibilityModel 'libNULL.dylib' is up to date. + transportModels/Allwmake + wmake libso incompressible 'libNULL.dylib' is up to date. + wmake libso interfaceProperties 'libNULL.dylib' is up to date. + turbulenceModels/Allwmake + LES/Allwmake + wmakeLnInclude ../incompressible/LES + wmake libso LESfilters 'libNULL.dylib' is up to date. + wmake libso LESdeltas 'libNULL.dylib' is up to date. + incompressible/Allwmake + wmake libso turbulenceModel 'libNULL.dylib' is up to date. + wmake libso RAS 'libNULL.dylib' is up to date. + wmake libso LES 'libNULL.dylib' is up to date. + compressible/Allwmake + wmake libso turbulenceModel 'libNULL.dylib' is up to date. + wmake libso RAS 'libNULL.dylib' is up to date. + wmake libso LES 'libNULL.dylib' is up to date. + lagrangian/Allwmake + wmake libso basic 'libNULL.dylib' is up to date. + wmake libso solidParticle 'libNULL.dylib' is up to date. + wmake libso intermediate 'libNULL.dylib' is up to date. + wmake libso dieselSpray 'libNULL.dylib' is up to date. + wmake libso dsmc 'libNULL.dylib' is up to date. + wmake libso coalCombustion 'libNULL.dylib' is up to date. + molecularDynamics/Allwmake + wmake libso potential 'libNULL.dylib' is up to date. + wmake libso molecularMeasurements 'libNULL.dylib' is up to date. + wmake libso molecule 'libNULL.dylib' is up to date. + postProcessing/Allwmake + wmake libo postCalc ld -r -o libNULL.o ld: warning: -arch not specified ld: no object files specified for inferred architecture x86_64 make: *** [libNULL.o] Error 1 + wmake libso foamCalcFunctions 'libNULL.dylib' is up to date. + functionObjects/Allwmake + wmake libso field 'libNULL.dylib' is up to date. + wmake libso forces 'libNULL.dylib' is up to date. + wmake libso IO 'libNULL.dylib' is up to date. + wmake libso utilities 'libNULL.dylib' is up to date. + wmake libso systemCall 'libNULL.dylib' is up to date. + conversion/Allwmake + wmake libso 'libNULL.dylib' is up to date. + wmake libso autoMesh 'libNULL.dylib' is up to date. + wmake libso errorEstimation 'libNULL.dylib' is up to date. + fvAgglomerationMethods/Allwmake + wmake libso MGridGenGamgAgglomeration 'libNULL.dylib' is up to date. + wmake libso fvMotionSolver 'libNULL.dylib' is up to date. + wmake libso engine 'libNULL.dylib' is up to date. + wmake all solvers g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OpenFOAM/lnInclude -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt/openmpi-1.4.1 -lPstream -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt \ -lOpenFOAM -lpthread -lm -o OpenFOAM.out ld: library not found for -lPstream collect2: ld returned 1 exit status make[2]: *** [OpenFOAM.out] Error 1 make[1]: *** [dnsFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [DNS] Error 2 g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OpenFOAM/lnInclude -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt/openmpi-1.4.1 -lPstream -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt \ -lOpenFOAM -lpthread -lm -o OpenFOAM.out ld: library not found for -lPstream collect2: ld returned 1 exit status make[2]: *** [OpenFOAM.out] Error 1 make[1]: *** [laplacianFoam] Error 2 g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OpenFOAM/lnInclude -I/Users/stonehope/OpenFOAM/OpenFOAM-1.7/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt/openmpi-1.4.1 -lPstream -L/Users/stonehope/OpenFOAM/OpenFOAM-1.7/lib/darwinIntel64DPOpt \ .... The Messages go on in a similar way. According to the log i guess there is a library missing somewhere, but i don't know where. Maybe someone of you can help me with this. Thank You. Stonehope |
|
July 22, 2010, 05:41 |
|
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Could you check whether in $FOAM_SRC/OpenFOAM/Make/darwinBlaBla there is a number of .o-files? If yes, could you check with the file-command what they acctually are? Have you sourced the . etc/bashrc before compiling? Is your OF-installation on a case-sensitive filesystem? Bernhard |
||
July 22, 2010, 11:53 |
|
#24 |
New Member
Patrik Steinhoff
Join Date: May 2010
Location: Aachen
Posts: 5
Rep Power: 16 |
Hi Bernhard,
thank you for your quick support. Yes, this log not from the first attemp to compile. In the $FOAM_SRC/OpenFOAM/Make/darwinIntel64DPOpt - directory there are no files like *.o . Should there be some of the .o-files? Yes, i sourced the . etc/bashrc. I'm using a script from the eth zurich, which is a bit modified from me, so that it is working with OF 1.7 to set the OF enviroment in the bash, could this cause such an error? I supposed, that it is working, because all "shortcuts" like "tut", "run" etc are working well. The filesystem is case sensitiv and created by using disk utility from mac OS. Thank You very much. Patrik |
|
July 22, 2010, 14:22 |
|
#25 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard Bernhard |
||
July 29, 2010, 13:05 |
|
#26 | |
Member
Mattia de\' Michieli Vitturi
Join Date: Mar 2009
Posts: 51
Rep Power: 17 |
Quote:
The next problem is when I try to compile with ./Allwmake. I read a lot of messages "could not open file *.H for source file *.C". I've searched and it seems to me that the files exist. Is there somebody able to help me with the installation? Thank you Mattia |
||
July 29, 2010, 19:56 |
OF1.7. for mac clean installation
|
#27 |
New Member
Chris Butler
Join Date: Jun 2010
Posts: 21
Rep Power: 16 |
Hi Mattia,
I will try to answer as much as I can of your problems. With respect to the 'could not open file' these messages will appear even when OpenFOAM does install on OS X. As for needing to create that directory 'OpenFOAM/lib/darwinIntelDPOpt' my understanding is the install should do it for you! I would check that you are installing OF on a case-sensitive partition or disk image. If you are not the installation will fail. If you need help please let me know. Chris B. |
|
July 30, 2010, 04:43 |
|
#28 |
Member
Mattia de\' Michieli Vitturi
Join Date: Mar 2009
Posts: 51
Rep Power: 17 |
Thank you Chris,
tonight the mac finished to compile the source for OpenFOAM with this message: make: Traget 'application' not remade because of errors. Nevertheless, I've tried to run blockMesh and icoFoam and it seems to me that they run. Now I've to install paraview to see if it will work. Regarding the directory, I've created a case-sensitive partition to install OpenFOAM, so probebly there is another problem. ciao mattia |
|
July 30, 2010, 11:01 |
|
#29 | |
New Member
Chris Butler
Join Date: Jun 2010
Posts: 21
Rep Power: 16 |
Quote:
If you rerun Allwmake without deleting files you should be able to scroll through and find out what failed to build. Paraview may fail to build but foamToTecplot360 will fail. This is most likely the source of your error. If they are the only component which fail your build should be o.k. The paraview binaries available from paraview.org should work fine (I would not bother trying to compile it). All that is will require is for you to create the .foam file in your case root directory. Cheers CB |
||
August 22, 2010, 13:53 |
Installing 1.7 on g5 ppc
|
#30 | ||||||
New Member
Join Date: May 2010
Posts: 13
Rep Power: 16 |
Hi All,
I am currently doing an install of OpenFOAM 1.7 on a dual processor (PPC) G5 running OS X 10.5.8. A couple of questions ... FIRST QUESTION - APPLYING THE PATCH When I went to apply the OpenFOAM-1.7-Mac.patch the terminal replied ... Quote:
Quote:
Quote:
So my first question is, should I have hit 'n' when prompted or not ? ThirdParty-1.7-Mac.patch applied without any issue. SECOND QUESTION - etc/bashrc changes The unpacked OpenFOAM source is at: /Volumes/OpenFOAM/OpenFOAM-1.7.0 http://openfoamwiki.net/index.php/Ho...enFOAM_v16_Mac reads ... Quote:
Quote:
I tried this ... foamInstall=$/Volumes/OpenFOAM/$WM_PROJECT but when I ran Allwmake, that produced ... Quote:
foamInstall=$HOME/$WM_PROJECT ... produced the same error. Can anyone give me a pointer in terms of what lines in etc/bashrc I need to change and what values I need to change them to, to allow Allwmake to run without that error ? - Thanks in advance ! Last edited by AussieRacer; August 23, 2010 at 13:34. |
|||||||
August 22, 2010, 15:30 |
|
#31 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings AussieRacer and welcome to the forum!
Quote:
Quote:
Code:
foamInstall=/Volumes/$WM_PROJECT Additionally, you might want to change the line a bit below that one; change this one: Code:
export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION Code:
export WM_PROJECT_USER_DIR=/Volumes/$WM_PROJECT/$USER-$WM_PROJECT_VERSION Code:
echo $WM_PROJECT_USER_DIR Code:
export WM_NCOMPPROCS=2 Code:
time ./Allwmake > make.log 2>&1 Good Luck! Bruno edit: @Bernhard: You might want to check this post for your patches for OpenFOAM 1.7.0: http://www.cfd-online.com/Forums/ope...tml#post271787 The problem as already been fixed for 1.7.x, but for 1.7.0 you'll need to:
__________________
Last edited by wyldckat; August 22, 2010 at 15:35. Reason: added a note for Bernhard |
|||
August 23, 2010, 09:36 |
|
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
BTW: and thanks for answering all the other stuff |
||
August 23, 2010, 11:58 |
|
#33 |
New Member
Join Date: May 2010
Posts: 13
Rep Power: 16 |
Thanks wyldckat, both for your welcome and your help with this.
Thanks - I missed the leading $. I made the changes to bashrc as you outlined above. Last edited by AussieRacer; August 23, 2010 at 13:31. |
|
August 23, 2010, 12:17 |
|
#34 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi AussieRacer,
Quote:
Quote:
So, if you don't want to change your "$HOME/.bashrc" file, you can simply run this, every time you start a new terminal: Code:
. /Volumes/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc Now, so you can be certain that the variables are set, run this: Code:
echo $WM_PROJECT_DIR Good luck! Bruno
__________________
|
|||
August 23, 2010, 12:19 |
|
#35 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
August 23, 2010, 12:36 |
|
#36 | |
New Member
Join Date: May 2010
Posts: 13
Rep Power: 16 |
Quote:
Thanks for your post. Yes I ran "touch foo" and "touch Foo" in the terminal and that created two separates files - one named "foo" and a second file named "Foo", so it looks like the volume is definitely case sensitive. Thanks for your help. |
||
August 23, 2010, 12:43 |
|
#37 | ||
New Member
Join Date: May 2010
Posts: 13
Rep Power: 16 |
Hi wyldcat,
Thanks again for your help - I really appreciate it. Quote:
Code:
echo $WM_PROJECT_DIR Quote:
Am attempting to install now. Thanks again for everyone's help on this - it's fantastic to see this kind of community support with OpenFOAM. Last edited by AussieRacer; August 23, 2010 at 13:36. |
|||
August 23, 2010, 13:22 |
|
#38 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi AussieRacer,
I still managed to pick up your unedited post The issue you had posted was just a slight bug in Bernhard's patches, that only happens before the first build. Just edit the file "$WM_PROJECT_DIR/etc/apps/paraview3/bashrc", search for the lines that say: Code:
echo "Creating $PV_PLUGIN_PATH" mkdir $PV_PLUGIN_PATH Code:
mkdir -p $PV_PLUGIN_PATH Best regards, Bruno
__________________
|
|
August 23, 2010, 13:43 |
|
#39 | |
New Member
Join Date: May 2010
Posts: 13
Rep Power: 16 |
Yes I edited my post after I noticed that an earlier post in the thread mentioned the same things I was asking about.
Quote:
Should I stop that build that is running right now, edit the file "$WM_PROJECT_DIR/etc/apps/paraview3/bashrc" and restart the build, or just let the build run ? When you say "that only happens before the first build", do you mean that the first build addresses that, or does the change need to be made to "$WM_PROJECT_DIR/etc/apps/paraview3/bashrc" before the first build is attempted ? Thanks again ! |
||
August 23, 2010, 13:59 |
|
#40 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
I should have been more explicit: there is no need to worry Just let it keep on building OpenFOAM. Because next time you "source" OpenFOAM's bashrc file (and/or open a new terminal), all will be well
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Default patches not appearing in paraview | ozzythewise | OpenFOAM Meshing & Mesh Conversion | 9 | September 22, 2017 10:51 |
[snappyHexMesh] internal faces between patches created with snappyHexMesh | romant | OpenFOAM Meshing & Mesh Conversion | 0 | August 17, 2009 09:40 |
Courant number, patches, etc | oort | OpenFOAM | 1 | July 24, 2009 19:05 |
[snappyHexMesh] SnappyHexMesh large number of patches written | prapanj | OpenFOAM Meshing & Mesh Conversion | 0 | July 15, 2009 09:11 |
radiation patches, viewfactors | beams | Siemens | 1 | March 12, 2009 08:39 |