CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

Patches to compile OpenFOAM 2.2 on Mac OS X

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree20Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2014, 21:49
Default
  #121
New Member
 
Brian Weeks
Join Date: Feb 2014
Location: NYC
Posts: 4
Rep Power: 4
bweeks is on a distinguished road
I'm doing an installation of OF2.2.2 using the Source Pack, downloaded from here.
bweeks is offline   Reply With Quote

Old   March 10, 2014, 15:25
Default
  #122
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by bweeks View Post
I'm doing an installation of OF2.2.2 using the Source Pack, downloaded from here.
Then you can ignore these messages (if they are the only ones). Patch is usually developed/maintained against the git-version (which is usually more advanced than the latest release)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 17, 2014, 07:31
Default Problems with 2.2.x latest built
  #123
New Member
 
Michael
Join Date: Dec 2011
Location: Geneva
Posts: 28
Rep Power: 6
lithos is on a distinguished road
Dear all,

now it hit me trying to get a running copy of the last OpenFOAM 2.2.x built from
Code:
mpmp:OpenFOAM-2.2.x mplagge$ git show
commit 61b850bc107bdd60bbf1bf9a6417b9faf701d128
Merge: 3743359 68ae524
Author: andy <andy>
Date:   Wed Feb 26 16:43:52 2014 +0000
with the patches provided by Bernhard. I put a new sparseimage, fresh git clone from the repository, checked the installation of boost, cgal, flex, bison, ccache, gcc46, openmpi-1.7.2-gcc46 etc., put a fresh copy of ThirdParty tools. Then I applied the two patches below, followed also http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2 and started compiling.
I noticed quickly that openmpicc was not used by allwmake for building Scotch. So I had a look at the patches and not being an expert I applied also the newMacPortsMPIThirdParty.patch. The second run openmpicc was used. However, as soon as finishing ThirdParty tools there is a strange gcc error occuring that I never had before:

Code:
...
/opt/local/include/gcc46/c++/cwchar:66:11: error: '::mbstate_t' has not been declared
/opt/local/include/gcc46/c++/cwchar:141:11: error: '::wint_t' has not been declared
/opt/local/include/gcc46/c++/cwchar:143:11: error: '::btowc' has not been declared
/opt/local/include/gcc46/c++/cwchar:144:11: error: '::fgetwc' has not been declared
...
I put only four of dozens of these messages. Compilation fails completely, not even the 'platforms' folder is generated. Does anybody know this error by chance? I checked already printenv a dozen times, everything seems fine. Also GCC 4.8 I tried with the same result. The full allwmake log file can be downloaded here:

https://box.cern.ch/public.php?servi...a28f082c2c0148

I would really appreciate any help. Thanks in advance.

Cheers,

Michael



Quote:
Originally Posted by gschaider View Post
OK. Attachments seem to broken. Here are the two full patch:

Attachment 28765
Attachment 28766

SOLVED: Bloody damn stupid beginner mistake: disk image was not case sensitive. Layer 8, right in front of the machine. -.-

Last edited by lithos; March 17, 2014 at 13:33.
lithos is offline   Reply With Quote

Old   March 19, 2014, 19:03
Default
  #124
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lithos View Post

SOLVED: Bloody damn stupid beginner mistake: disk image was not case sensitive. Layer 8, right in front of the machine. -.-
It's a good thing that I'm two days behind with answering the message board stuff. It's much more satisfying to find the mistake yourself, right? (and my first impression was "looks familiar, but I can't remember what the cause is")
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 20, 2014, 06:21
Default
  #125
New Member
 
Michael
Join Date: Dec 2011
Location: Geneva
Posts: 28
Rep Power: 6
lithos is on a distinguished road
Dear Bernhard,

one day I'll show you our archive of keyboards and desk tops, the ones with the bite marks...

However, could you please let me know what should be the setting for WM_MPLIB with your patches? I added the full patch and newMacPortsMPIThirdParty with 2.2.x and I get:

Code:
mpmp:motorBike mplagge$ openmpirun -np 6 snappyHexMesh -parallel -overwrite
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
openmpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[46715,1],5]
  Exit code:    1
Not exactly the same procedure as very year, rather something new. At least for me Available are right now GCC 4.6 with OpenMPI 1.7.2 and GCC 4.8 with OpenMPI 1.7.2

Cheers,

Michael


Quote:
Originally Posted by gschaider View Post
It's a good thing that I'm two days behind with answering the message board stuff. It's much more satisfying to find the mistake yourself, right? (and my first impression was "looks familiar, but I can't remember what the cause is")
lithos is offline   Reply With Quote

Old   March 20, 2014, 15:11
Default
  #126
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lithos View Post
Dear Bernhard,

