<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 17 Jul 2022, at 1:59 am, Mark Brethen <mark.brethen@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>I’ve tested the build with gfortran-mp-12  which fails:</span><br><span></span><br><span>:info:build /opt/local/bin/gfortran-mp-12 -Wall -O2 -c gencontelem_n2f.f</span><br><span>:info:build gencontelem_n2f.f:595:39:</span><br><span>:info:build   184 |                call isortii(ialset(istartset(iset)),idummy,</span><br><span>:info:build       |                                                    2</span><br><span>:info:build ......</span><br><span>:info:build   595 |                     call isortii(nodef,iorder,nopes,kflag)</span><br><span>:info:build       |                                       1</span><br><span>:info:build Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)</span><br><span>:info:build make: *** [gencontelem_n2f.o] Error 1</span><br><span></span><br><span>How is a particular value of gfortran blacklisted, in this case gfortran-mp-12? </span><br></div></blockquote><div><br></div>As Ken has eluded to, this is not a problem with the compiler, but an issue i. The code itself made apparent by stricter checks in recent compilers. You will likely run into the same with most recent versions so blacklisting is not the fix here.<div><br></div><div>The option Ken mentioned turns off those checks</div><div><br></div><div><a href="https://github.com/macports/macports-ports/blob/8f07e286eac6e7fa7c9bcd282cc461ee945c7c8d/_resources/port1.0/group/compilers-1.0.tcl#L782">https://github.com/macports/macports-ports/blob/8f07e286eac6e7fa7c9bcd282cc461ee945c7c8d/_resources/port1.0/group/compilers-1.0.tcl#L782</a></div><div><br></div><div>so is definitely the way forward I would think.</div><div><br></div><div>Chris<br><div><br><blockquote type="cite"><div dir="ltr"><span></span><br><span>Mark Brethen</span><br><span>mark.brethen@gmail.com</span><br><span></span><br><span></span><br><span></span><br><blockquote type="cite"><span>On Jul 6, 2022, at 10:19 PM, Mark Brethen <mark.brethen@gmail.com> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>The Spooles library is written in C language and has multi-threading subroutines.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Mark Brethen</span><br></blockquote><blockquote type="cite"><span>mark.brethen@gmail.com</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Jul 6, 2022, at 5:06 PM, Joshua Root <jmr@macports.org> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On 2022-7-7 07:40 , Mark Brethen wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>The source is a combination of C and fortran, so a C-compiler with fortran is needed-preferably gcc. The gcc8 build is the only one that does not issue those warnings. But I have successfully run verification test cases packaged with the source against gcc8, gcc9, gcc11 and gfortran builds.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>The compilers PortGroup sets gfortran by default with these settings:</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>compilers.choose    fc cc</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>compilers.setup     require_fortran -g95 -clang</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>But it uses clang to compile the C-code. I tried blacklisting clang but then it wants to install clang-14. Choosing a gcc variant uses its associated mp-gfortan compiler.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Yes, +gfortran is there to only give you a fortran compiler (because clang doesn't have one). Is there a reason you need the C code to be compiled with gcc?</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>- Josh</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br></div></blockquote></div></div></body></html>