CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OF 1.9 (aka OF 2.1) on Mac OS X

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

Like Tree25Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2013, 17:25
Default
  #221
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by dcrowe View Post
Has anyone tried to follow the instructions/recommends in this post and the Wiki install guide for compiling 2.1.1 on a 32-bit Mac? I'm running 10.6.8 but on old-ish hardware. I followed all the instructions, but also changed the line 'export WM_ARCH_OPTION=64' to 32 in the bashrc file. In the end, the compilation failed. That seemed to be the only obvious place where 32-bit architecture is referenced, although when installing the patches there seemed to be many "intel64gcc" messages flash across my screen.

I'm new to OpenFOAM and this is my first attempt at installing OpenFOAM on my Mac, so I apologize if this is basic knowledge that has been covered elsewhere. Thanks!
The 32 bit stuff is being carried along from old ports but hasn't been tested for a long time.

Try compiling again with this command

./Allwmake 2>&1 | tee compile.log

and then look for the first error in the compile.log
__________________
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   January 24, 2013, 17:38
Default
  #222
New Member
 
Darrell Crowe
Join Date: Jan 2013
Posts: 2
Rep Power: 0
dcrowe is on a distinguished road
Thanks for the quick reply! The first few lines of the log file seem suspect to me:

Code:
Makefile:54: /Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/general: No such file or directory
Makefile:55: /Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/c++: No such file or directory
make: *** No rule to make target `/Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/c++'.  Stop.
After this the next errors are:

Code:
configure: error: no vtf3.h found; check path for VTF3 package first...
configure: error: no BPatch.h found; check path for Dyninst package first...
configure: error: no f2c.h found; check path for CLAPACK package first...
configure: error: MPI Correctness Checking support cannot be built inside Open MPI
configure: error: no jvmti.h found; check path for JVMTI package first...
configure: error: no papi.h found; check path for PAPI package first...
configure: error: no libcpc.h found; check path for CPC package first...
configure: error: no malloc.h found
configure: error: no ctool/ctool.h found; check path for CTool package first...
configure: error: could not determine pathname of LIBC![/FONT]
Many other wmake errors follow...
dcrowe is offline   Reply With Quote

Old   January 24, 2013, 19:15
Default
  #223
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by dcrowe View Post
Thanks for the quick reply! The first few lines of the log file seem suspect to me:

Code:
Makefile:54: /Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/general: No such file or directory
Makefile:55: /Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/c++: No such file or directory
make: *** No rule to make target `/Users/darrellcrowe/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/darwinIntelGcc46/c++'.  Stop.
Obviously there is no appropriate rules-directory for 32 bit. Go to wmake/rules. Copy the directory darwinIntel64Gcc46 to darwinIntelGcc46. Then look through the files and replace -m64 with -m32

Quote:
Originally Posted by dcrowe View Post
After this the next errors are:

Code:
configure: error: no vtf3.h found; check path for VTF3 package first...
configure: error: no BPatch.h found; check path for Dyninst package first...
configure: error: no f2c.h found; check path for CLAPACK package first...
configure: error: MPI Correctness Checking support cannot be built inside Open MPI
configure: error: no jvmti.h found; check path for JVMTI package first...
configure: error: no papi.h found; check path for PAPI package first...
configure: error: no libcpc.h found; check path for CPC package first...
configure: error: no malloc.h found
configure: error: no ctool/ctool.h found; check path for CTool package first...
configure: error: could not determine pathname of LIBC![/FONT]
Many other wmake errors follow...
That seems to come from a third-party software. Either the above fix takes care of this too or I don't know what is the matter here
__________________
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   January 25, 2013, 09:06
Default New version of patch
  #224
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

As the thread is rather long I'm not sure how up-to-date the current patch is (and where it is). I'll upload the version that works for me with the current git-version (2.1.x). If you encounter problems please specify whether your version is 2.1.x or one of the releases (2.1.1 or so) and the version of the patch (the last 8 digits are the date). There are no big enhancements in the patch so if you already have a working Mac-version you'll probably want to skip this

Bernhard
Attached Files
File Type: patch OpenFOAM-2.1.x-Mac_20130125.patch (44.1 KB, 213 views)
__________________
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   January 29, 2013, 06:05
Exclamation C compiler doesnt work!!
  #225
New Member
 
Tamoghna
Join Date: Jan 2013
Posts: 2
Rep Power: 0
tmitra is on a distinguished road
Hi!

I am extremely new with OpenFOAM. I tried to follow your tutorial but got the following errors

================================================== ==========================
== Configuring Open MPI
================================================== ==========================