one day I'll show you our archive of keyboards and desk tops, the ones with the bite marks...
This one?
http://fatpenguinblog.com/wp-content...tyKeyboard.jpg
(No. The patch does not hack your webcam. I was only guessing )

Quote:
Originally Posted by lithos View Post
However, could you please let me know what should be the setting for WM_MPLIB with your patches?
That's the point with the latest version of the patches: it looks at /opt/local/bin/mpicc and determines from that which MPI-version to use (and sets WM_MPLIB)

Quote:
Originally Posted by lithos View Post
I added the full patch and newMacPortsMPIThirdParty with 2.2.x and I get:

Code:
mpmp:motorBike mplagge$ openmpirun -np 6 snappyHexMesh -parallel -overwrite
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
openmpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[46715,1],5]
  Exit code:    1
Not exactly the same procedure as very year, rather something new. At least for me Available are right now GCC 4.6 with OpenMPI 1.7.2 and GCC 4.8 with OpenMPI 1.7.2

Cheers,

Michael
That confuses me a bit: with the new MacPorts there is no (open)mpirun anymore. A mpiexec that points to the default MPI and a number of executables of the form mpiexec-openmpi-gcc46.

Are you using an outdated MacPorts (do a "port selfupdate; port upgrade outdated") or a self-compiled OpenMPI (honorable but I can't help you there. I avoid compiling stuff)?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 24, 2014, 11:51
Default
  #127
New Member
 
Michael
Join Date: Dec 2011
Location: Geneva
Posts: 28
Rep Power: 6
lithos is on a distinguished road
Dear Bernhard,
thanks for your comments. I did a complete selfupdate and upgrade of the outdated stuff, a lot of things have been relinked. The following run of Allwmake was successful. However, I dont see any mpicc use anymore in the log file as before.
And I agree with you on the compilation stuff. That is why I avoid regularly to get the newest port and git version: it creates more trouble than it helps usually.
In the end I did a

Code:
ln -s /opt/local/bin/mpiexec-openmpi-gcc46 $WM_PROJECT_DIR/bin/mpirun
and now everything works. For the keyboard, famous and known for years. But we don't smoke in our offices anymore...

Cheers,

Michael



Quote:
Originally Posted by gschaider View Post
That confuses me a bit: with the new MacPorts there is no (open)mpirun anymore. A mpiexec that points to the default MPI and a number of executables of the form mpiexec-openmpi-gcc46.

Are you using an outdated MacPorts (do a "port selfupdate; port upgrade outdated") or a self-compiled OpenMPI (honorable but I can't help you there. I avoid compiling stuff)?
lithos is offline   Reply With Quote

Old   March 25, 2014, 11:01
Default
  #128
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lithos View Post
Dear Bernhard,
thanks for your comments. I did a complete selfupdate and upgrade of the outdated stuff, a lot of things have been relinked. The following run of Allwmake was successful. However, I dont see any mpicc use anymore in the log file as before.
And I agree with you on the compilation stuff. That is why I avoid regularly to get the newest port and git version: it creates more trouble than it helps usually.
In the end I did a

Code:
ln -s /opt/local/bin/mpiexec-openmpi-gcc46 $WM_PROJECT_DIR/bin/mpirun
and now everything works. For the keyboard, famous and known for years. But we don't smoke in our offices anymore...

Cheers,

Michael
Have you set the default MPI with "port select"? Of course then it is still called "mpiexec"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 30, 2014, 15:56
Default
  #129
New Member
 
Michael
Join Date: Dec 2011
Location: Geneva
Posts: 28
Rep Power: 6
lithos is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Have you set the default MPI with "port select"? Of course then it is still called "mpiexec"
Yes, of course. Both, MPI and GCC:

Code:
Available versions for gcc:
    llvm-gcc42
    mp-gcc46 (active)
    mp-gcc47
    mp-gcc48
    none
Code:
Available versions for mpi:
    mpich-mp-fortran
    none
    openmpi-gcc46-fortran (active)
    openmpi-mp-fortran
As long as it works now I don't care for the name of the (data) manager :-)
lithos is offline   Reply With Quote

Old   April 12, 2014, 07:30
Default makefile for scotch
  #130
New Member
 
malu
Join Date: Jun 2013
Posts: 8
Rep Power: 5
malfrienz is on a distinguished road
Hi all,

I'm trying to install open foam on my macbook. I followed all the appropriate instructions in wiki page. once i did the './Allwmake 2>&1 | tee logName.log', I found some errors and the first error says 'Error: Scotch needs an appropriate makeFile.inc'. I don't understand whats wrongs and what i have to do next.

Any help is much appreciated.

Thanks
malfrienz is offline   Reply With Quote

Old   April 14, 2014, 19:32
Default
  #131
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by malfrienz View Post
Hi all,

I'm trying to install open foam on my macbook. I followed all the appropriate instructions in wiki page. once i did the './Allwmake 2>&1 | tee logName.log', I found some errors and the first error says 'Error: Scotch needs an appropriate makeFile.inc'. I don't understand whats wrongs and what i have to do next.

Any help is much appreciated.

Thanks
Did you apply the ThirdParty-patch? That should add that make-file. And that line is not very much maybe it is said before that WHICH file is expected
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 14, 2014, 20:22
Default
  #132
New Member
 
malu
Join Date: Jun 2013
Posts: 8
Rep Power: 5
malfrienz is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Did you apply the ThirdParty-patch? That should add that make-file. And that line is not very much maybe it is said before that WHICH file is expected
I applied the third part patch. these are the exact lines from the log file.
*************************************************
Build Scotch decomposition library scotch_6.0.0
/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ cd scotch_6.0.0/src
+ prefixDIR=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ libDIR=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib
+ mkdir -p /Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ mkdir -p /Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib
+ configOpt='prefix=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0 libdir=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib'
+ '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM ']'
+ '[' -f Makefile.inc ']'
+ echo ' Error: scotch needs an appropriate Makefile.inc'
Error: scotch needs an appropriate Makefile.inc
+ exit 1

WARNING: required include file 'scotch.h' not found!

************************************************** *****

What do you think is the problem here?

Thanks
Malu
malfrienz is offline   Reply With Quote

Old   April 24, 2014, 18:37
Default
  #133
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,934
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by malfrienz View Post
I applied the third part patch. these are the exact lines from the log file.
*************************************************
Build Scotch decomposition library scotch_6.0.0
/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ cd scotch_6.0.0/src
+ prefixDIR=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ libDIR=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib
+ mkdir -p /Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ mkdir -p /Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib
+ configOpt='prefix=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0 libdir=/Users/mharibabu/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib'
+ '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM ']'
+ '[' -f Makefile.inc ']'
+ echo ' Error: scotch needs an appropriate Makefile.inc'
Error: scotch needs an appropriate Makefile.inc
+ exit 1

