CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch (https://www.cfd-online.com/Forums/openfoam-installation/130113-compile-2-3-mac-os-x-patch.html)

gschaider February 19, 2014 18:39

Compile OF 2.3 on Mac OS X .... the patch
 
Hi!

With a 2 day delay after OF 2.3 was released here comes the patch for Mac OS X.

This time I decided to distribute it differently: it is found in the OF-extend SVN-repository at

http://sourceforge.net/p/openfoam-ex...ches/MacPatch/

This should make sure that always the latest patch is found in the same location.

People who have been through the Mac-patch cycle several times will notice the absence of a ThirdParty-patch: the reason is that all the necessary third-party software (CGAL, metis, scotch) is available at MacPorts with a simple "port install"-command. This is also the recommended way to install the necessary compiler and MacPorts.

As a guidline for installation have a look at http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2 but check the README first for differences.

It is possible that I forgot necessary packages to install via MacPorts. So whoever wants to write an updated recipe for installation ...

Compared to previous patches the patch has the enhancements described in http://www.cfd-online.com/Forums/ope...tml#post475721

Also the code that produces the stack-traces has been partially rewritten and some ugly hacks have been removed (should work with OS X 10.5 or later)

gschaider February 20, 2014 12:24

Quote:

Originally Posted by gschaider (Post 475782)
Hi!

With a 2 day delay after OF 2.3 was released here comes the patch for Mac OS X.

This time I decided to distribute it differently: it is found in the OF-extend SVN-repository at

http://sourceforge.net/p/openfoam-ex...ches/MacPatch/

Pushed an updated version of the patch. This fixes some weird problems with Gcc47-compilations. Currently the state (for me: your milage may vary) is this:

- Gcc48 compiles. But foamyQuadMesh and foamyHexMesh crash (this seems to be a problem with CGAL and happens for me on Linux machines and gcc48 too)
- Clang34: compiles and works. In Debug-mode the stack-trace is incomplete
- Gcc47: compiles and seems to work completely

For the time being I'll stick with Gcc47

podallaire February 20, 2014 16:20

Thanks for the patch, greatly appreciated ! I successfully compiled with gcc-4.6 and I did not use Macport.

Regards,

PO

mkatgert February 28, 2014 12:03

Thanks, i managed to compile it nicely under 10.7.5. Some remarks though (keep in mind i have very limited experience with terminal-driven Unix-editing...)

- i was a little over-eager and unpacked the OpenFoam tar-files with the OS X GUI unzip utility. This appeared to work but it messed up the directory structure. Took me a while to figure out where all the error messages in the patch came from...

- since MacPorts changed the openmpi stuff (it told me to use 'port install openmpi-default') parallel snappyHexMesh isn't working, because there's no 'mpirun' executable or alias in the /bin directory. There however are multiple mpi-files in the /opt/local/bin folder:

Code:

mpic++-mpich-mp                mpicxx                        mpiexec-openmpi-mp        mpif90
mpicc                        mpicxx-mpich-mp                mpiexec.hydra-mpich-mp        mpif90-mpich-mp
mpicc-mpich-mp                mpicxx-openmpi-mp        mpif77                        mpif90-openmpi-mp
mpicc-openmpi-mp        mpiexec                        mpif77-mpich-mp                mpirun-mpich-mp
mpichversion-mpich-mp        mpiexec-mpich-mp        mpif77-openmpi-mp        mpivars-mpich-mp

Which one is the right one to alias? Or hasn't OpenMPI installed correctly?

- if i type 'ulimit -n 1024' straight into terminal, it works without an error message. The same line in bashrc gives the error:

Code:

-bash: ulimit: open files: cannot modify limit: Operation not permitted
Any thoughts on that?

Excuse if these two questions have been answered before; I have not been able to find the answers...

gschaider February 28, 2014 12:27

Quote:

Originally Posted by mkatgert (Post 477324)
Thanks, i managed to compile it nicely under 10.7.5. Some remarks though (keep in mind i have very limited experience with terminal-driven Unix-editing...)

- i was a little over-eager and unpacked the OpenFoam tar-files with the OS X GUI unzip utility. This appeared to work but it messed up the directory structure. Took me a while to figure out where all the error messages in the patch came from...

If you think that this point was not stressed enough on the Wiki page you used for instructions (I assume you did) feel free to edit the page in such a way that you say "then I would have seen this".
[QUOTE=mkatgert;477324]
- since MacPorts changed the openmpi stuff (it told me to use 'port install openmpi-default') parallel snappyHexMesh isn't working, because there's no 'mpirun' executable or alias in the /bin directory. There however are multiple mpi-files in the /opt/local/bin folder:

Code:

mpic++-mpich-mp                mpicxx                        mpiexec-openmpi-mp        mpif90
mpicc                        mpicxx-mpich-mp                mpiexec.hydra-mpich-mp        mpif90-mpich-mp
mpicc-mpich-mp                mpicxx-openmpi-mp        mpif77                        mpif90-openmpi-mp
mpicc-openmpi-mp        mpiexec                        mpif77-mpich-mp                mpirun-mpich-mp
mpichversion-mpich-mp        mpiexec-mpich-mp        mpif77-openmpi-mp        mpivars-mpich-mp

Which one is the right one to alias? Or hasn't OpenMPI installed correctly?
[/CODE]

mpicc is the "one that links to the currently selected MPI-impolementation" (which is either a OpenMPI or a MPICH-implementation). Which one is used can be seen (and changed) with "port select mpi" ("port help select" is your friend). The current version of the patch finds out which version this is and selects everything accordingly. So you should be fine

Quote:

Originally Posted by mkatgert (Post 477324)
- if i type 'ulimit -n 1024' straight into terminal, it works without an error message. The same line in bashrc gives the error:

Code:

-bash: ulimit: open files: cannot modify limit: Operation not permitted

No idea what is causing this. I take the easy route and blame 10.7

mkatgert March 1, 2014 09:38

Thanks a lot for the reply. I tried all i could with regard to mpirun, but it suddenly started working after i uninstalled and reinstalled openmpi-default.

Regarding the ulimit error: if i type in terminal ulimit -n 1024 and immediately type ulimit -n 2048 after that i trigger the same error. Probably a weird thing with ulimit under os x. I saw that the ulimit value is changed twice in bashrc (first by the manually added ulimit -n 1024 command and after that in (around) line 255: ulimit -n 8192)

The second command triggers the error. Since the second command apparently is triggered, i figured i might as well delete the first command...

gschaider March 1, 2014 09:50

Quote:

Originally Posted by mkatgert (Post 477429)
Thanks a lot for the reply. I tried all i could with regard to mpirun, but it suddenly started working after i uninstalled and reinstalled openmpi-default.

Regarding the ulimit error: if i type in terminal ulimit -n 1024 and immediately type ulimit -n 2048 after that i trigger the same error. Probably a weird thing with ulimit under os x. I saw that the ulimit value is changed twice in bashrc (first by the manually added ulimit -n 1024 command and after that in (around) line 255: ulimit -n 8192)

The second command triggers the error. Since the second command apparently is triggered, i figured i might as well delete the first command...

The mpi-problem: That was probably the postinstall-script of the package making things "right"

Concerning ulimit: I think this is "normal". Not sure about Linux but I definitely remember this "you can only change limits once"-behaviour from Tru64 on our Alphas (years ago).

egp March 1, 2014 10:00

With the latest self update in MacPorts, you need to be a bit more specific. In the original port install, use openmpi-gcc46

sudo port install gcc46 openmpi-gcc46 boost cgal ccache flex bison

When this is complete, use the select port

sudo port select --set mpi openmpi-gcc46-fortran

This sets all the proper symlinks in /opt/local/bin and eliminates the need to do this by hand (see 4.3, item 6 in wiki). I also use the select port to set symlinks for python27 and ipython27.

Eric

[QUOTE=gschaider;477328]If you think that this point was not stressed enough on the Wiki page you used for instructions (I assume you did) feel free to edit the page in such a way that you say "then I would have seen this".
Quote:

Originally Posted by mkatgert (Post 477324)
- since MacPorts changed the openmpi stuff (it told me to use 'port install openmpi-default') parallel snappyHexMesh isn't working, because there's no 'mpirun' executable or alias in the /bin directory. There however are multiple mpi-files in the /opt/local/bin folder:

Code:

mpic++-mpich-mp        mpicxx            mpiexec-openmpi-mp    mpif90
mpicc            mpicxx-mpich-mp        mpiexec.hydra-mpich-mp    mpif90-mpich-mp
mpicc-mpich-mp        mpicxx-openmpi-mp    mpif77            mpif90-openmpi-mp
mpicc-openmpi-mp    mpiexec            mpif77-mpich-mp        mpirun-mpich-mp
mpichversion-mpich-mp    mpiexec-mpich-mp    mpif77-openmpi-mp    mpivars-mpich-mp

Which one is the right one to alias? Or hasn't OpenMPI installed correctly?
[/CODE]

mpicc is the "one that links to the currently selected MPI-impolementation" (which is either a OpenMPI or a MPICH-implementation). Which one is used can be seen (and changed) with "port select mpi" ("port help select" is your friend). The current version of the patch finds out which version this is and selects everything accordingly. So you should be fine



No idea what is causing this. I take the easy route and blame 10.7


redAbbot March 2, 2014 20:06

I'm not having luck with the patch:

bash-3.2$ patch -p1<OpenFOAM-2.3.x-Mac.patch
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.


It's unclear to me if I have to install the SurfaceGCALFix patch, but I tried anyway and got a different error:

bash-3.2$ patch -p1<SurfaceCGALFix.patch
patching file applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C.rej

gschaider March 3, 2014 11:16

Quote:

Originally Posted by redAbbot (Post 477632)
I'm not having luck with the patch:

bash-3.2$ patch -p1<OpenFOAM-2.3.x-Mac.patch
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.


Seems that your download of the patch is incomplete. The last lines of the patch should be:
Code:

--- /dev/null
+++ b/wmake/rules/darwinIntel64Gcc/mplibOPENMPI
@@ -0,0 +1,3 @@
+PFLAGS    = -DOMPI_SKIP_MPICXX
+PINC      = -I$(MPI_ARCH_PATH)/include
+PLIBS      = -L$(MPI_ARCH_PATH)/lib -lmpi


esujby March 3, 2014 23:46

help please
 
hello guys please need your help, i did try to apply the patch using git but i ended up getting something like this: please tell me what to do thanks

nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ git apply OpenFOAM-2.3.0.patch
OpenFOAM-2.3.0.patch:753: trailing whitespace.
handle =
OpenFOAM-2.3.0.patch:1311: trailing whitespace.

OpenFOAM-2.3.0.patch:1340: trailing whitespace.

OpenFOAM-2.3.0.patch:1579: trailing whitespace.
c++DBUG =
OpenFOAM-2.3.0.patch:1605: trailing whitespace.
cDBUG =
fatal: corrupt patch at line 1944
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$

gschaider March 4, 2014 17:03

Quote:

Originally Posted by esujby (Post 477845)
hello guys please need your help, i did try to apply the patch using git but i ended up getting something like this: please tell me what to do thanks

nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ git apply OpenFOAM-2.3.0.patch
OpenFOAM-2.3.0.patch:753: trailing whitespace.
handle =
OpenFOAM-2.3.0.patch:1311: trailing whitespace.

OpenFOAM-2.3.0.patch:1340: trailing whitespace.

OpenFOAM-2.3.0.patch:1579: trailing whitespace.
c++DBUG =
OpenFOAM-2.3.0.patch:1605: trailing whitespace.
cDBUG =
fatal: corrupt patch at line 1944
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$

Seems like git is very picky about what it expects in a patch (1944 is the correct length of the original patch so it can't be an incomplete downlod). Try applying the patch with the patch utility and then commiting the changes into git

esujby March 28, 2014 18:01

help please: hello gschaider.
 
i tried applying the patch using terminal and i still get the same thing i dont know why, any recommendations please?
i am quite new to using terminal and have to use openfoam for my phd project.

thanks

nas

gschaider March 31, 2014 19:41

Quote:

Originally Posted by esujby (Post 482727)
i tried applying the patch using terminal and i still get the same thing i dont know why, any recommendations please?
i am quite new to using terminal and have to use openfoam for my phd project.

thanks

nas

I have no idea why your patch-utility is so picky with a patch that seems to work for others. Could you report the output of 'which patch' and also 'patch -v' to make sure that you're using the standard.

Also: the command-line you're using

alexeym April 1, 2014 03:36

Hi,

well, I guess esujby is still trying to use 'git patch' to apply the patch instead of just using 'patch -p1'. There are two solutions:

1. Use 'patch -p1' as suggested by gschaider

2. Run

Code:

sed -i 's/[ \t]*$//' OpenFOAM-2.3.x-Mac.patch
to remove trailing white space, before applying patch with 'git patch' command.

esujby April 1, 2014 07:05

please help!!!
 
Quote:

Originally Posted by gschaider (Post 483096)
I have no idea why your patch-utility is so picky with a patch that seems to work for others. Could you report the output of 'which patch' and also 'patch -v' to make sure that you're using the standard.

Also: the command-line you're using

Hello Gschaider,

i have done as you requested, please find the following output reports bellow:

Last login: Mon Mar 31 04:35:24 on ttys000
nasirs-imac:~ nasiryakubu$ which patch
/usr/bin/patch
nasirs-imac:~ nasiryakubu$ patch -v
patch 2.5.8
Copyright (C) 1988 Larry Wall
Copyright (C) 2002 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert
nasirs-imac:~ nasiryakubu$

esujby April 1, 2014 07:21

Quote:

Originally Posted by alexeym (Post 483144)
Hi,

well, I guess esujby is still trying to use 'git patch' to apply the patch instead of just using 'patch -p1'. There are two solutions:

1. Use 'patch -p1' as suggested by gschaider

2. Run

Code:

sed -i 's/[ \t]*$//' OpenFOAM-2.3.x-Mac.patch
to remove trailing white space, before applying patch with 'git patch' command.

Hello Alexey,

thanks for your reply. i have tried to follow the exact same step you posted on this link:
http://matveichev.blogspot.co.uk/201...0-on-os-x.html

all seems fine, i have gone through the notes section and its associated installations but the problem is at stage 7.

i have tried installing using "git apply" and this is what i get:

Last login: Tue Apr 1 12:09:00 on ttys000
nasirs-imac:~ nasiryakubu$ git apply /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch
/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch:753: trailing whitespace.
handle =
/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch:1311: trailing whitespace.

/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch:1340: trailing whitespace.

/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch:1579: trailing whitespace.
c++DBUG =
/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch:1605: trailing whitespace.
cDBUG =
error: applications/solvers/combustion/fireFoam/Make/options: No such file or directory
error: applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options: No such file or directory
error: applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options: No such file or directory
error: applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options: No such file or directory
error: applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options: No such file or directory
error: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options: No such file or directory
error: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options: No such file or directory
error: applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options: No such file or directory
error: applications/solvers/multiphase/multiphaseEulerFoam/Make/options: No such file or directory
error: applications/utilities/mesh/generation/blockMesh/Make/options: No such file or directory
error: applications/utilities/mesh/generation/foamyQuadMesh/Make/options: No such file or directory
error: applications/utilities/mesh/generation/snappyHexMesh/Make/options: No such file or directory
error: applications/utilities/mesh/manipulation/renumberMesh/Make/options: No such file or directory
error: applications/utilities/miscellaneous/expandDictionary/Make/options: No such file or directory
error: applications/utilities/miscellaneous/foamDebugSwitches/Make/options: No such file or directory
error: applications/utilities/parallelProcessing/reconstructParMesh/Make/options: No such file or directory
error: applications/utilities/postProcessing/dataConversion/foamToEnsight/Make/options: No such file or directory
error: applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options: No such file or directory
error: applications/utilities/postProcessing/turbulence/R/Make/options: No such file or directory
error: applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options: No such file or directory
error: applications/utilities/postProcessing/velocityField/Pe/Make/options: No such file or directory
error: applications/utilities/postProcessing/wall/wallShearStress/Make/options: No such file or directory
error: applications/utilities/postProcessing/wall/yPlusLES/Make/options: No such file or directory
error: applications/utilities/postProcessing/wall/yPlusRAS/Make/options: No such file or directory
error: applications/utilities/preProcessing/applyBoundaryLayer/Make/options: No such file or directory
error: bin/addr2line4Mac.py: already exists in working directory
error: etc/bashrc: No such file or directory
error: etc/config/CGAL.sh: No such file or directory
error: etc/config/metis.sh: No such file or directory
error: etc/config/paraview.sh: No such file or directory
error: etc/config/scotch.sh: No such file or directory
error: etc/config/settings.sh: No such file or directory
error: etc/controlDict: No such file or directory
error: src/OSspecific/POSIX/POSIX.C: No such file or directory
error: src/OSspecific/POSIX/clockTime/clockTime.H: No such file or directory
error: src/OSspecific/POSIX/fileStat.C: No such file or directory
error: src/OSspecific/POSIX/printStack.C: No such file or directory
error: src/OSspecific/POSIX/signals/sigFpe.C: No such file or directory
error: src/OSspecific/POSIX/signals/sigFpe.H: No such file or directory
error: src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C: No such file or directory
error: src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C: No such file or directory
error: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C: No such file or directory
error: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H: No such file or directory
error: src/OpenFOAM/primitives/Scalar/doubleFloat.H: No such file or directory
error: src/conversion/ensight/part/ensightPart.C: No such file or directory
error: src/conversion/ensight/part/ensightPartIO.C: No such file or directory
error: src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C: No such file or directory
error: src/dynamicMesh/meshCut/refineCell/refineCell.H: No such file or directory
error: src/fvOptions/Make/options: No such file or directory
error: src/meshTools/meshTools/meshTools.H: No such file or directory
error: src/parallel/decompose/ptscotchDecomp/Make/options: No such file or directory
error: src/parallel/decompose/scotchDecomp/Make/options: No such file or directory
error: src/renumber/Allwmake: No such file or directory
error: src/renumber/SloanRenumber/Make/options: No such file or directory
error: src/sampling/sampledSurface/writers/ensight/ensightPTraits.H: No such file or directory
error: wmake/Makefile: No such file or directory
error: wmake/rules/darwinIntel64Clang/c: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Debug: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Opt: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Prof: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cDebug: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cOpt: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cProf: already exists in working directory
error: wmake/rules/darwinIntel64Clang/general: already exists in working directory
nasirs-imac:~ nasiryakubu$



and when i use " patch -p1" i get:

nasirs-imac:~ nasiryakubu$ patch -p1</Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|# HG changeset patch
|# Parent c484792c3c037623473c0a8f11a5e52e66c0e929
|
|diff --git a/applications/solvers/combustion/fireFoam/Make/options b/applications/solvers/combustion/fireFoam/Make/options
|--- a/applications/solvers/combustion/fireFoam/Make/options
|+++ b/applications/solvers/combustion/fireFoam/Make/options
--------------------------
File to patch:


I also tried to remove the white trailing spaces you told me to do use the code "sed -i 's/[ \t]*$//' " and i got:

Last login: Tue Apr 1 12:20:50 on ttys000
nasirs-imac:~ nasiryakubu$ sed -i 's/[ \t]*$//'/Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch
sed: -i may not be used with stdin
nasirs-imac:~ nasiryakubu$

please i am more than happy to have someone run my imac using logmein or skype to help install it on my computer if anyone is willing to help.

thanks

kind regards

nas

alexeym April 1, 2014 07:47

Well,

1. the patch here is for OpenFOAM-2.3.x (git version), patch in the blog is for OpenFOAM-2.3.0 (release source packs).

2. The patches are different. I.e. if you'd downloaded the patch here, you should follow instructions given here, if you downloaded patch from blog post, you have to follow instructions in the blog post.

3. To apply patch you have to go to the source folder, from your reply I can deduce, that you are trying to apply patch in your home folder. Surely it will fail as there is no original files in your home folder. Your

Code:

nasirs-imac:~ nasiryakubu$ git apply /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch
should be

Code:

nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ patch -p1 < OpenFOAM-2.3.x-Mac.patch

4. I guess you've forgotten space before OpenFOAM-2.3.x-Mac.patch during invocation of sed.

esujby April 1, 2014 08:23

Quote:

Originally Posted by alexeym (Post 483204)
Well,

1. the patch here is for OpenFOAM-2.3.x (git version), patch in the blog is for OpenFOAM-2.3.0 (release source packs).

2. The patches are different. I.e. if you'd downloaded the patch here, you should follow instructions given here, if you downloaded patch from blog post, you have to follow instructions in the blog post.

3. To apply patch you have to go to the source folder, from your reply I can deduce, that you are trying to apply patch in your home folder. Surely it will fail as there is no original files in your home folder. Your

Code:

nasirs-imac:~ nasiryakubu$ git apply /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0/OpenFOAM-2.3.x-Mac.patch
should be

Code:

nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ patch -p1 < OpenFOAM-2.3.x-Mac.patch

4. I guess you've forgotten space before OpenFOAM-2.3.x-Mac.patch during invocation of sed.



Hello Alexy,

did thesame procedure but got:

Last login: Tue Apr 1 12:35:13 on ttys000
nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3
nasirs-imac:OpenFOAM-v2.3 nasiryakubu$ ls -lstr
total 0
0 drwxr-xr-x@ 8 nasiryakubu staff 918 30 Mar 20:39 ThirdParty-2.3.0
0 drwxr-xr-x@ 7 nasiryakubu staff 272 31 Mar 00:24 clang+llvm-3.3-x86_64-apple-darwin12 2
0 drwx------@ 2 nasiryakubu staff 3162 31 Mar 01:09 stl
0 drwxr-xr-x@ 8 nasiryakubu staff 714 31 Mar 01:19 boost_1_55_0
0 drwxr-xr-x@ 9 nasiryakubu staff 646 31 Mar 04:42 OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-v2.3 nasiryakubu$ cd OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ ls -lstr
total 336
0 drwxr-xr-x@ 5 nasiryakubu staff 782 11 Feb 11:59 wmake
0 drwxr-xr-x@ 16 nasiryakubu staff 646 11 Feb 11:59 tutorials
0 drwxr-xr-x@ 36 nasiryakubu staff 1258 11 Feb 11:59 src
0 drwxr-xr-x@ 6 nasiryakubu staff 272 11 Feb 11:59 doc
0 drwxr-xr-x@ 5 nasiryakubu staff 204 11 Feb 11:59 applications
8 -rw-r--r--@ 1 nasiryakubu staff 1587 11 Feb 11:59 README.org
16 -rw-r--r--@ 1 nasiryakubu staff 7611 11 Feb 11:59 README.html
72 -rw-r--r--@ 1 nasiryakubu staff 35647 11 Feb 11:59 COPYING
8 -rwxr-xr-x@ 1 nasiryakubu staff 932 11 Feb 11:59 Allwmake
0 drwxr-xr-x@ 3 nasiryakubu staff 2142 30 Mar 21:03 bin
128 -rw-r--r--@ 1 nasiryakubu staff 64691 30 Mar 22:10 OpenFOAM-2.3.x-Mac.patch
0 drwxr-xr-x@ 6 nasiryakubu staff 374 30 Mar 22:29 etc
104 -rw-r--r-- 1 nasiryakubu staff 51144 31 Mar 04:30 OpenFOAM-2.3.0-2.patch
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ patch -p1 < OpenFOAM-2.3.x-Mac.patch
patching file applications/solvers/combustion/fireFoam/Make/options
Hunk #1 FAILED at 36.
Hunk #2 FAILED at 55.
2 out of 2 hunks FAILED -- saving rejects to file applications/solvers/combustion/fireFoam/Make/options.rej
patching file applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]

i clicked enter till the end and got:
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options.rej
patching file applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options.rej
patching file applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options.rej
patching file applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options.rej
patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options.rej
patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options.rej
patching file applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options.rej
patching file applications/solvers/multiphase/multiphaseEulerFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/solvers/multiphase/multiphaseEulerFoam/Make/options.rej
patching file applications/utilities/mesh/generation/blockMesh/Make/options
Hunk #1 FAILED at 6.
1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/mesh/generation/blockMesh/Make/options.rej
patching file applications/utilities/mesh/generation/foamyQuadMesh/Make/options
patching file applications/utilities/mesh/generation/snappyHexMesh/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/mesh/generation/snappyHexMesh/Make/options.rej
patching file applications/utilities/mesh/manipulation/renumberMesh/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/mesh/manipulation/renumberMesh/Make/options.rej
patching file applications/utilities/miscellaneous/expandDictionary/Make/options
patching file applications/utilities/miscellaneous/foamDebugSwitches/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/miscellaneous/foamDebugSwitches/Make/options.rej
patching file applications/utilities/parallelProcessing/reconstructParMesh/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/parallelProcessing/reconstructParMesh/Make/options.rej
patching file applications/utilities/postProcessing/dataConversion/foamToEnsight/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file applications/utilities/postProcessing/dataConversion/foamToEnsight/Make/options.rej
patching file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options.rej
patching file applications/utilities/postProcessing/turbulence/R/Make/options
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/postProcessing/turbulence/R/Make/options.rej
patching file applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options.rej
patching file applications/utilities/postProcessing/velocityField/Pe/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/velocityField/Pe/Make/options.rej
patching file applications/utilities/postProcessing/wall/wallShearStress/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/wall/wallShearStress/Make/options.rej
patching file applications/utilities/postProcessing/wall/yPlusLES/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/wall/yPlusLES/Make/options.rej
patching file applications/utilities/postProcessing/wall/yPlusRAS/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/postProcessing/wall/yPlusRAS/Make/options.rej
patching file applications/utilities/preProcessing/applyBoundaryLayer/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file applications/utilities/preProcessing/applyBoundaryLayer/Make/options.rej
The next patch would create the file bin/addr2line4Mac.py,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file bin/addr2line4Mac.py.rej
patching file etc/bashrc
Hunk #1 succeeded at 204 (offset 5 lines).
Hunk #2 succeeded at 252 (offset 11 lines).
patching file etc/config/CGAL.sh
Hunk #1 succeeded at 46 with fuzz 2 (offset 11 lines).
patching file etc/config/metis.sh
patching file etc/config/paraview.sh
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file etc/config/paraview.sh.rej
patching file etc/config/scotch.sh
patching file etc/config/settings.sh
Hunk #1 FAILED at 46.
Hunk #2 succeeded at 237 with fuzz 1 (offset 78 lines).
Hunk #3 succeeded at 623 (offset 78 lines).
Hunk #4 succeeded at 684 (offset 78 lines).
Hunk #5 succeeded at 822 (offset 78 lines).
1 out of 5 hunks FAILED -- saving rejects to file etc/config/settings.sh.rej
patching file etc/controlDict
patching file src/OSspecific/POSIX/POSIX.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file src/OSspecific/POSIX/POSIX.C.rej
patching file src/OSspecific/POSIX/clockTime/clockTime.H
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/OSspecific/POSIX/clockTime/clockTime.H.rej
patching file src/OSspecific/POSIX/fileStat.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/OSspecific/POSIX/fileStat.C.rej
patching file src/OSspecific/POSIX/printStack.C
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 58.
Hunk #3 FAILED at 102.
Hunk #4 FAILED at 117.
Hunk #5 FAILED at 129.
Hunk #6 FAILED at 179.
Hunk #7 FAILED at 198.
Hunk #8 succeeded at 385 (offset 123 lines).
Hunk #9 succeeded at 415 (offset 123 lines).
Hunk #10 succeeded at 456 (offset 123 lines).
7 out of 10 hunks FAILED -- saving rejects to file src/OSspecific/POSIX/printStack.C.rej
patching file src/OSspecific/POSIX/signals/sigFpe.C
Hunk #1 succeeded at 54 with fuzz 2 (offset 12 lines).
Hunk #2 FAILED at 100.
Hunk #3 succeeded at 215 with fuzz 1 (offset 29 lines).
Hunk #4 succeeded at 342 with fuzz 2 (offset 50 lines).
Hunk #5 FAILED at 388.
2 out of 5 hunks FAILED -- saving rejects to file src/OSspecific/POSIX/signals/sigFpe.C.rej
patching file src/OSspecific/POSIX/signals/sigFpe.H
Hunk #1 succeeded at 63 with fuzz 2 (offset 8 lines).
Hunk #2 FAILED at 91.
1 out of 2 hunks FAILED -- saving rejects to file src/OSspecific/POSIX/signals/sigFpe.H.rej
patching file src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C.rej
patching file src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C
Hunk #1 FAILED at 228.
Hunk #2 FAILED at 246.
Hunk #3 FAILED at 266.
Hunk #4 FAILED at 279.
4 out of 4 hunks FAILED -- saving rejects to file src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C.rej
patching file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C
Hunk #1 succeeded at 98 with fuzz 2 (offset 48 lines).
Hunk #2 FAILED at 387.
1 out of 2 hunks FAILED -- saving rejects to file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C.rej
patching file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H
Hunk #1 FAILED at 109.
Hunk #2 FAILED at 222.
2 out of 2 hunks FAILED -- saving rejects to file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H.rej
patching file src/OpenFOAM/primitives/Scalar/doubleFloat.H
Hunk #1 succeeded at 51 with fuzz 2 (offset 20 lines).
patching file src/conversion/ensight/part/ensightPart.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/conversion/ensight/part/ensightPart.C.rej
patching file src/conversion/ensight/part/ensightPartIO.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/conversion/ensight/part/ensightPartIO.C.rej
patching file src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C.rej
patching file src/dynamicMesh/meshCut/refineCell/refineCell.H
patching file src/fvOptions/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/fvOptions/Make/options.rej
patching file src/meshTools/meshTools/meshTools.H
patching file src/parallel/decompose/ptscotchDecomp/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/parallel/decompose/ptscotchDecomp/Make/options.rej
patching file src/parallel/decompose/scotchDecomp/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/parallel/decompose/scotchDecomp/Make/options.rej
patching file src/renumber/Allwmake
patching file src/renumber/SloanRenumber/Make/options
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/renumber/SloanRenumber/Make/options.rej
patching file src/sampling/sampledSurface/writers/ensight/ensightPTraits.H
patching file wmake/Makefile
The next patch would create the file wmake/rules/darwinIntel64Clang/c,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/c.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/c++,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/c++.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/c++Debug,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/c++Debug.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/c++Opt,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/c++Opt.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/c++Prof,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/c++Prof.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/cDebug,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/cDebug.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/cOpt,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/cOpt.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/cProf,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/cProf.rej
The next patch would create the file wmake/rules/darwinIntel64Clang/general,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/general.rej
patching file wmake/rules/darwinIntel64Clang/mplib
patching file wmake/rules/darwinIntel64Clang/mplibMACPORTMPICH
patching file wmake/rules/darwinIntel64Clang/mplibMACPORTOPENMPI
The next patch would create the file wmake/rules/darwinIntel64Clang/mplibOPENMPI,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file wmake/rules/darwinIntel64Clang/mplibOPENMPI.rej
patching file wmake/rules/darwinIntel64Dragonegg/c
patching file wmake/rules/darwinIntel64Dragonegg/c++
patching file wmake/rules/darwinIntel64Dragonegg/c++Debug
patching file wmake/rules/darwinIntel64Dragonegg/c++Opt
patching file wmake/rules/darwinIntel64Dragonegg/c++Prof
patching file wmake/rules/darwinIntel64Dragonegg/cDebug
patching file wmake/rules/darwinIntel64Dragonegg/cOpt
patching file wmake/rules/darwinIntel64Dragonegg/cProf
patching file wmake/rules/darwinIntel64Dragonegg/general
patching file wmake/rules/darwinIntel64Dragonegg/mplib
patching file wmake/rules/darwinIntel64Dragonegg/mplibMACPORTMPICH
patching file wmake/rules/darwinIntel64Dragonegg/mplibMACPORTOPENMPI
patching file wmake/rules/darwinIntel64Dragonegg/mplibOPENMPI
patching file wmake/rules/darwinIntel64Gcc/c
patching file wmake/rules/darwinIntel64Gcc/c++
patching file wmake/rules/darwinIntel64Gcc/c++Debug
patching file wmake/rules/darwinIntel64Gcc/c++Opt
patching file wmake/rules/darwinIntel64Gcc/c++Prof
patching file wmake/rules/darwinIntel64Gcc/cDebug
patching file wmake/rules/darwinIntel64Gcc/cOpt
patching file wmake/rules/darwinIntel64Gcc/cProf
patching file wmake/rules/darwinIntel64Gcc/general
patching file wmake/rules/darwinIntel64Gcc/mplib
patching file wmake/rules/darwinIntel64Gcc/mplibMACPORTMPICH
patching file wmake/rules/darwinIntel64Gcc/mplibMACPORTOPENMPI
patching file wmake/rules/darwinIntel64Gcc/mplibOPENMPI

alexeym April 1, 2014 08:31

Hi,

try rereading what I've written in my reply. I will repeat it here in bold:

1. the patch here is for OpenFOAM-2.3.x (git version), patch in the blog is for OpenFOAM-2.3.0 (release source packs).

so basically you're trying to apply patch for git version of OpenFOAM (acquired with git clone git://github.com/OpenFOAM/OpenFOAM-2.3.x.git) to the release packs (you've downloaded OpenFOAM-2.3.0.tgz and ThirdParty-2.3.0.tgz from openfoam.org). As a result it fails.

