Compiler toolchains for mixed-language projects (C++/Fortran) #6688
Replies: 2 comments 9 replies
-
|
The current recommendation and Homebrew practice is to use the system compilers for C and C++ (from Apple's clang) and GNU Fortran as Fortran compiler. We do not think that Flang is production-ready yet, although we would be happy to revisit the issue in a future version, provided that it can build all of our Fortran software: we would need to switch our entire dependency tree as a coordinated move. |
Beta Was this translation helpful? Give feedback.
-
|
I have a working setup now, for the moment PETSc is installed manually (not via homebrew). I only install To get this to work, two hacks are needed and I was wondering whether I do something wrong or, if not, whether homebrew can be improved to get a working setup out of the box:
Note that I use homebrew on GitHub actions via gerlero/brew-install because I don't have a mac for testing (yet). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering whether the homebrew team has any recommendations for projects that use C++ and Fortran and rely on dependencies that are build with different compiler toolchains (LLVM vs GNU).
Some background: I'm part of the DAMASK team that provides the damask-grid formula/bottle. So far, all dependencies use the GNU toolchain. Recently, we started using boost, which is build on homebrew with clang++ from the LLMV toolchain. Note that Boost is mainly header-only, but some libraries are actually compiled during installation.
Now, we (in particular @eisenlohr) are not able to use homebrew for DAMASK due to
ISO_Fortran_binding.hof LLVM is not what gfortran expects)Besides concrete help for my situation, it would be interesting to know whether there is a long-term vision for the handling of different compiler toolchains:
Beta Was this translation helpful? Give feedback.
All reactions