WARNING: required include file 'scotch.h' not found!

************************************************** *****

What do you think is the problem here?

Thanks
Malu
No idea. Makefile.inc should be a symbolic link to ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM but that test seems to fail ("scotch need an appropriate ...")
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 29, 2014, 02:40
Default scotch compilation issues after using the latest full patch (2014-02-17 version)
  #134
Member
 
Vishal Achasrya
Join Date: Nov 2011
Posts: 30
Rep Power: 6
vishalsacharya is on a distinguished road
I am having the same problem with scotch.

The scotch Makefile is present and accounted for and I also checked its contents in the appropriate linked location, but despite that, scotch is not being compiled. It still creates a dummy scotch and ptscotch library. I have applied all patches, and made all the softlinks and all serial runs work.

I am using the latest MacPorts in 10.10 Yosemite. There are no more openmpi files.... everything is mpirun-openmpi-mp and mpicc-openmpi-mp etc. Im wondering if this is the issue?

Below is a snippet showing just the scotch and ptscotch compilation part and its errors:

Code:
Build Scotch decomposition library scotch_6.0.0
    /Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ cd scotch_6.0.0/src
+ prefixDIR=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ mkdir -p /Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ configOpt='prefix=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0 libdir=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib'
+ '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM ']'
+ ln -s ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM Makefile.inc
+ make -j 1 CC=gcc-mp-4.6 CCS=gcc-mp-4.6 scotch
    WARNING: required include file 'scotch.h' not found!
Build PTScotch decomposition library scotch_6.0.0 (uses MPI)
    /Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ cd scotch_6.0.0/src
+ prefixDIR=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ incDIR=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-system
+ mkdir -p /Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ configOpt='prefix=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0 libdir=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system includedir=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-system'
+ '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM ']'
+ ln -s ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM Makefile.inc
+ make -j 1 CC=gcc-mp-4.6 CCS=gcc-mp-4.6 ptscotch
    WARNING: required include file 'ptscotch.h' not found!
