Hi Diya,

welcome to the Dumux mailing list.

I haven’t tried compiling Dumux on an M1 mac. Thanks for trying. I can give it 
a try myself in the following weak.
Until then, I assume some compiler flag makes it choke. Probably 
“-march=native” which might not be supported yet on M1.

You find the options in the “.opts” file you pass to dunecontrol. I assume you 
used dumux/cmake.opts.
In that case copy that file e.g. in the top folder were you have all your Dune 
modules:
* cp dumux/cmake.opts mycmake.opts
* remove the line -march=native in mycmake.opts
* remove all build folders (assuming you don’t have anything important in the 
build folders and standard configuration: "rm -r d*/build-cmake” should work)
* alternatively remove all CMakeCache.txt and CMakeFiles directories in the 
build-cmake folders
* alternatively start from a fresh folder and clone all Dune/Dumux modules you 
want
* then run dunecontrol --opts=mycmake.opts all

Let us know if this works.

Best wishes
Timo

> On 2. Dec 2021, at 12:31, kumbh...@hsu-hh.de wrote:
> 
> Dear Dumux users,
> 
> I am trying to build and execute the 1p rotation symmetry example. Running 
> the make command results in an error where the target CPU is unknown (error 
> snippet attached).
> 
> Attempts to build and execute the basic 1p, 2p tests also results in the same 
> error.
> 
> Here are further details:
> 
> Dumux Version: 3.4.0
> Dune Version: 2.8.0
> Apple Clang version: 13.0.0
> Cmake version : 3.21.4
> Laptop: MacBook Pro - M1 pro chip - macOS Monterey
> 
> Is there a possible solution for this so that I can compile and run the 
> tests/examples successfully?
> 
> Any help will be hugely appreciated. Thank you in advance for your time!
> 
> Best,
> Diya 
> Kumhat<unknown_target_error.png>_______________________________________________
> DuMux mailing list
> DuMux@listserv.uni-stuttgart.de
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

_______________________________________________
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to