*** Startup tests
checking build system type... i386-apple-darwin11.4.2
checking host system type... i386-apple-darwin11.4.2
checking target system type... i386-apple-darwin11.4.2
checking for gcc... gcc-mp-4.6
checking whether the C compiler works... no
configure: error: in `/Users/tamoghna/OpenFOAM/ThirdParty-2.1.1/openmpi-1.5.3':
configure: error: C compiler cannot create executables
See `config.log' for more details.
+ make -j 1
make: *** No targets specified and no makefile found. Stop.
+ make distclean
make: *** No rule to make target `distclean'. Stop.

Please help!!
Tamoghna
tmitra is offline   Reply With Quote

Old   January 30, 2013, 21:55
Default OF 2.1.1 macport openmpi
  #226
New Member
 
Join Date: Jan 2013
Posts: 1
Rep Power: 0
manueljgr is on a distinguished road
After a couple of days I was successful compiling OF 2.1.1 on mountain lion. I follow the instructions in http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac
but I had a couple problems:

1.
The patch OpenFOAM-2.1.x-Mac_20130125.patch
which is suppose to be the last incarnation of the patch does not work. It creates a series of text files:
wmake/rules/darwinIntel64Gcc42
wmake/rules/darwinIntel64Gcc46
etc, that consist of a line with the name: darwinIntel64Gcc
then when you apply the second Gcc patch, it fails
So I applied the old patch.

2.
I used the openmpi from macports
sudo port install openmpi
so I have to change the etc/bashrc to have this
export WM_MPLIB=SYSTEMOPENMPI

However, I have to add /opt/local/lib/openmpi/bin to the path in order to resolv the problem
mpicc not found
that was described in post 102 http://www.cfd-online.com/Forums/ope...tml#post378545
manueljgr is offline   Reply With Quote

Old   January 31, 2013, 05:36
Default
  #227
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by manueljgr View Post
After a couple of days I was successful compiling OF 2.1.1 on mountain lion. I follow the instructions in http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac
but I had a couple problems:

1.
The patch OpenFOAM-2.1.x-Mac_20130125.patch
which is suppose to be the last incarnation of the patch does not work. It creates a series of text files:
wmake/rules/darwinIntel64Gcc42
wmake/rules/darwinIntel64Gcc46
etc, that consist of a line with the name: darwinIntel64Gcc
then when you apply the second Gcc patch, it fails
So I applied the old patch.
Ah. These are symbolic links to darwinIntel64Gcc. I introduced them because all compiler versions use the same settings and I saw no point in duplicating them. Will have a look at how to fix this (obviously patch doesn't create the files at symlinks). But you can easily create these symlinks yourself (or copy the complete directory)

Quote:
Originally Posted by manueljgr View Post
2.
I used the openmpi from macports
sudo port install openmpi
so I have to change the etc/bashrc to have this
export WM_MPLIB=SYSTEMOPENMPI

However, I have to add /opt/local/lib/openmpi/bin to the path in order to resolv the problem
mpicc not found
that was described in post 102 http://www.cfd-online.com/Forums/ope...tml#post378545
MacPorts adds an open to all OpenMPI-commands. So it is called openmpicc. The new patch adresses this.
__________________
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   January 31, 2013, 12:45
Default
  #228
Member
 
Jack
Join Date: Aug 2012
Posts: 47
Rep Power: 13
JackW is on a distinguished road
Hi, I have just converted to mac (love it!)

Except I need OF and I am currently getting this error:

Error: Current directory is not $WM_PROJECT_DIRThe environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

I messed up the installation first time I think adding the ulimit line to /etc/bashrc not etc/bashrc (oops), unfortunately now when I retry the installation instructions I get the above error! (It was also OF-2.1.1)

I have tried: export WM_PROJECT_DIR=OpenFOAM/OpenFOAM-2.1.0

But no luck.

Any help on this would be appreciated (just how to reset everything so I can reinstall (I have previously just tried deleting all folders and going again with no luck)

Thanks,

Jack
JackW is offline   Reply With Quote

Old   January 31, 2013, 16:21
Default
  #229
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by JackW View Post
Hi, I have just converted to mac (love it!)

Except I need OF and I am currently getting this error:

Error: Current directory is not $WM_PROJECT_DIRThe environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

I messed up the installation first time I think adding the ulimit line to /etc/bashrc not etc/bashrc (oops), unfortunately now when I retry the installation instructions I get the above error! (It was also OF-2.1.1)

I have tried: export WM_PROJECT_DIR=OpenFOAM/OpenFOAM-2.1.0

But no luck.

Any help on this would be appreciated (just how to reset everything so I can reinstall (I have previously just tried deleting all folders and going again with no luck)

Thanks,

Jack
WM_PROJECT_DIR has to be an absolute path. A relative path like yours isn't sufficient
__________________
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   January 31, 2013, 16:39
Default
  #230
Member
 
Jack
Join Date: Aug 2012
Posts: 47
Rep Power: 13
JackW is on a distinguished road
ah, ok! thank you very much (especially for speed of response).

I will try this in the office tomorrow. So just a:

export WM_PROJECT_DIR=/Volumes/OpenFOAM/OpenFOAM-2.1.0

in the terminal should override this issue?

Jack
JackW is offline   Reply With Quote

Old   February 4, 2013, 01:24
Default Error in the AllWmake Output
  #231
New Member
 
Peter Ammundsen
Join Date: Feb 2013
Posts: 1
Rep Power: 0
ammundsen is on a distinguished road
Hi

I gets a lot of errors when I run the Allwmake file. Especially Error 1 and Error 2. I have attached the output file underneath. The OS is mac OS X v 10.8.2, and gcc46 (gcc version 4.2.1).
When I type ”mpirun –V”
-bash: mpirun: command not found
But I am sure that I already have installed the MPI.
I followed the instruction as posted in.
http://openfoamwiki.net/index.php/Ho...t_Questions.3F

The bashrc file runs with no errors.

https://www.dropbox.com/s/rbn8ochl6r...ake.log.tar.gz

Best Peter
ammundsen is offline   Reply With Quote

Old   February 4, 2013, 04:15
Default
  #232
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ammundsen View Post
Hi

I gets a lot of errors when I run the Allwmake file. Especially Error 1 and Error 2. I have attached the output file underneath. The OS is mac OS X v 10.8.2, and gcc46 (gcc version 4.2.1).
When I type ”mpirun –V”
-bash: mpirun: command not found
But I am sure that I already have installed the MPI.
I followed the instruction as posted in.
http://openfoamwiki.net/index.php/Ho...t_Questions.3F

The bashrc file runs with no errors.

https://www.dropbox.com/s/rbn8ochl6r...ake.log.tar.gz

Best Peter
It has been discussed before in this thread: mpicc from MacPorts is called openmpicc (same goes for mpirun). Also see the latest patch http://www.cfd-online.com/Forums/ope...tml#post404001 (it is linked from the Wiki)
__________________
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   February 4, 2013, 08:10
Default
  #233
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 15
sda is on a distinguished road
Bernd,

I hope all is well.

Is there any news on the port of OpenFOAM V 2.1.1 to Apple OS X 10.8.2 aka Mountain Lion that we had spoken about?

Thanks.

Regards,


Saïf
sda is offline   Reply With Quote

Old   February 4, 2013, 15:48
Default
  #234
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sda View Post
Bernd,

I hope all is well.

Is there any news on the port of OpenFOAM V 2.1.1 to Apple OS X 10.8.2 aka Mountain Lion that we had spoken about?

Thanks.

Regards,


Saïf
That is the patch I'm linking to in my last posting
__________________
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   February 5, 2013, 13:30
Default
  #235
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 15
sda is on a distinguished road
Hello Bernd,

Apologies but I am a bit confused. And perhaps this is because I have not picked up the thread with the latest instructions.

Some of the instructions that I found are the same as those that I encountered when we spoke about two weeks ago. I noticed that there is a version 4.8 of the GCC available as well as well as a new version of Open MPI, Version 1.6.3.

Can you please clarify which link you are talking about because I have encountered several and they are not all saying the same thing.

Thanks for your help.

Regards,


Saïf
sda is offline   Reply With Quote

Old   February 5, 2013, 14:32
Default
  #236
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sda View Post
Hello Bernd,

Apologies but I am a bit confused. And perhaps this is because I have not picked up the thread with the latest instructions.

Some of the instructions that I found are the same as those that I encountered when we spoke about two weeks ago. I noticed that there is a version 4.8 of the GCC available as well as well as a new version of Open MPI, Version 1.6.3.

Can you please clarify which link you are talking about because I have encountered several and they are not all saying the same thing.

Thanks for your help.

Regards,


Saïf
This posting has the latest patch:
http://www.cfd-online.com/Forums/ope...tml#post404001 (it is linked from the page on the Wiki and I think the annotation "latest annotation" is pretty self-explaining).

I've been told that when applying the patch instead of creating a couple of symlinks in wmake/rules it only creates a couple of files. You'll have to recreate the appropriate symlink (for the compiler you want to use) by hand

OpenMPI: the latest is OK
GCC: I'm working with 4.5. I had some problems with 4.7 or 4.8 (can't remember) and at the time didn't have the time to investigate
__________________
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   February 8, 2013, 06:12
Default I got error when typing ./Allwmake
  #237
New Member
 
laura liu
Join Date: Feb 2013
Posts: 1
Rep Power: 0
laura55 is on a distinguished road
'/Users/$/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
make[2]: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 1
make[2]: Target `/Users/$/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam' not remade because of errors.
make[1]: *** [multiphaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [multiphase] Error 2
make: Target `application' not remade because of errors.'

I actually have a file named exactly as IOstream.H in the folder it indicated, what went wrong? Thank you!
laura55 is offline   Reply With Quote

Old   February 10, 2013, 06:51
Default
  #238
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by laura55 View Post
'/Users/$/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
make[2]: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 1
make[2]: Target `/Users/$/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam' not remade because of errors.
make[1]: *** [multiphaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [multiphase] Error 2
make: Target `application' not remade because of errors.'

I actually have a file named exactly as IOstream.H in the folder it indicated, what went wrong? Thank you!
What the error message os saying "In line 49 of IOstream.H there is a file scalar.H missing" which means IOStream.H is THERE. It is scalar.H that is missing.

The thing is: does ANYTHING compile if scalar.H is missing?

My suspicion is that you're having a case-insensitive filesystem problem because there is also a Scalar.H-file. Is it possible that you're compiling on a case-sensitive file-system but you decompressed the files on a case-insensitive file-system?
__________________
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   February 20, 2013, 17:58
Default
  #239
New Member
 
Per Jørgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14
perjorgen is on a distinguished road
Quote:
Originally Posted by gschaider View Post
What the error message os saying "In line 49 of IOstream.H there is a file scalar.H missing" which means IOStream.H is THERE. It is scalar.H that is missing.

The thing is: does ANYTHING compile if scalar.H is missing?

My suspicion is that you're having a case-insensitive filesystem problem because there is also a Scalar.H-file. Is it possible that you're compiling on a case-sensitive file-system but you decompressed the files on a case-insensitive file-system?
Hi I have another problem with multiphaseEulerFoam (maybe its related).
It appear in the linking process

Here is the error

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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport -lPstream Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o -L/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib \
-lmultiphaseSystem -lcompressibleMultiPhaseModel -linterfaceProperties -lincompressibleTransportModels -lcompressibleMultiphaseEulerianInterfacialModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -ldl -lpthread -lm -o /Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam
make[2]: `/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/twoPhaseEulerFoam' is up to date.
Undefined symbols for architecture x86_64:
"Foam::incompressible::turbulenceModel::typeNa me", referenced from:
_main in multiphaseEulerFoam.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam] Error 1
make[1]: *** [multiphaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [multiphase] Error 2
make: Target `application' not remade because of errors.
perjorgen is offline   Reply With Quote

Old   February 21, 2013, 10:15
Default
  #240
New Member
 
Per Jørgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14
perjorgen is on a distinguished road
Quote:
Originally Posted by perjorgen View Post
Hi I have another problem with multiphaseEulerFoam (maybe its related).
It appear in the linking process

Here is the error

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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/per/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-macport -lPstream Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o -L/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib \
-lmultiphaseSystem -lcompressibleMultiPhaseModel -linterfaceProperties -lincompressibleTransportModels -lcompressibleMultiphaseEulerianInterfacialModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -ldl -lpthread -lm -o /Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam
make[2]: `/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/twoPhaseEulerFoam' is up to date.
Undefined symbols for architecture x86_64:
"Foam::incompressible::turbulenceModel::typeNa me", referenced from:
_main in multiphaseEulerFoam.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/per/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam] Error 1
make[1]: *** [multiphaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [multiphase] Error 2
make: Target `application' not remade because of errors.
I found the error: The Make/options has been changed so the patch was rejected
I manually added the necessary link files and it worked
perjorgen is offline   Reply With Quote

Reply

Tags
compilation error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extend Project 1.6-ext Binary Release for Mac OS X hjasak OpenFOAM Announcements from Other Sources 26 November 5, 2013 17:50
Openfoam mac: Compiling custom libraries atareen64 OpenFOAM 3 April 14, 2011 12:01
OpenFOAM-1.6 on Mac OS X 10.6.1 elvisjohndowson OpenFOAM 6 October 21, 2009 16:45
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 08:46
MAC + SOLA for free surface T Main CFD Forum 1 April 11, 2001 14:43


All times are GMT -4. The time now is 00:32.