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

[OpenFOAM.com] Install v2006 on macOS Mojave failed

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2021, 07:02
Default
  #21
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by federico.carminati View Post
Did you delete all your previous tries from disk? Best
I thought I did it, I deleted the openFoam's folders I've created before, and the old images... Maybe it's not enough.

Is there a command to clear evertihing in order to restart from the beginning?
Miguel Hernandez is offline   Reply With Quote

Old   September 25, 2021, 06:30
Default
  #22
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by federico.carminati View Post
Did you delete all your previous tries from disk? Best
Could my difficulties related to the M1 processor which is Arm and not x86?
Miguel Hernandez is offline   Reply With Quote

Old   October 9, 2021, 05:49
Default
  #23
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Miguel Hernandez View Post
Thank you! To be honest, is too difficult to me... i’ve tried several times, but nothing....

I found that docker for M1 SoC works, but openFoam image is always emulated, and so is very very slow...

I don’t know what to do....
The emulation mode indeed is pretty slow since the dockerhub images are x86_64 Ubuntu. Supporting Arm64 Ubuntu is a bit of a problem (painfully slow package builds), but you can easily create your own local docker image fairly quickly.

We supply all of the docker files and resource files here:
https://develop.openfoam.com/packaging/containers

You will want to create an image using the openSUSE packages. This is described in the corresponding file
https://develop.openfoam.com/packagi...eap-Dockerfile

After running docker build on this, you can either tag it with the "opencfd/.." prefix so that the openfoam-docker script finds it, or run the openfoam-docker with -image=<your-image>
olesen is offline   Reply With Quote

Old   October 10, 2021, 15:21
Default
  #24
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by olesen View Post
The emulation mode indeed is pretty slow since the dockerhub images are x86_64 Ubuntu. Supporting Arm64 Ubuntu is a bit of a problem (painfully slow package builds), but you can easily create your own local docker image fairly quickly.



We supply all of the docker files and resource files here:

https://develop.openfoam.com/packaging/containers



You will want to create an image using the openSUSE packages. This is described in the corresponding file

https://develop.openfoam.com/packagi...eap-Dockerfile



After running docker build on this, you can either tag it with the "opencfd/.." prefix so that the openfoam-docker script finds it, or run the openfoam-docker with -image=<your-image>


Thank you Olsen, i did what you suggested... it works much better! Thanks
Miguel Hernandez is offline   Reply With Quote

Old   October 17, 2021, 20:22
Default
  #25
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 13
LongGe is on a distinguished road
Hello All

The reason for this error is that "feexceptErsatz.H" refers to the x86_64 structure of fenv.h. "feexceptErsatz.H" needs to be rewritten so that it uses the arm64 structure.

Here is how I built it, for your reference.

https://ttsyshmz.github.io/howtoFoam...2106-on-m1mac/
olesen likes this.
LongGe is offline   Reply With Quote

Old   October 18, 2021, 02:51
Default
  #26
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Quote:
Originally Posted by federico.carminati View Post
Did you delete all your previous tries from disk? Best
Hi Federico, yes I did...

But, is your Mac equipped with an M1 SoC or with a x86 cpu?

In another post, a forum member suggested this:

"You'll need to remove the sigfpe part(seems like Apple silicon doesn't support this feature?) then it should compile.
https://github.com/mrklein/openfoam-...ment-850090915 "

But I don't know exactly what this means...
Miguel Hernandez is offline   Reply With Quote

Old   October 18, 2021, 03:12
Default
  #27
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by LongGe View Post
Hello All

The reason for this error is that "feexceptErsatz.H" refers to the x86_64 structure of fenv.h. "feexceptErsatz.H" needs to be rewritten so that it uses the arm64 structure.

Here is how I built it, for your reference.

https://ttsyshmz.github.io/howtoFoam...2106-on-m1mac/
Nice! I have added a corresponding issue for updating the upstream.
olesen is offline   Reply With Quote

Old   October 22, 2021, 16:05
Default
  #28
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Following the wonderful advice of LongGe and Federico, I managed to install OpenFoam-v2106 on Mac M1!

In a final step, I need to define LD_LIBRARY_PATH to set the path to the third party libraries. How do I do so?

Thx!
dlahaye is offline   Reply With Quote

Old   October 24, 2021, 09:00
Default
  #29
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Update:

Various of the third party packages fail compile with Clang version 12.0 on Darwin. I failed to see this earlier. (Switch to gcc on Darwin is not supported).

E.g. scotch fails to compile due to the gettimneoftheday function being implicitly declared in src/libskotch/conmon.c. I was not yet able to turn this error of using -Wno-error=implicit-function-declaration.

Kahip fails due to the compiler not finding misc/omp.h . I was not yet able to extern the include directory with this path.

Metis does compile after manual download and installation of cmake using brew.

I am currently trying to run decomposePar using Metis. After installation LD_LIBRARY_PATH remains empty. Setting LD_LIBRARY_PATH manually does not cure the issue.
dlahaye is offline   Reply With Quote

Old   October 24, 2021, 17:23
Default
  #30
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 13
LongGe is on a distinguished road
Hello All

In my case, I installed the third party with brew. As described here.

https://github.com/mrklein/openfoam-...ster/README.md
LongGe is offline   Reply With Quote

Old   October 25, 2021, 03:20
Default
  #31
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Further updates:

(1/3): good news: I managed to install Cmake using brew, to download Metis from the repository, to install Metis, to set DYLD_LIBRARY_PATH (observe MAC-OS convention) manually and to run decomposePar to obtain a decomposition. So far, so good.

(2/3): first question: A parallel run of simpleFoam fails, that is, "mpirun -np 4 simpleFoam -parallel" returns with "The dummy Pstream library cannot be used in parallel mode". The same issue however was however reported e.g. here https://develop.openfoam.com/Develop.../-/issues/1970. Will need to give it a look.

(3/3): second question: the compilation of the third party mesher cfMesh using Clang fails. I will give specifics in a next update.

Last edited by dlahaye; October 25, 2021 at 03:27. Reason: Added info
dlahaye is offline   Reply With Quote

Reply


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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 03:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 15:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 09:54
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 20:03.