<div dir="ltr">Hello Mark,<div><br></div><div>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.</div><font color="#888888"><div><br></div><div>David</div></font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 2, 2022 at 4:20 PM Mark Brethen <<a href="mailto:mark.brethen@gmail.com">mark.brethen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br>
<br>
Thanks,<br>
Mark<br>
<br>
<br>
<br>
> On Jul 2, 2022, at 2:21 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>> wrote:<br>
> <br>
> Still not working…<br>
> <main.log><br>
> <br>
> <br>
> Mark Brethen<br>
> <a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a><br>
> <br>
> <br>
> <br>
>> On Jul 2, 2022, at 2:15 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>> wrote:<br>
>> <br>
>> I should have looked at the active-variants tcl:<br>
>> <br>
>> require_active_variants arpack accelerate mpich<br>
>> <br>
>> should be<br>
>> <br>
>> require_active_variants arpack "accelerate mpich"<br>
>> <br>
>> Mark Brethen<br>
>> <a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a><br>
>> <br>
>> <br>
>> <br>
>>> On Jul 2, 2022, at 1:48 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>> wrote:<br>
>>> <br>
>>> Attaching log<br>
>>> <main.log><br>
>>> <br>
>>> Mark<br>
>>> <br>
>>> <br>
>>> <br>
>>>> On Jul 2, 2022, at 9:22 AM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>> wrote:<br>
>>>> <br>
>>>> 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.<br>
>>>> <br>
>>>> Thanks<br>
>>>> Mark<br>
>>>> <br>
>>>> <br>
>>> <br>
>> <br>
> <br>
<br>
</blockquote></div>