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.bret...@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.bret...@gmail.com> wrote: > > > > Still not working… > > <main.log> > > > > > > Mark Brethen > > mark.bret...@gmail.com > > > > > > > >> On Jul 2, 2022, at 2:15 PM, Mark Brethen <mark.bret...@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.bret...@gmail.com > >> > >> > >> > >>> On Jul 2, 2022, at 1:48 PM, Mark Brethen <mark.bret...@gmail.com> > wrote: > >>> > >>> Attaching log > >>> <main.log> > >>> > >>> Mark > >>> > >>> > >>> > >>>> On Jul 2, 2022, at 9:22 AM, Mark Brethen <mark.bret...@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 > >>>> > >>>> > >>> > >> > > > >