esujby April 1, 2014 08:59

Quote:

Originally Posted by alexeym (Post 483219)
Hi,

try rereading what I've written in my reply. I will repeat it here in bold:

1. the patch here is for OpenFOAM-2.3.x (git version), patch in the blog is for OpenFOAM-2.3.0 (release source packs).

so basically you're trying to apply patch for git version of OpenFOAM (acquired with git clone git://github.com/OpenFOAM/OpenFOAM-2.3.x.git) to the release packs (you've downloaded OpenFOAM-2.3.0.tgz and ThirdParty-2.3.0.tgz from openfoam.org). As a result it fails.

Hello Alexey,

Apologies for not making it very clear! the post i made on this thread was based on my previous installation attempts, which i followed the procedure on wiki, but i abandoned that particular method as i ve tried so many attempts and it didnt work.That been said, my latest installations attempts has been based on this your blogs installation method which is this:

http://matveichev.blogspot.co.uk/201...l#comment-form

i also got all the installation folders from there, tried to install it so many times but had problems applying the patch. i thought there was a problem with the patch on your blog and downloaded the other patch in this forum which is OpenFOAM-2.3.x-Mac.Patch but now that you have explained it to me, i would delete it straight away and only use the one on your blog which is OpenFOAM-2.3.0-2.Patch.

