<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" class="">From their installation guide:</span></div><div class=""><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class="">
                
        
        
                <div class="page" title="Page 11">
                        <div class="layoutArea">
                                <div class="column"><p class=""><font face="Times" size="3" class="">For the compilation of cgx, therefore, the unmodified GCC 4.9 is required because the modified (by Apple) GCC for several reasons is not suitable for the compilation
of cgx … </font><span style="font-size: 12pt; font-family: Times;" class="">The
modified GCC includes the individual compilers: gcc (GNU c compiler), g++ and clang.
Because the modified GCC has a problem with function overloading it is not suitable for
the </span><span style="font-size: 8pt; font-family: Times; vertical-align: 5pt;" class="">2</span><span style="font-size: 12pt; font-family: Times;" class="">compilation of cgx.</span></p><div class="">
                
        
        
                <div class="page" title="Page 13">
                        <div class="layoutArea">
                                <div class="column"><p class=""><span style="font-size: 6.000000pt; font-family: 'Times'; vertical-align: 3.000000pt" class="">2</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">In particular, the compilation of function: #define abs(x) ((x) >= 0 ? (x) : -(x)) in the cgx-routine: </span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">“</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">extUtil.h</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">“
</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">causes a compiler error. A bug fix for the compiler was not available at the time the installation of cgx was
tested. </span></p>
                                </div>
                        </div>
                </div></div><div class="page" title="Page 13"><div class="layoutArea"><div class="column">
                
        
        
                <div class="page" title="Page 21">
                        <div class="layoutArea">
                                <div class="column"><p class=""><br class=""></p></div></div></div></div></div></div></div></div></div></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class="">I have looked at that link but it doesn’t explain how, for example, to set a default compiler. The compilers group gives more instruction, but it’s not completely clear to me. I guess something like</span></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class="">compilers.choose cc </span>cxx cpp</font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><a href="http://configure.cc" class="">configure.cc</a> </span>macports-gcc-4.9</font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><br class=""></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></font><div><blockquote type="cite" class=""><div class="">On Apr 1, 2016, at 11:59 PM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class="">On Apr 1, 2016, at 23:03, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:<br class=""><br class="">I’ve run into a snag building calculix. glut and libSNL are libraries that calculix uses. I set<span class="Apple-converted-space"> </span><br class=""><br class="">"compiler.whitelist macports-gcc-4.9”<span class="Apple-converted-space"> </span><br class=""><br class="">per the developers instructions.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px; float: none; display: inline !important;" class="">Why? We usually do not want to use FSF GCC.<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class="">However there isn’t a configure so I’m not sure what else needs to be passed.<br class=""><br class="">subport ${name}-cgx {<br class=""> revision 0<br class=""> master_sites <a href="http://www.dhondt.de/" class="">http://www.dhondt.de/</a><br class=""> distname cgx_${version}.all<br class=""><br class=""> checksums rmd160 02302101f16c2b4cdd570e81986cc4d36c2110d8 \<br class=""> sha256 64810dab1c22152c7946282fac5763cc36b9e31e309f962c23b8bf8238537c7e<br class=""><br class=""> depends_run-append port:openbrowser<span class="Apple-converted-space"> </span><br class=""><br class=""> worksrcdir CalculiX<br class=""> build.dir ${worksrcpath}/cgx_${version}/src<br class=""> build.target <br class=""><br class=""> compiler.whitelist macports-gcc-4.9<br class=""><br class=""> patchfiles patch-cgx-build.diff \<br class=""> patch-libSNL-build.diff<br class=""> patch.dir ${workpath}<br class=""><br class=""> post-patch {<br class=""> reinplace "s|@@PREFIX@@|${prefix}|g" \<br class=""> ${worksrcpath}/cgx_${version}/src/cgx.h<br class=""> }<br class=""><br class=""> use_configure no<br class=""><br class="">livecheck.regex {ccx_${version}.all}<br class="">}<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px; float: none; display: inline !important;" class="">When you set "use_configure no", you must add code to use the right compiler and -arch flags and offer a universal variant. See:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class=""><a href="https://trac.macports.org/wiki/UsingTheRightCompiler" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: 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-stroke-width: 0px;" class="">https://trac.macports.org/wiki/UsingTheRightCompiler</a></div></div></blockquote></div><br class=""></div></body></html>