<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Unfortunately spooles is no longer maintained, but I found this discussion online:<div class=""><br class=""></div><div class=""><p style="box-sizing: border-box; margin: 0px 0px 10px; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "Fira Sans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;" class="">If you compile with GCC 10 or newer, you will get the following error, originating from CalculiX:</p><div class="language-text highlighter-rouge" style="box-sizing: border-box; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "Fira Sans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><div class="highlight" style="box-sizing: border-box; background-color: rgb(255, 255, 255);"><pre class="highlight" style="box-sizing: border-box; overflow: auto; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 9.5px; margin-top: 25px; margin-bottom: 25px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; white-space: pre-wrap;"><code style="box-sizing: border-box; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: inherit; padding: 0px; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; white-space: pre; overflow: auto; word-wrap: normal;" class="">Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
</code></pre></div></div><p style="box-sizing: border-box; margin: 0px 0px 10px; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "Fira Sans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;" class="">To work around this, you need to add <code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14.399999618530273px; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px;">-fallow-argument-mismatch</code> to the <code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14.399999618530273px; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px;">FFLAGS</code> inside <code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14.399999618530273px; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px;">Makefile</code>:</p><div class="language-diff highlighter-rouge" style="box-sizing: border-box; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: "Fira Sans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><div class="highlight" style="box-sizing: border-box; background-color: rgb(255, 255, 255);"><pre class="highlight" style="box-sizing: border-box; overflow: auto; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 9.5px; margin-top: 25px; margin-bottom: 25px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; white-space: pre-wrap;"><code style="box-sizing: border-box; font-family: "Fira Mono", Menlo, Monaco, Consolas, "Courier New", monospace; font-size: inherit; padding: 0px; color: inherit; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; white-space: pre; overflow: auto; word-wrap: normal;" class=""><span class="gd" style="box-sizing: border-box; color: rgb(0, 0, 0); background-color: rgb(255, 221, 221);">- FFLAGS = -Wall -O3 -fopenmp $(INCLUDES)
</span><span class="gi" style="box-sizing: border-box; color: rgb(0, 0, 0); background-color: rgb(221, 255, 221);">+ FFLAGS = -Wall -O3 -fopenmp -fallow-argument-mismatch $(INCLUDES)</span></code></pre></div></div></div><div class=""><br class=""></div><div class="">I’ll implement this in a patch, assuming everyone is building with >+ 10? Would it hurt to patch it even if gcc <10?</div><div class=""><br class=""><div class="">
<div class="">Mark </div><div class=""><br class=""></div><br class="Apple-interchange-newline">

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jul 17, 2022, at 12:01 PM, Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div dir="ltr" class=""></div><div dir="ltr" class="">Ok, shame.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Nevertheless, this is not an issue with the compiler but the code itself. You might try discussing it with the upstream maintainers.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Chris</div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On 17 Jul 2022, at 3:29 pm, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">Hmm, 'compilers.allow_arguments_mismatch yes’ had no effect—same failure. I looked at the compilers group and with it set, and gfortran variant is selected, chooses ${compilers.gcc_default}. Which in my case was gcc12—which is already installed.<div class=""><br class=""><div class="">
<div class="">Mark Brethen</div><div class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">

</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jul 17, 2022, at 6:15 AM, Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="Apple-interchange-newline"><br class=""><blockquote type="cite" class="">On 17 Jul 2022, at 1:59 am, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><span class="">I’ve tested the build with gfortran-mp-12  which fails:</span><br class=""><span class=""></span><br class=""><span class="">:info:build /opt/local/bin/gfortran-mp-12 -Wall -O2 -c gencontelem_n2f.f</span><br class=""><span class="">:info:build gencontelem_n2f.f:595:39:</span><br class=""><span class="">:info:build   184 |                call isortii(ialset(istartset(iset)),idummy,</span><br class=""><span class="">:info:build       |                                                    2</span><br class=""><span class="">:info:build ......</span><br class=""><span class="">:info:build   595 |                     call isortii(nodef,iorder,nopes,kflag)</span><br class=""><span class="">:info:build       |                                       1</span><br class=""><span class="">:info:build Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)</span><br class=""><span class="">:info:build make: *** [gencontelem_n2f.o] Error 1</span><br class=""><span class=""></span><br class=""><span class="">How is a particular value of gfortran blacklisted, in this case gfortran-mp-12?<span class="Apple-converted-space"> </span></span><br class=""></div></blockquote><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">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.</span><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">The option Ken mentioned turns off those checks</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://github.com/macports/macports-ports/blob/8f07e286eac6e7fa7c9bcd282cc461ee945c7c8d/_resources/port1.0/group/compilers-1.0.tcl#L782" class="">https://github.com/macports/macports-ports/blob/8f07e286eac6e7fa7c9bcd282cc461ee945c7c8d/_resources/port1.0/group/compilers-1.0.tcl#L782</a></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">so is definitely the way forward I would think.</div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Chris<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><span class=""></span><br class=""><span class="">Mark Brethen</span><br class=""><span class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></span><br class=""><span class=""></span><br class=""><span class=""></span><br class=""><span class=""></span><br class=""><blockquote type="cite" class=""><span class="">On Jul 6, 2022, at 10:19 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">The Spooles library is written in C language and has multi-threading subroutines.</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class="">Mark Brethen</span><br class=""></blockquote><blockquote type="cite" class=""><span class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">On Jul 6, 2022, at 5:06 PM, Joshua Root <<a href="mailto:jmr@macports.org" class="">jmr@macports.org</a>> wrote:</span><br class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">On 2022-7-7 07:40 , Mark Brethen wrote:</span><br class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">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 class=""></blockquote></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">The compilers PortGroup sets gfortran by default with these settings:</span><br class=""></blockquote></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">compilers.choose    fc cc</span><br class=""></blockquote></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">compilers.setup     require_fortran -g95 -clang</span><br class=""></blockquote></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">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 class=""></blockquote></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">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 class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class=""></span><br class=""></blockquote></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><span class="">- Josh</span></blockquote></blockquote></div></blockquote></div></div></div></blockquote></div><br class=""></div></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>