|
[Sponsors] |
January 24, 2013, 17:25 |
|
#221 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
January 24, 2013, 17:38 |
|
#222 |
New Member
Darrell Crowe
Join Date: Jan 2013
Posts: 2
Rep Power: 0 |
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. 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] |
|
January 24, 2013, 19:15 |
|
#223 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 25, 2013, 09:06 |
New version of patch
|
#224 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
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 29, 2013, 06:05 |
C compiler doesnt work!!
|
#225 |
New Member
Tamoghna
Join Date: Jan 2013
Posts: 2
Rep Power: 0 |
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 |
|
January 30, 2013, 21:55 |
OF 2.1.1 macport openmpi
|
#226 |
New Member
Join Date: Jan 2013
Posts: 1
Rep Power: 0 |
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 |
|
January 31, 2013, 05:36 |
|
#227 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 31, 2013, 12:45 |
|
#228 |
Member
Jack
Join Date: Aug 2012
Posts: 47
Rep Power: 14 |
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 |
|
January 31, 2013, 16:21 |
|
#229 | |
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 31, 2013, 16:39 |
|
#230 |
Member
Jack
Join Date: Aug 2012
Posts: 47
Rep Power: 14 |
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 |
|
February 4, 2013, 01:24 |
Error in the AllWmake Output
|
#231 |
New Member
Peter Ammundsen
Join Date: Feb 2013
Posts: 1
Rep Power: 0 |
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 |
|
February 4, 2013, 04:15 |
|
#232 | |
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 |
||
February 4, 2013, 08:10 |
|
#233 |
New Member
Join Date: Apr 2010
Posts: 16
Rep Power: 16 |
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 |
|
February 4, 2013, 15:48 |
|
#234 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
February 5, 2013, 13:30 |
|
#235 |
New Member
Join Date: Apr 2010
Posts: 16
Rep Power: 16 |
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 |
|
February 5, 2013, 14:32 |
|
#236 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
February 8, 2013, 06:12 |
I got error when typing ./Allwmake
|
#237 |
New Member
laura liu
Join Date: Feb 2013
Posts: 1
Rep Power: 0 |
'/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! |
|
February 10, 2013, 06:51 |
|
#238 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
February 20, 2013, 17:58 |
|
#239 | |
New Member
Per Jørgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14 |
Quote:
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. |
||
February 21, 2013, 10:15 |
|
#240 | |
New Member
Per Jørgensen
Join Date: Mar 2012
Posts: 20
Rep Power: 14 |
Quote:
I manually added the necessary link files and it worked |
||
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 |