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 Community New Posts Updated Threads Search

Like Tree25Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2013, 05:18
Default
  #201
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Robm,

Thanks for your quick reply.
I checked my typeinfo file and I have the exact same lines as you. Which lines shall I try to delete?

Kind regards
adventicemj is offline   Reply With Quote

Old   January 5, 2013, 18:41
Default
  #202
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 adventicemj View Post
Hi Robm,

Thanks for your quick reply.
I checked my typeinfo file and I have the exact same lines as you. Which lines shall I try to delete?

Kind regards
None. This file shouldn't be modified if you're not a member of the gcc-dev-team. I don't have gcc46, but in my gcc47 and gcc45 the line the compiler complains about in your examle (line 42) is different, so I can't say what the problem is. Anyway. As this seems to be a problem of the compilation it's be useful to see the compiler call. Go to the solver-directory with

cd $FOAM_SOLVERS/multiphase/multiphaseEulerFoam

and there compile with

wmake

Then copy the start of the output here (the whole if it is not too much)
__________________
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 6, 2013, 05:29
Default
  #203
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,
Please find below the output error from wmake in multiphaseEulerFoam:

Quote:
SOURCE=multiphaseEulerFoam.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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o
/bin/sh: g++-mp-4.6: command not found
make: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 127
Kind regards.
adventicemj is offline   Reply With Quote

Old   January 6, 2013, 07:01
Default
  #204
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 adventicemj View Post
Hi Bernhard,
Please find below the output error from wmake in multiphaseEulerFoam:
You changed your system in the mean time, right? Because now it doesn't find the compiler at all (and your first posting indicated that there was something wrong with your gcc 4.6 from MacPorts). Have you removed that compiler from MacPorts or is MacPorts (/opt/local/bin) not in your PATH?

BTW: please use the CODE-tag for output not the QUOTE. CODE has several advantages. One being that it is not automatically removed when replying
__________________
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 6, 2013, 12:03
Default
  #205
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,

I started the installation again from scratch to make sure that I had not altered the system.
MacPorts seems to be working fine as I tested it using 'sudo port selfupdate' (Step 1.4 wiki page).
I still have the same error message as I originally posted. However, I had forgotten to run the patch for the ThirdParty. I just did so and I got the following error:
Code:
new-host:ThirdParty-2.1.1 marionjames$ patch -p1 <ThirdParty-2.1.0-Mac.patch 
patching file Allwmake
patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM
patching file scotch_5.1.11/src/Makefile.inc
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej
Could this be where the problem originally comes from?

Kind regards.
adventicemj is offline   Reply With Quote

Old   January 6, 2013, 16:26
Default
  #206
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 adventicemj View Post
Hi Bernhard,

I started the installation again from scratch to make sure that I had not altered the system.
MacPorts seems to be working fine as I tested it using 'sudo port selfupdate' (Step 1.4 wiki page).
I still have the same error message as I originally posted. However, I had forgotten to run the patch for the ThirdParty. I just did so and I got the following error:
Code:
new-host:ThirdParty-2.1.1 marionjames$ patch -p1 <ThirdParty-2.1.0-Mac.patch 
patching file Allwmake
patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM
patching file scotch_5.1.11/src/Makefile.inc
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej
Could this be where the problem originally comes from?
No.

"I still have the same error message as I originally posted": you mean: you reinstalled gcc-mp-46 (because according to your last post it is missing) and now you have the orignal error message. Could you NOW please post the problem you have when compiling that solver?
__________________
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 6, 2013, 16:53
Default
  #207
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,

Please find below the start of the output from wmake in multiphaseEulerFoam:

Code:
new-host:multiphaseEulerFoam marionjames$ wmake
SOURCE=multiphaseEulerFoam.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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o
In file included from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/wchar.h:42:0,
                 from /opt/local/include/gcc46/c++/cwchar:46,
                 from /opt/local/include/gcc46/c++/bits/postypes.h:42,
                 from /opt/local/include/gcc46/c++/bits/char_traits.h:42,
                 from /opt/local/include/gcc46/c++/string:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/string.H:51,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/word.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/int.H:39,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/label.H:61,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:47,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/parRun.H:35,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from multiphaseEulerFoam.C:33:
/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
Kind regards.
adventicemj is offline   Reply With Quote

Old   January 6, 2013, 19:01
Default
  #208
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 adventicemj View Post
Hi Bernhard,

Please find below the start of the output from wmake in multiphaseEulerFoam:

Code:
new-host:multiphaseEulerFoam marionjames$ wmake
SOURCE=multiphaseEulerFoam.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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o
In file included from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/wchar.h:42:0,
                 from /opt/local/include/gcc46/c++/cwchar:46,
                 from /opt/local/include/gcc46/c++/bits/postypes.h:42,
                 from /opt/local/include/gcc46/c++/bits/char_traits.h:42,
                 from /opt/local/include/gcc46/c++/string:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/string.H:51,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/word.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/int.H:39,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/label.H:61,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:47,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/parRun.H:35,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from multiphaseEulerFoam.C:33:
/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
Kind regards.
Aaaah.

/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/wchar.h

The file should be named wchar.H ... the compiler used it instead of the system wchar.h and got confused

Either you're not working on a case-sensitive file-system or the OF-sources were extracted (or copied over) such a 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   January 7, 2013, 04:55
Default
  #209
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,

Thanks! I changed the file system to be case sensitive.
However I now have the following errors:

1 - When applying first patch (half way through the output):

Code:
patching file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options
patching file applications/utilities/postProcessing/turbulence/R/Make/options
Hunk #1 FAILED at 5.
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
I read on earlier posts that Hunk was not a problem, is it correct?

2 - When compiling OpenFOAM

Code:
from multiphaseEulerFoam.C:33:
/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
There are plenty of other similar errors for other solvers, the one above is just at the end.

3 - When compiling multiphaseEulerFoam

Code:
new-host:multiphaseEulerFoam marionjames$ wmake
SOURCE=multiphaseEulerFoam.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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o
In file included from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Ostream.H:39:0,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/OSstream.H:40,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/messageStream.H:211,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/error.H:51,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UListI.H:26,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.H:365,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:48,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/parRun.H:35,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from multiphaseEulerFoam.C:33:
/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
make: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 1
The error seems to be coming from scalar.H. I checked in lnInclude and indeed only Scalar.H was there. If I try to rename it scalar.H, then it is the same error with vector.H missing and so on... Would you please have any other suggestions?

Kind regards.
adventicemj is offline   Reply With Quote

Old   January 7, 2013, 05:25
Default
  #210
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 adventicemj View Post
Hi Bernhard,

Thanks! I changed the file system to be case sensitive.
However I now have the following errors:

1 - When applying first patch (half way through the output):

Code:
patching file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options
patching file applications/utilities/postProcessing/turbulence/R/Make/options
Hunk #1 FAILED at 5.
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
I read on earlier posts that Hunk was not a problem, is it correct?

2 - When compiling OpenFOAM

Code:
from multiphaseEulerFoam.C:33:
/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
There are plenty of other similar errors for other solvers, the one above is just at the end.

3 - When compiling multiphaseEulerFoam

Code:
new-host:multiphaseEulerFoam marionjames$ wmake
SOURCE=multiphaseEulerFoam.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 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/LESModel -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o
In file included from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Ostream.H:39:0,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/OSstream.H:40,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/messageStream.H:211,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/error.H:51,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UListI.H:26,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.H:365,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:48,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/parRun.H:35,
                 from /Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from multiphaseEulerFoam.C:33:
/Users/marionjames/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:49:20: fatal error: scalar.H: No such file or directory
compilation terminated.
make: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 1
The error seems to be coming from scalar.H. I checked in lnInclude and indeed only Scalar.H was there. If I try to rename it scalar.H, then it is the same error with vector.H missing and so on... Would you please have any other suggestions?

Kind regards.
The problem is that there is a scalar.H and a Scalar.H. One of them went missing during the adventures of your sources tree on various file-systems.
__________________
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 7, 2013, 06:04
Default
  #211
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,

I downloaded the tar source pack for OpenFOAM-2.1.1 from http://openfoam.org/download/source.php. Then, I just extracted it and checked in src/OpenFOAM/lnlnclude and there is only Scalar.H is the folder.
There isn't much I can do about that... Is there somewhere else I can download the source pack from?
Kind regards.
adventicemj is offline   Reply With Quote

Old   January 7, 2013, 12:12
Default
  #212
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 adventicemj View Post
Hi Bernhard,

I downloaded the tar source pack for OpenFOAM-2.1.1 from http://openfoam.org/download/source.php. Then, I just extracted it and checked in src/OpenFOAM/lnlnclude and there is only Scalar.H is the folder.
There isn't much I can do about that... Is there somewhere else I can download the source pack from?
Kind regards.
You're extracting it where? In the Downloads-Folder? That is probably on a case-insensitive filesystem and the scalar gets lost. Check the tar with

tar tzf OpenFOAM_blabla.tgz | grep -i scalar.H

you will see that both files are there
__________________
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 7, 2013, 15:48
Default
  #213
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,
Indeed I was extracting the Download folder. The compilation of OpenFOAM seemed to have worked just fine now, many thanks!