anyhows i have tried applying both patches but it didnt work but will try and follow the procedure on your blog from the beginning.

Ihave followed the exact same procedure as it is in your blog mr alex, but when it comes to applying the patches, i end up getting the following:

Last login: Tue Apr 1 16:26:19 on ttys001
nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ ls -lstr
total 208
0 drwxr-xr-x@ 5 nasiryakubu staff 782 11 Feb 11:59 wmake
0 drwxr-xr-x@ 16 nasiryakubu staff 646 11 Feb 11:59 tutorials
0 drwxr-xr-x@ 37 nasiryakubu staff 1292 11 Feb 11:59 src
0 drwxr-xr-x@ 6 nasiryakubu staff 272 11 Feb 11:59 doc
0 drwxr-xr-x@ 5 nasiryakubu staff 204 11 Feb 11:59 applications
8 -rw-r--r--@ 1 nasiryakubu staff 1587 11 Feb 11:59 README.org
16 -rw-r--r--@ 1 nasiryakubu staff 7611 11 Feb 11:59 README.html
72 -rw-r--r--@ 1 nasiryakubu staff 35647 11 Feb 11:59 COPYING
8 -rwxr-xr-x@ 1 nasiryakubu staff 932 11 Feb 11:59 Allwmake
104 -rw-r--r--@ 1 nasiryakubu staff 51144 1 Apr 15:59 OpenFOAM-2.3.0-2.patch
0 drwxr-xr-x@ 6 nasiryakubu staff 340 1 Apr 16:16 etc
0 drwxr-xr-x@ 3 nasiryakubu staff 2142 1 Apr 16:16 bin
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ git apply OpenFOAM-2.3.0-2.patch
error: patch failed: applications/solvers/combustion/fireFoam/Make/options:36
error: applications/solvers/combustion/fireFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options:13
error: applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options:27
error: applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options:6
error: applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options:11
error: applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options:21
error: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options:27
error: applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options:30
error: applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/multiphase/multiphaseEulerFoam/Make/options:17
error: applications/solvers/multiphase/multiphaseEulerFoam/Make/options: patch does not apply
error: patch failed: applications/utilities/mesh/generation/blockMesh/Make/options:6
error: applications/utilities/mesh/generation/blockMesh/Make/options: patch does not apply
error: patch failed: applications/utilities/mesh/generation/snappyHexMesh/Make/options:1
error: applications/utilities/mesh/generation/snappyHexMesh/Make/options: patch does not apply
error: patch failed: applications/utilities/mesh/manipulation/renumberMesh/Make/options:1
error: applications/utilities/mesh/manipulation/renumberMesh/Make/options: patch does not apply
error: patch failed: applications/utilities/miscellaneous/foamDebugSwitches/Make/options:42
error: applications/utilities/miscellaneous/foamDebugSwitches/Make/options: patch does not apply
error: patch failed: applications/utilities/parallelProcessing/reconstructParMesh/Make/options:4
error: applications/utilities/parallelProcessing/reconstructParMesh/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/dataConversion/foamToEnsight/Make/options:1
error: applications/utilities/postProcessing/dataConversion/foamToEnsight/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options:9
error: applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/turbulence/R/Make/options:10
error: applications/utilities/postProcessing/turbulence/R/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options:5
error: applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/velocityField/Pe/Make/options:12
error: applications/utilities/postProcessing/velocityField/Pe/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/wall/wallShearStress/Make/options:7
error: applications/utilities/postProcessing/wall/wallShearStress/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/wall/yPlusLES/Make/options:8
error: applications/utilities/postProcessing/wall/yPlusLES/Make/options: patch does not apply
error: patch failed: applications/utilities/postProcessing/wall/yPlusRAS/Make/options:10
error: applications/utilities/postProcessing/wall/yPlusRAS/Make/options: patch does not apply
error: patch failed: applications/utilities/preProcessing/applyBoundaryLayer/Make/options:8
error: applications/utilities/preProcessing/applyBoundaryLayer/Make/options: patch does not apply
error: bin/addr2line4Mac.py: already exists in working directory
error: patch failed: bin/paraFoam:68
error: bin/paraFoam: patch does not apply
error: patch failed: etc/bashrc:63
error: etc/bashrc: patch does not apply
error: patch failed: etc/config/CGAL.sh:31
error: etc/config/CGAL.sh: patch does not apply
error: patch failed: etc/config/paraview.sh:102
error: etc/config/paraview.sh: patch does not apply
error: patch failed: etc/config/settings.sh:46
error: etc/config/settings.sh: patch does not apply
error: patch failed: src/OSspecific/POSIX/POSIX.C:53
error: src/OSspecific/POSIX/POSIX.C: patch does not apply
error: patch failed: src/OSspecific/POSIX/clockTime/clockTime.H:37
error: src/OSspecific/POSIX/clockTime/clockTime.H: patch does not apply
error: patch failed: src/OSspecific/POSIX/fileStat.C:29
error: src/OSspecific/POSIX/fileStat.C: patch does not apply
error: patch failed: src/OSspecific/POSIX/printStack.C:31
error: src/OSspecific/POSIX/printStack.C: patch does not apply
error: patch failed: src/OSspecific/POSIX/signals/sigFpe.C:42
error: src/OSspecific/POSIX/signals/sigFpe.C: patch does not apply
error: patch failed: src/OSspecific/POSIX/signals/sigFpe.H:55
error: src/OSspecific/POSIX/signals/sigFpe.H: patch does not apply
error: patch failed: src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C:30
error: src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C: patch does not apply
error: patch failed: src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C:228
error: src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C: patch does not apply
error: patch failed: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C:38
error: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C: patch does not apply
error: patch failed: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H:98
error: src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H: patch does not apply
error: patch failed: src/OpenFOAM/primitives/Scalar/doubleFloat.H:31
error: src/OpenFOAM/primitives/Scalar/doubleFloat.H: patch does not apply
error: patch failed: src/conversion/ensight/part/ensightPart.C:51
error: src/conversion/ensight/part/ensightPart.C: patch does not apply
error: patch failed: src/conversion/ensight/part/ensightPartIO.C:63
error: src/conversion/ensight/part/ensightPartIO.C: patch does not apply
error: patch failed: src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C:231
error: src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C: patch does not apply
error: patch failed: src/fvOptions/Make/options:13
error: src/fvOptions/Make/options: patch does not apply
error: patch failed: src/parallel/decompose/ptscotchDecomp/Make/options:8
error: src/parallel/decompose/ptscotchDecomp/Make/options: patch does not apply
error: patch failed: src/parallel/decompose/scotchDecomp/Make/options:12
error: src/parallel/decompose/scotchDecomp/Make/options: patch does not apply
error: patch failed: src/renumber/SloanRenumber/Make/options:1
error: src/renumber/SloanRenumber/Make/options: patch does not apply
error: patch failed: src/renumber/zoltanRenumber/Make/options:2
error: src/renumber/zoltanRenumber/Make/options: patch does not apply
error: patch failed: wmake/rules/General/CGAL:10
error: wmake/rules/General/CGAL: patch does not apply
error: wmake/rules/darwinIntel64Clang/c: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Debug: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Opt: already exists in working directory
error: wmake/rules/darwinIntel64Clang/c++Prof: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cDebug: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cOpt: already exists in working directory
error: wmake/rules/darwinIntel64Clang/cProf: already exists in working directory
error: wmake/rules/darwinIntel64Clang/general: already exists in working directory
error: wmake/rules/darwinIntel64Clang/mplibOPENMPI: already exists in working directory
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ cd
nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3/ThirdParty-2.3.0
nasirs-imac:ThirdParty-2.3.0 nasiryakubu$ ls -lstr
total 248
8 -rwxr-x---@ 1 nasiryakubu staff 3864 6 Feb 15:31 makeQt
24 -rwxr-x---@ 1 nasiryakubu staff 9234 6 Feb 15:31 makeParaView4
24 -rwxr-x---@ 1 nasiryakubu staff 9152 6 Feb 15:31 makeParaView
8 -rwxr-x---@ 1 nasiryakubu staff 3643 6 Feb 15:31 makeLLVM
16 -rwxr-x---@ 1 nasiryakubu staff 6698 6 Feb 15:31 makeGcc48
16 -rwxr-x---@ 1 nasiryakubu staff 6773 6 Feb 15:31 makeGcc47
16 -rwxr-x---@ 1 nasiryakubu staff 6773 6 Feb 15:31 makeGcc46
16 -rwxr-x---@ 1 nasiryakubu staff 6778 6 Feb 15:31 makeGcc
8 -rwxr-x---@ 1 nasiryakubu staff 3349 6 Feb 15:31 makeCmake
8 -rwxr-x---@ 1 nasiryakubu staff 2484 6 Feb 15:31 AllwmakeLibccmio
8 -rwxr-x---@ 1 nasiryakubu staff 2170 6 Feb 15:31 Allclean
8 -rw-r-----@ 1 nasiryakubu staff 2682 6 Feb 16:46 README.org
24 -rw-r-----@ 1 nasiryakubu staff 10485 6 Feb 16:46 README.html
16 -rw-r--r--@ 1 nasiryakubu staff 6578 1 Apr 15:59 ThirdParty-2.3.0-1.patch
0 drwxr-xr-x 9 nasiryakubu staff 884 1 Apr 16:12 openmpi-1.6.5
0 drwxr-xr-x 9 nasiryakubu staff 1020 1 Apr 16:12 cmake-2.8.12.1
0 drwxr-xr-x 7 nasiryakubu staff 408 1 Apr 16:12 scotch_6.0.0
0 drwxr-xr-x 11 nasiryakubu staff 748 1 Apr 16:12 CGAL-4.3
0 drwxr-xr-x 19 nasiryakubu staff 1020 1 Apr 16:13 ParaView-4.1.0
24 -rwxr-xr-x 1 nasiryakubu staff 9237 1 Apr 16:18 makeCGAL
24 -rwxr-xr-x 1 nasiryakubu staff 10682 1 Apr 16:18 Allwmake
0 drwxr-xr-x 4 nasiryakubu staff 204 1 Apr 16:26 etc
nasirs-imac:ThirdParty-2.3.0 nasiryakubu$ git apply ThirdParty-2.3.0-1.patch
error: patch failed: Allwmake:52
error: Allwmake: patch does not apply
error: etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM: already exists in working directory
error: patch failed: makeCGAL:128
error: makeCGAL: patch does not apply
nasirs-imac:ThirdParty-2.3.0 nasiryakubu$
thanks