+ wmakeLnInclude scotchDecomp
wmakeLnInclude: linking include files to scotchDecomp/lnInclude
+ wmakeLnInclude ptscotchDecomp
wmakeLnInclude: linking include files to ptscotchDecomp/lnInclude
+ wmake libso scotchDecomp
SOURCE=dummyScotchDecomp.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/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/parallel/decompose/decompositionMethods/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/parallel/decompose/scotchDecomp/lnInclude -IlnInclude -I. -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/dummyScotchDecomp.o
'/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib/dummy/libscotchDecomp.dylib' is up to date.
+ wmake libso ptscotchDecomp
Making dependency list for source file dummyPtscotchDecomp.C
SOURCE=dummyPtscotchDecomp.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/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/parallel/decompose/decompositionMethods/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/parallel/decompose/ptscotchDecomp/lnInclude -IlnInclude -I. -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/dummyPtscotchDecomp.o
'/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib/dummy/libptscotchDecomp.dylib' is up to date.
using SCOTCH_ARCH_PATH=/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0
+ '[' -n /Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0 ']'
+ wmake libso scotchDecomp
Making dependency list for source file scotchDecomp.C
could not open file scotch.h for source file scotchDecomp.C
SOURCE=scotchDecomp.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 -DOMPI_SKIP_MPICXX -I/usr/local/include -I/include -I/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0/include -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/scotchDecomp.o
ld: library not found for -lscotch
make: *** [/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib/libscotchDecomp.dylib] Error 1
+ '[' scotch_6.0.0 = scotch_6.0.0 ']'
+ export LINK_FLAGS=-lscotch
+ LINK_FLAGS=-lscotch
+ wmakeMpiLib ptscotchDecomp
wclean ptscotchDecomp
wmake libso ptscotchDecomp
Making dependency list for source file ptscotchDecomp.C
could not open file omp.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/constants.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/functions.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/datatype.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/exception.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/op.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/status.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/request.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/group.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/comm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/win.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/file.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/errhandler.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intracomm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/topology.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intercomm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/info.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pop_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/functions_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/request_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/comm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/topology_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/group_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/op_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/status_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/info_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/win_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/file_inln.h for source file ptscotchDecomp.C
could not open file ptscotch.h for source file ptscotchDecomp.C
SOURCE=ptscotchDecomp.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 -DOMPI_SKIP_MPICXX -I/usr/local/include -I/include -I/Users/vishalacharya/OpenFOAM/ThirdParty-2.2.x/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-system -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOptSYSTEMOPENMPI/ptscotchDecomp.o
ptscotchDecomp.C: In member function 'Foam::label Foam::ptscotchDecomp::decompose(const Foam::fileName&, int, const int*, int, const int*, const scalarField&, Foam::List<int>&) const':
ptscotchDecomp.C:551:39: warning: use of old-style cast [-Wold-style-cast]
ptscotchDecomp.C:551:39: warning: use of old-style cast [-Wold-style-cast]
ld: library not found for -lptscotch
make: *** [/Users/vishalacharya/OpenFOAM/OpenFOAM-2.2.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system/libptscotchDecomp.dylib] Error 1

Last edited by wyldckat; December 29, 2014 at 15:08. Reason: Added [CODE][/CODE]
vishalsacharya is offline   Reply With Quote

Old   December 5, 2015, 04:30
Default Installation on Mac El Capitain
  #135
New Member
 
Join Date: Apr 2013
Posts: 7
Rep Power: 5
ferra89 is on a distinguished road
Hello everyone

I'm experiencing some problems trying to install OpenFOAM 2.2.2 on MAC OS El Capitain. I followed the tutorial http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2.

I used the patch OpenFOAM-2.2.x-Mac_2014-02-17.patch but it says:
Marcos-MacBook-Pro:OpenFOAM-2.2.2 ferra_marco$ patch -p1<OpenFOAM-2.2.x-Mac_2014-02-17.patch
patching file applications/solvers/combustion/fireFoam/Make/options
patching file applications/solvers/compressible/rhoSimpleFoam/rhoSimplecFoam/Make/options
patching file applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options
patching file applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options
can't find file to patch at input line 57
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/applications/solvers/lagrangian/DPMFoam/Make/options b/applications/solvers/lagrangian/DPMFoam/Make/options
|--- a/applications/solvers/lagrangian/DPMFoam/Make/options
|+++ b/applications/solvers/lagrangian/DPMFoam/Make/options
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options
patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/icoUncoupledKinematicParcelDyMFoam/Make/options
Reversed (or previously applied) patch detected! Assume -R? [n]

and so on for other command line like that.

Instead ThirdPart patch runs without problem.

Then, if I go on the tutorial and I try to make ./Allwmake I have many errors. It seems I do not have a:
/Users/ferra_marco/OpenFOAM/OpenFOAM-2.2.2/wmake/rules/darwinIntel64Gcc46/general: No such file or directory


I enclose my log file.

I hope someone can help me.

Thanks

Marco
Attached Files
File Type: zip logName.txt.zip (11.5 KB, 0 views)
ferra89 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Problem when installing Openfoam 2.0.x with mac giovaniharyadi OpenFOAM Installation 0 March 24, 2012 19:45
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 16:28.