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] Patches to compile OpenFOAM 2.2 on Mac OS X (https://www.cfd-online.com/Forums/openfoam-installation/114265-patches-compile-openfoam-2-2-mac-os-x.html)

bweeks March 9, 2014 20:49

I'm doing an installation of OF2.2.2 using the Source Pack, downloaded from here.

gschaider March 10, 2014 14:25

Quote:

Originally Posted by bweeks (Post 479053)
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)

lithos March 17, 2014 06:31

Problems with 2.2.x latest built
 
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 (Post 475723)
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. -.-

gschaider March 19, 2014 18:03

Quote:

Originally Posted by lithos (Post 480438)

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")

lithos March 20, 2014 05:21

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 (Post 480973)
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")


gschaider March 20, 2014 14:11

Quote:

Originally Posted by lithos (Post 481055)
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 (Post 481055)
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 (Post 481055)
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)?

lithos March 24, 2014 10:51

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 (Post 481159)
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)?


gschaider March 25, 2014 10:01

Quote:

Originally Posted by lithos (Post 481799)
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"

lithos March 30, 2014 15:56

Quote:

Originally Posted by gschaider (Post 482035)
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 :-)

malfrienz April 12, 2014 07:30

makefile for scotch
 
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

gschaider April 14, 2014 19:32

Quote:

Originally Posted by malfrienz (Post 485645)
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

malfrienz April 14, 2014 20:22

Quote:

Originally Posted by gschaider (Post 486127)
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

gschaider April 24, 2014 18:37

Quote:

Originally Posted by malfrienz (Post 486132)
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 ...")

vishalsacharya December 29, 2014 01:40

scotch compilation issues after using the latest full patch (2014-02-17 version)
 
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


ferra89 December 5, 2015 03:30

Installation on Mac El Capitain
 
1 Attachment(s)
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

Mahe512 October 10, 2017 17:18

Installing openfoam 2.0 in macbook showing error
 
hai friends,

I would like to install openfoam 2.0 in mac.
While installing i got the error that i mentioned below.
Anyone can give the idea or link to solve the error is helpful for me.


./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.


Thanks in advance.

rdbisme October 10, 2017 17:25

Quote:

Originally Posted by Mahe512 (Post 667293)
hai friends,

I would like to install openfoam 2.0 in mac.
While installing i got the error that i mentioned below.
Anyone can give the idea or link to solve the error is helpful for me.


./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.


Thanks in advance.

The problem (and the solution) is self explaining. Your environment variables are not correctly configured. Did you correctly sourced the etc/bashrc file?


All times are GMT -4. The time now is 19:37.