nas

gschaider April 10, 2014 19:44

Quote:

Originally Posted by esujby (Post 483224)
Hello Alexey,

Apologies for not making it very clear! the post i made on this thread was based on my previous installation attempts, which i followed the procedure on wiki, but i abandoned that particular method as i ve tried so many attempts and it didnt work.That been said, my latest installations attempts has been based on this your blogs installation method which is this:

http://matveichev.blogspot.co.uk/201...l#comment-form

i also got all the installation folders from there, tried to install it so many times but had problems applying the patch. i thought there was a problem with the patch on your blog and downloaded the other patch in this forum which is OpenFOAM-2.3.x-Mac.Patch but now that you have explained it to me, i would delete it straight away and only use the one on your blog which is OpenFOAM-2.3.0-2.Patch.

anyhows i have tried applying both patches but it didnt work but will try and follow the procedure on your blog from the beginning.

Ihave followed the exact same procedure as it is in your blog mr alex, but when it comes to applying the patches, i end up getting the following:

Last login: Tue Apr 1 16:26:19 on ttys001
nasirs-imac:~ nasiryakubu$ cd /Volumes/OpenFOAM-v2.3/OpenFOAM-2.3.0
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ ls -lstr
total 208
0 drwxr-xr-x@ 5 nasiryakubu staff 782 11 Feb 11:59 wmake
0 drwxr-xr-x@ 16 nasiryakubu staff 646 11 Feb 11:59 tutorials
0 drwxr-xr-x@ 37 nasiryakubu staff 1292 11 Feb 11:59 src
0 drwxr-xr-x@ 6 nasiryakubu staff 272 11 Feb 11:59 doc
0 drwxr-xr-x@ 5 nasiryakubu staff 204 11 Feb 11:59 applications
8 -rw-r--r--@ 1 nasiryakubu staff 1587 11 Feb 11:59 README.org
16 -rw-r--r--@ 1 nasiryakubu staff 7611 11 Feb 11:59 README.html
72 -rw-r--r--@ 1 nasiryakubu staff 35647 11 Feb 11:59 COPYING
8 -rwxr-xr-x@ 1 nasiryakubu staff 932 11 Feb 11:59 Allwmake
104 -rw-r--r--@ 1 nasiryakubu staff 51144 1 Apr 15:59 OpenFOAM-2.3.0-2.patch
0 drwxr-xr-x@ 6 nasiryakubu staff 340 1 Apr 16:16 etc
0 drwxr-xr-x@ 3 nasiryakubu staff 2142 1 Apr 16:16 bin
nasirs-imac:OpenFOAM-2.3.0 nasiryakubu$ git apply OpenFOAM-2.3.0-2.patch
error: patch failed: applications/solvers/combustion/fireFoam/Make/options:36
error: applications/solvers/combustion/fireFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options:13
error: applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options: patch does not apply
error: patch failed: applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options:27

