|
[Sponsors] |
January 5, 2013, 05:18 |
|
#201 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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 |
|
January 5, 2013, 18:41 |
|
#202 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 6, 2013, 05:29 |
|
#203 | |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Hi Bernhard,
Please find below the output error from wmake in multiphaseEulerFoam: Quote:
|
||
January 6, 2013, 07:01 |
|
#204 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 6, 2013, 12:03 |
|
#205 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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 Kind regards. |
|
January 6, 2013, 16:26 |
|
#206 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
"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 |
||
January 6, 2013, 16:53 |
|
#207 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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 |
|
January 6, 2013, 19:01 |
|
#208 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
/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 |
||
January 7, 2013, 04:55 |
|
#209 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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 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. 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 Kind regards. |
|
January 7, 2013, 05:25 |
|
#210 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
||
January 7, 2013, 06:04 |
|
#211 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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. |
|
January 7, 2013, 12:12 |
|
#212 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 7, 2013, 15:48 |
|
#213 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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' Code:
hdiutil: attach failed - No such file or directory |
|
January 7, 2013, 15:58 |
|
#214 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 7, 2013, 16:13 |
|
#215 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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 |
|
January 7, 2013, 20:14 |
|
#216 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
||
January 9, 2013, 05:02 |
|
#217 | |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
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:
Kind regards. |
||
January 9, 2013, 08:12 |
|
#218 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 9, 2013, 08:19 |
|
#219 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Sure, I changed the path to:
Code:
alias paraview='open -a /Applications/paraview.app' alias parax="touch case.foam && paraview --data=case.foam &" Kind regards. |
|
January 24, 2013, 15:51 |
32-bit Mac Support?
|
#220 |
New Member
Darrell Crowe
Join Date: Jan 2013
Posts: 2
Rep Power: 0 |
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! |
|
Tags |
compilation error |
|
|
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 |