dealii / candi

candi - (Compile & Install) - Downloads, configures, builds and installs deal.II
GNU Lesser General Public License v3.0
63 stars 61 forks source link

Error Install Deal.ii on Apple Silicon M2 MacBook Air #392

Closed pawantakhar closed 3 months ago

pawantakhar commented 3 months ago

I have been trying to install Deal.ii on Apple Silicon M2 MacBook Air. I have successfully installed home-brew. I also tried prebuilt .dmg file for ver 9.5.0, but it is not able to compile various steps in "examples "folder.. Then I tried Candi method mentioned on deal.ii download page for Apple Silicon Macs.

When I type "brew install --cc=clang cmake open-mpi gcc@11" it gives a bunch of errors. Here are the error messages in terminal:

In file included from ../../gcc/system.h:233: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/format/formatter_bool.h:20: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:813:5: error: expected expression return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: [cp/module.o] Error 1 rm gcc.pod make[2]: [all-stage1-gcc] Error 2 make[1]: [stage1-bubble] Error 2 make: [all] Error 2

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

Do not report this issue: you are running in an unsupported configuration.

Has someone found the fix for this error?

Thanks, Pawan