That and the output when you applied the regular patch-utility ("Reversed (or previously applied) patch detected!") lead me to the suspicion that you tried to apply the patch a second time. Could this be the case?

totalart April 10, 2014 20:08

During compiling, following errors occurred. Can you advise me what the problem is? Thank you!

Make/darwinIntel64Gcc46DPOpt/STLsurfaceFormatASCII.C:312:23: fatal error: FlexLexer.h: No such file or directory
make: *** [Make/darwinIntel64Gcc46DPOpt/STLsurfaceFormatASCII.o] Error 1
Make/darwinIntel64Gcc46DPOpt/readSTLASCII.C:312:23: fatal error: FlexLexer.h: No such file or directory
make: *** [Make/darwinIntel64Gcc46DPOpt/readSTLASCII.o] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libmeshTools.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libedgeMesh.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libfiniteVolume.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/liblagrangian.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libgenericPatchFields.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libdecompositionMethods.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libdecompose.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libreconstruct.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libdistributed.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/librenumberMethods.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libSloanRenumber.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libconversion.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsampling.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libextrudeModel.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libdynamicMesh.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libdynamicFvMesh.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libtopoChangerFvMesh.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/librandomProcesses.dylib] Error 1
make: *** [/Users/youngkookkim/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libfluidThermophysicalModels.dylib] Error 1

