compilers PortGroup
David Strubbe
dstrubbe at macports.org
Sun Jul 3 19:50:30 UTC 2022
Hello Mark,
I think you may have a basic misunderstanding here. The compilers portgroup
provides variants that select compilers, rather than being a way to select
the compiler in the portfile. It will provide gcc/gfortran (in specific
versions). If something like clang doesn't work, you remove it from the
variants list. "active_variants" is about compatibility of compilers used
by dependences. As far as I know, variants are definitely still the
recommended way of handling compiler selection. I suggest you look at some
examples to see how to use compilers portgroup. I made many in the science
category, such as octopus, sparskit, berkeleygw, libxc.
David
On Sat, Jul 2, 2022 at 4:20 PM Mark Brethen <mark.brethen at gmail.com> wrote:
> This port does not have config, so I’m having to pass the build args. How
> do I specify a gcc (gfortran) compiler? Clang doesn’t work.
>
> Thanks,
> Mark
>
>
>
> > On Jul 2, 2022, at 2:21 PM, Mark Brethen <mark.brethen at gmail.com> wrote:
> >
> > Still not working…
> > <main.log>
> >
> >
> > Mark Brethen
> > mark.brethen at gmail.com
> >
> >
> >
> >> On Jul 2, 2022, at 2:15 PM, Mark Brethen <mark.brethen at gmail.com>
> wrote:
> >>
> >> I should have looked at the active-variants tcl:
> >>
> >> require_active_variants arpack accelerate mpich
> >>
> >> should be
> >>
> >> require_active_variants arpack "accelerate mpich"
> >>
> >> Mark Brethen
> >> mark.brethen at gmail.com
> >>
> >>
> >>
> >>> On Jul 2, 2022, at 1:48 PM, Mark Brethen <mark.brethen at gmail.com>
> wrote:
> >>>
> >>> Attaching log
> >>> <main.log>
> >>>
> >>> Mark
> >>>
> >>>
> >>>
> >>>> On Jul 2, 2022, at 9:22 AM, Mark Brethen <mark.brethen at gmail.com>
> wrote:
> >>>>
> >>>> I looked at the compilers PortGroup tcl but can’t figure out how to
> set up gcc (for gfortran). I tried setting "compilers.choose cc” and
> “compilers.setup require_fortran” but it continues to use clang.
> >>>>
> >>>> Thanks
> >>>> Mark
> >>>>
> >>>>
> >>>
> >>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220703/7e48fd09/attachment-0001.htm>
More information about the macports-dev
mailing list