However, I still can't use it...

I added the following line in the ~/.bashrc
Code:
alias of211='hdiutil attach "/Users/marionjames/OpenFOAM-2.1.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'
when I type in: of211, I get the error:
Code:
hdiutil: attach failed - No such file or directory
Kind regards.
adventicemj is offline   Reply With Quote

Old   January 7, 2013, 15:58
Default
  #214
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 adventicemj View Post
Hi Bernhard,
Indeed I was extracting the Download folder. The compilation of OpenFOAM seemed to have worked just fine now, many thanks!

However, I still can't use it...

I added the following line in the ~/.bashrc
Code:
alias of211='hdiutil attach "/Users/marionjames/OpenFOAM-2.1.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'
when I type in: of211, I get the error:
Code:
hdiutil: attach failed - No such file or directory
Kind regards.
Your name is marionjames? (otherwise modify the example accordingly). Have a look with

ls /Users/marionjames/OpenFOAM-2.1.dmg $HOME/OpenFOAM

which of the two relevant objects is missing (I don't use that alias as the first thing I do with a new Mac is repartition to have case-sensitve partition for OF. So that is all the help I can give you there)
__________________
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 7, 2013, 16:13
Default
  #215
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Hi Bernhard,

Although I had made an error with the name of the disk image (OpenFOAM-v2.1), the first subject is still missing. Maybe the following lines will help... Otherwise thank you very much with all your help, it is very much appreciated.

Code:
new-host:~ marionjames$ ls -lah
total 104
drwxr-xr-x+ 26 marionjames  staff   884B  7 Jan 20:41 .
drwxr-xr-x   6 root         admin   204B 18 Dec 18:29 ..
-rw-------   1 marionjames  staff     3B 18 Dec 18:50 .CFUserTextEncoding
-rw-r--r--@  1 marionjames  staff    15K  7 Jan 17:14 .DS_Store
drwxr-xr-x   3 marionjames  staff   102B  6 Jan 21:42 .OpenFOAM
drwx------  35 marionjames  staff   1.2K  7 Jan 20:32 .Trash
-rw-------   1 marionjames  staff   9.0K  7 Jan 20:49 .bash_history
-rw-r--r--@  1 marionjames  staff   757B  7 Jan 20:39 .bash_profile
-rw-r--r--@  1 marionjames  staff    72B  5 Jan 14:29 .bash_profile.macports-saved_2013-01-06_at_14:33:39
-rw-r--r--@  1 marionjames  staff   187B  7 Jan 20:41 .bashrc
drwxr-xr-x   4 marionjames  staff   136B  7 Jan 20:24 .config
-rw-r--r--   1 marionjames  staff   241B 31 Dec 19:17 .profile
drwx------   3 marionjames  staff   102B  5 Jan 14:14 .ssh
-rw-r--r--   1 marionjames  staff     0B  7 Jan 07:56 ABC1
drwx------+  4 marionjames  staff   136B  7 Jan 14:49 Desktop
drwx------+ 14 marionjames  staff   476B  7 Jan 09:04 Documents
drwx------+ 12 marionjames  staff   408B  7 Jan 20:23 Downloads
drwx------@ 48 marionjames  staff   1.6K  7 Jan 08:59 Library
drwx------+  7 marionjames  staff   238B  3 Jan 08:31 Movies
drwx------+  6 marionjames  staff   204B 31 Dec 11:31 Music
lrwxr-xr-x   1 marionjames  staff    23B  6 Jan 21:31 OpenFOAM -> /Volumes/OpenFOAM-v2.1/
drwx------+  8 marionjames  staff   272B  4 Jan 18:58 Pictures
drwxr-xr-x+  4 marionjames  staff   136B 18 Dec 18:50 Public
drwxrwxr-x   9 marionjames  staff   306B  7 Jan 15:12 Ubuntu One
-rw-r--r--   1 marionjames  staff     0B  7 Jan 07:56 abc2
-rw-r--r--   1 marionjames  staff    45B  6 Jan 14:49 make.log
Kind regards.
adventicemj is offline   Reply With Quote

Old   January 7, 2013, 20:14
Default
  #216
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 adventicemj View Post
Hi Bernhard,

Although I had made an error with the name of the disk image (OpenFOAM-v2.1), the first subject is still missing. Maybe the following lines will help... Otherwise thank you very much with all your help, it is very much appreciated.

Code:
new-host:~ marionjames$ ls -lah
total 104
drwxr-xr-x+ 26 marionjames  staff   884B  7 Jan 20:41 .
drwxr-xr-x   6 root         admin   204B 18 Dec 18:29 ..
-rw-------   1 marionjames  staff     3B 18 Dec 18:50 .CFUserTextEncoding
-rw-r--r--@  1 marionjames  staff    15K  7 Jan 17:14 .DS_Store
drwxr-xr-x   3 marionjames  staff   102B  6 Jan 21:42 .OpenFOAM
drwx------  35 marionjames  staff   1.2K  7 Jan 20:32 .Trash
-rw-------   1 marionjames  staff   9.0K  7 Jan 20:49 .bash_history
-rw-r--r--@  1 marionjames  staff   757B  7 Jan 20:39 .bash_profile
-rw-r--r--@  1 marionjames  staff    72B  5 Jan 14:29 .bash_profile.macports-saved_2013-01-06_at_14:33:39
-rw-r--r--@  1 marionjames  staff   187B  7 Jan 20:41 .bashrc
drwxr-xr-x   4 marionjames  staff   136B  7 Jan 20:24 .config
-rw-r--r--   1 marionjames  staff   241B 31 Dec 19:17 .profile
drwx------   3 marionjames  staff   102B  5 Jan 14:14 .ssh
-rw-r--r--   1 marionjames  staff     0B  7 Jan 07:56 ABC1
drwx------+  4 marionjames  staff   136B  7 Jan 14:49 Desktop
drwx------+ 14 marionjames  staff   476B  7 Jan 09:04 Documents
drwx------+ 12 marionjames  staff   408B  7 Jan 20:23 Downloads
drwx------@ 48 marionjames  staff   1.6K  7 Jan 08:59 Library
drwx------+  7 marionjames  staff   238B  3 Jan 08:31 Movies
drwx------+  6 marionjames  staff   204B 31 Dec 11:31 Music
lrwxr-xr-x   1 marionjames  staff    23B  6 Jan 21:31 OpenFOAM -> /Volumes/OpenFOAM-v2.1/
drwx------+  8 marionjames  staff   272B  4 Jan 18:58 Pictures
drwxr-xr-x+  4 marionjames  staff   136B 18 Dec 18:50 Public
drwxrwxr-x   9 marionjames  staff   306B  7 Jan 15:12 Ubuntu One
-rw-r--r--   1 marionjames  staff     0B  7 Jan 07:56 abc2
-rw-r--r--   1 marionjames  staff    45B  6 Jan 14:49 make.log
Kind regards.
I think there is a mixup of two sets of instructions. Usually hdiutil mounts an image into /Volumes. That's why you have the symbolic link OpenFOAM in your $HOME. The alias you mentioned mounts it onto the path specified by -mountpoint ... which is a symbolic link ... to a directory that is not yet there. So I think for that alias to work you've got to remove the symlink and create a directory of the same name ... or remove the mountpoint-option from the alias
__________________
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 9, 2013, 05:02
Default
  #217
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Thanks! I can now run a case, except I still can't post-process in Paraview.
In the openfoam wiki page, it says to add the two following lines in the ~/. alias file but I don't have this file.

Quote:
alias paraview="/Applications/ParaView\ 3.14.0-RC2.app/Contents/MacOS/paraview"
alias parax="touch case.foam && paraview --data=case.foam &"
Shall I add it to the OpenFOAM bashrc or create the alias file?

Kind regards.
adventicemj is offline   Reply With Quote

Old   January 9, 2013, 08:12
Default
  #218
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 adventicemj View Post
Thanks! I can now run a case, except I still can't post-process in Paraview.
In the openfoam wiki page, it says to add the two following lines in the ~/. alias file but I don't have this file.



Shall I add it to the OpenFOAM bashrc or create the alias file?

Kind regards.
The exact path depends on the version of paraview you have installed. Best try on the command line with "/Applications/Paraview<tab>" (<tab> means "use the path-completion of the shell)

BTW: when entering code-snipplets use the CODE-tag not QUOTE
__________________
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 9, 2013, 08:19
Default
  #219
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 13
adventicemj is on a distinguished road
Sure, I changed the path to:

Code:
alias paraview='open -a /Applications/paraview.app'
alias parax="touch case.foam && paraview --data=case.foam &"
but the question is where to add these lines as I can't find the ~/.alias file?

Kind regards.
adventicemj is offline   Reply With Quote

Old   January 24, 2013, 15:51
Default 32-bit Mac Support?
  #220
New Member
 
Darrell Crowe
Join Date: Jan 2013
Posts: 2
Rep Power: 0
dcrowe is on a distinguished road
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!
dcrowe is offline   Reply With Quote

Reply

Tags
compilation error


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 01:41.