totalart April 10, 2014 22:30

Quote:

Originally Posted by redAbbot (Post 477632)
I'm not having luck with the patch:

bash-3.2$ patch -p1<OpenFOAM-2.3.x-Mac.patch
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.


It's unclear to me if I have to install the SurfaceGCALFix patch, but I tried anyway and got a different error:

bash-3.2$ patch -p1<SurfaceCGALFix.patch
patching file applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C.rej

I had some error in applying SurfaceGCALFix patch, so I assumed the patch is not needed for 2.3. Do we need?? When I look at the errors above during the install, it seems I need it. Have you managed to install?

esujby April 10, 2014 23:06

Quote:

Originally Posted by gschaider (Post 485336)
That and the output when you applied the regular patch-utility ("Reversed (or previously applied) patch detected!") lead me to the suspicion that you tried to apply the patch a second time. Could this be the case?

Hello gschaider,

It could be the case but i have always had the same result when i tried to apply the patch, always, i dont know why but i always did.

please can you advice me on how to clean up everything and all the applied patches and start the installation all over again, and advice me on which of the installation procedure is best suited for the new imac with mac maverick.

kind regards

nas

gschaider April 13, 2014 09:28

Quote:

Originally Posted by totalart (Post 485355)
I had some error in applying SurfaceGCALFix patch, so I assumed the patch is not needed for 2.3. Do we need?? When I look at the errors above during the install, it seems I need it. Have you managed to install?

This patch was only necessary for 2.2 as it hasbeen included into the 2.3 patch

gschaider April 13, 2014 09:32

Quote:

Originally Posted by esujby (Post 485357)
Hello gschaider,

It could be the case but i have always had the same result when i tried to apply the patch, always, i dont know why but i always did.

please can you advice me on how to clean up everything and all the applied patches and start the installation all over again, and advice me on which of the installation procedure is best suited for the new imac with mac maverick.

kind regards

nas

You can always reverse-apply the patch (see man-page) but you might see similar problems here ... only in reverse.

The "safest" (but also most painful) way would be to remove the directory altogether, get the original sources again and apply the patch on this clean directory (you don't have to remove the old directory. Just move it out of the way)

maCrobo April 14, 2014 20:20

Error in compiling
 
2 Attachment(s)
Hello everyone, I have some problems and I am very inexperienced, so I don't really know what I can do to try to fix them.

I followed the Wiki guide carefully, but the computer doesn't finish compiling OpenFOAM.

I downloaded OpenFOAM 2.3.x from git because I understood from previous posts that the patch presented in this thread is for that version; in fact I followed those instructions to download OpenFoam 2.3.x and the ThirdParty (as you can see on the instructions page it says ThirdParty-2.3.0).
Then I started to follow the Wiki guide carefully. I think I didn't miss anything. Once I launch ./Allwmake the process stops with a bunch of errors.

The first thing I thought is that I missed something written in the patch README file, but I did the --select part for the mpi (I chose openmpi-gcc46-fortran), I downloaded via Macports the files that take now the place of the old third party patch; I downloaded only one patch file called OpenFOAM-2.3.x-Mac.patch (I think it's correct).

I have the log file and I haven't closed my terminal window yet, so it has the results of the process. Anyway, attaching the log file is a bit easier for me, so I'm doing that; if you need more information let me know.

P.S.: everything took place under OSX 10.9.0

I had to split the log file because it was too heavy to be uploaded.

alexeym April 15, 2014 03:20

Well, below are just guesses:

1. As far as I can see in the message, there is no need for ThirdParty source pack as you should install dependencies (OpenMPI, Scotch, CGAL, Boost, GMP, MPFR) with MacPorts. So I will skip errors you've got during Scotch build.

2. Are you sure that git clone was done without errors? You've got these lines in your logs:

Code:

could not open file PointHit.H for source file global/global.Cver due to No such file or directory
...
could not open file PointHit.H for source file primitives/globalIndexAndTransform/globalIndexAndTransform.C due to No such file or dire
ctory
...

Can you run

Code:

find . -name 'PointHit.H'
in OpenFOAM-2.3.x folder? Will it find the file?

maCrobo April 15, 2014 05:18

Quote:

Originally Posted by alexeym (Post 486176)
Well, below are just guesses:

Can you run

Code:

find . -name 'PointHit.H'
in OpenFOAM-2.3.x folder? Will it find the file?

I have to admit it was the first time I ever used that command. I did what you said and nothing happened, so I guess it doesn't find anything (I tried to find "Allwmake" and it gave me back a bunch of addresses).

When I downloaded I simply typed
Code:

git clone https://github.com/OpenFOAM/OpenFOAM-2.3.x.git
It seems that I removed the download, so the only thing I know is that it was complete because I manage to unzip it.

What else should I check?

alexeym April 15, 2014 05:38

Quote:

Originally Posted by maCrobo (Post 486202)
It seems that I removed the download, so the only thing I know is that it was complete because I manage to unzip it.

Sorry, can't understand the phrase. Why unzip? git clone will create source tree for you so there's no need to unzip anything.

Where did you clone the sources? I hope into the mounted image with case sensitive file system.

And as it seems there is no PointHit.H file, maybe you should clone repository once again.

maCrobo April 15, 2014 06:25

Quote:

Originally Posted by alexeym (Post 486206)
Sorry, can't understand the phrase. Why unzip? git clone will create source tree for you so there's no need to unzip anything.

Nevermind.

Quote:

Originally Posted by alexeym (Post 486206)
Where did you clone the sources? I hope into the mounted image with case sensitive file system.

Yes, as it says in the guide I linked. I opened the Utility Disk, created a sparse image with:

Format: Mac OS Extended (Case-sensitive)
Partition: Rigid Disk
Image format: Sparse
(note: Image Formate is not Sparse-bundle, I chose Sparse)

Then I downloaded everything, took the result and moved it in the mounted image.

Before, I said that I unzipped it, but I actually don't remember; anyway, I was able to get inside the folder. I also remember the clone wasn't directly done inside the Sparse Image, there's a high possibility I copied it there later. I'll try to start everything again by cloning it directly in the sparse image.
Do you have any other ideas?

alexeym April 15, 2014 07:56

Do I get you right:

- First you've created a disk image with case SENSITIVE file system as it is required by OpenFOAM's file naming conventions.
- Then you create a clone of repository on case INSENSITIVE file system (basically loosing part of the source tree).
- And then you move the damaged source tree from case INSENSITIVE FS to case SENSITIVE FS.

I don't see the point in creating image with case sensitive FS in the first place with this way of cloning repository.

You should execute 'git clone ...' inside the folder where you've mounted disk image. And then proceed further with build.

maCrobo April 15, 2014 18:13

2 Attachment(s)
Quote:

Originally Posted by alexeym (Post 486240)
Do I get you right:

- First you've created a disk image with case SENSITIVE file system as it is required by OpenFOAM's file naming conventions.
- Then you create a clone of repository on case INSENSITIVE file system (basically loosing part of the source tree).
- And then you move the damaged source tree from case INSENSITIVE FS to case SENSITIVE FS.

I don't see the point in creating image with case sensitive FS in the first place with this way of cloning repository.

You should execute 'git clone ...' inside the folder where you've mounted disk image. And then proceed further with build.

Yes, you got it.

I tried again. This time I executed the "git clone" inside the Case Sensitive Sparse Image, so I should have the complete file.

Unfortunately some other errors poped up. I attach the Log File (split into two parts because of size issues).

This time it seems the scotch error is one of the first ones; I tried to execute the command "sudo port install scotch" and it seems it is installed, the same for all the other "port" adds I need.

I'll repeat what I did: I created the sparse image (case Sensitive), "git clone" in it, download ThirdParty-2.3.0.tgz and open it in the Sparse Image (not inside the OpenFoam-2.3.x folder, but in the same folder where OpenFoam-2.3.x is); from there on I follow the Wiki Guide.

Notes:

- after installing openmpi-gcc46 through Macports, I execute "sudo port select --set mpi openmpi-gcc46-fortran" (as suggested earlier on this thread)

- point 7 of 4.2 of the Wiki guide: I don't have the "wmake/rules/darwinIntel64Gcc4*"

- point 4 of 4.3 of the Wiki guide: the end of the file is before the last line where is written something like "----------End of File" or after?

- I didn't do point 6 of 4.3 of the Wiki guide because I don't have that file and someone on this post has said that it is actually useless to do it in this version

- point 8 of 4.3 of the Wiki guide: I have a slightly different string, the following "L$(BOOST_ARCH_PATH)/lib -lboost_thread$(BOOST_THREAD_EXTENSION)" that I modify to have "L$(BOOST_ARCH_PATH)/lib -lboost_thread-mt$(BOOST_THREAD_EXTENSION)"

alexeym April 16, 2014 04:11

Well, I've looked through your logs and was able to find only a few errors:

1. During compilation of scotch

Code:

gcc-mp-4.6 -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -Drestrict=__restrict -DSCOTCH_VERSION=6 -DSCOTCH_R
ELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o dummysizes -Xlinker --no-as-needed -lz -lm -lrt
ld: unknown option: --no-as-needed
collect2: ld returned 1 exit status

I'd rather surprised that you need to build scotch again as you've installed it through Macports. Any way Scotch decomposition seems to compile, though not sure it will be working.

2. During SloanRenumber compilation

Code:

+ wmake libso SloanRenumber
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file SloanRenumber.C
SOURCE=SloanRenumber.C ;  g++-mp-4.6 -m64 -fsignaling-nans  -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter
 -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100 -I/opt/local/include -I/Users/myName/OpenFOAM/OpenFOAM-2.
3.x/src/meshTools/lnInclude -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/parallel/decompose/decompositionMethods/lnInclude -I/Users/myNa
me/OpenFOAM/OpenFOAM-2.3.x/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/
lnInclude -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude  -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46
DPOpt/SloanRenumber.o
ld: library not found for -lboost_thread-mt-mt
collect2: ld returned 1 exit status
make: *** [/Users/myName/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libSloanRenumber.dylib] Error 1

This is due to your last modification. Either you use

Code:

-L$(BOOST_ARCH_PATH)/lib -lboost_thread$(BOOST_THREAD_EXTENSION)
or

Code:

-L$(BOOST_ARCH_PATH)/lib -lboost_thread-mt
-mt actually is inside $(BOOST_THREAD_EXTENSION) variable.

3. And finally during compilation of driftFluxFoam

Code:

Undefined symbols for architecture x86_64:
  "Foam::twoPhaseMixture::twoPhaseMixture(Foam::fvMesh const&, Foam::dictionary const&)", referenced from:
      Foam::incompressibleTwoPhaseInteractingMixture::incompressibleTwoPhaseInteractingMixture(Foam::GeometricField<Foam::Vector<double
>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in incompres
sibleTwoPhaseInteractingMixture.o
      Foam::incompressibleTwoPhaseInteractingMixture::incompressibleTwoPhaseInteractingMixture(Foam::GeometricField<Foam::Vector<double
>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in incompres
sibleTwoPhaseInteractingMixture.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/myName/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/bin/driftFluxFoam] Error 1

And this is due to incomplete Make/options file of this application. I guess they forgot to put -ltwoPhaseMixture in EXE_LIBS.

Also there is error message from Paraview but it's normal as you don't need to build Paraview on OS X.

There were no more errors in your log files.

maCrobo April 16, 2014 04:41

Quote:

Originally Posted by alexeym (Post 486414)
Well, I've looked through your logs and was able to find only a few errors:

Many thanks, man. Really!

Quote:

Originally Posted by alexeym (Post 486414)

1. During compilation of scotch

Code:

gcc-mp-4.6 -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -Drestrict=__restrict -DSCOTCH_VERSION=6 -DSCOTCH_R
ELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o dummysizes -Xlinker --no-as-needed -lz -lm -lrt
ld: unknown option: --no-as-needed
collect2: ld returned 1 exit status

I'd rather surprised that you need to build scotch again as you've installed it through Macports. Any way Scotch decomposition seems to compile, though not sure it will be working.

I don't know what to do here, because I actually don't know what files/folders I should modify/move to fix the problem as scotch is installed (...apparently).

Quote:

Originally Posted by alexeym (Post 486414)

2. During SloanRenumber compilation

Code:

+ wmake libso SloanRenumber
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file SloanRenumber.C
SOURCE=SloanRenumber.C ;  g++-mp-4.6 -m64 -fsignaling-nans  -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter
 -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100 -I/opt/local/include -I/Users/myName/OpenFOAM/OpenFOAM-2.
3.x/src/meshTools/lnInclude -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/parallel/decompose/decompositionMethods/lnInclude -I/Users/myNa
me/OpenFOAM/OpenFOAM-2.3.x/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/
lnInclude -I/Users/myName/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude  -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46
DPOpt/SloanRenumber.o
ld: library not found for -lboost_thread-mt-mt
collect2: ld returned 1 exit status
make: *** [/Users/myName/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/lib/libSloanRenumber.dylib] Error 1

This is due to your last modification. Either you use

Code:

-L$(BOOST_ARCH_PATH)/lib -lboost_thread$(BOOST_THREAD_EXTENSION)
or

Code:

-L$(BOOST_ARCH_PATH)/lib -lboost_thread-mt
-mt actually is inside $(BOOST_THREAD_EXTENSION) variable.

Well, I'll change this and try again.

Quote:

Originally Posted by alexeym (Post 486414)

3. And finally during compilation of driftFluxFoam

Code:

Undefined symbols for architecture x86_64:
  "Foam::twoPhaseMixture::twoPhaseMixture(Foam::fvMesh const&, Foam::dictionary const&)", referenced from:
      Foam::incompressibleTwoPhaseInteractingMixture::incompressibleTwoPhaseInteractingMixture(Foam::GeometricField<Foam::Vector<double
>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in incompres
sibleTwoPhaseInteractingMixture.o
      Foam::incompressibleTwoPhaseInteractingMixture::incompressibleTwoPhaseInteractingMixture(Foam::GeometricField<Foam::Vector<double
>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in incompres
sibleTwoPhaseInteractingMixture.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/myName/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64Gcc46DPOpt/bin/driftFluxFoam] Error 1

And this is due to incomplete Make/options file of this application. I guess they forgot to put -ltwoPhaseMixture in EXE_LIBS.

I guess I can't do anything for that, right?

alexeym April 16, 2014 04:53

Quote:

Many thanks, man. Really!
It was not hard as I've just searched 'error' word in the files.

Quote:

I don't know what to do here, because I actually don't know what files/folders I should modify/move to fix the problem as scotch is installed (...apparently).
You can ignore this error right now, if there will be problem with scotch mesh decomposition method then you can start to worry and try to solve the problem.


Quote:

I guess I can't do anything for that, right?
Well, you can edit applications/solvers/multiphase/driftFluxFoam/Make/options file, add '-ltwoPhaseMixture \' line after 'EXE_LIBS = \' line and run Allwmake in applications/solvers/multiphase/driftFluxFoam folder. Or you can ignore the error if you don't plan to use this solver.

maCrobo April 16, 2014 05:19

Quote:

Originally Posted by alexeym (Post 486426)
Well, you can edit applications/solvers/multiphase/driftFluxFoam/Make/options file, add '-ltwoPhaseMixture \' line after 'EXE_LIBS = \' line and run Allwmake in applications/solvers/multiphase/driftFluxFoam folder.

I did it and when I run ./Allwmake (while in "applications/solvers/multiphase/driftFluxFoam" folder) I have this answer on the Terminal:

Code:

+ wmake libso mixtureViscosityModels
./Allwmake: line 5: wmake: command not found
+ wmake libso relativeVelocityModels
./Allwmake: line 6: wmake: command not found
+ wmake
./Allwmake: line 7: wmake: command not found


alexeym April 16, 2014 05:24

And did you 'source etc/bashrc' before running the script? It seems that environment variables are not set up.

maCrobo April 16, 2014 06:21

I didn't know of this source thing either... The problem here is that I don't understand the logic behind all these things I'm doing to compile OpenFoam... Anyway, I did it and it compiled that specific solver.

I have another question: should have I downloaded the patch directly in the Case Sensitive Image, or it is ok that I downloaded on my Downloads system folder where I usually download everything?


All times are GMT -4. The time now is 10:29.