<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=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m trying to update the MacPorts ghc port. The build isn’t getting the TAG_MASK #define for some reason, which breaks the build. The previous release ghc 8.6.5 builds successfully.<div class=""><br class=""></div><div class="">I’m following the simple build instructions here: <a href="https://github.com/ghc/ghc#building--installing" class="">https://github.com/ghc/ghc#building--installing</a><div class=""><br class=""></div><div class=""># Use prebuilt bootstrap ghc binary</div><div class="">export GHC='/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/bootstrap/bin/ghc’</div><div class="">./boot</div><div class="">./configure</div><div class="">make -j7</div><div class=""><br class=""></div><div class="">Error:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Creating compiler/stage2/build/Config.hs ... </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 28px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">In file included from compiler/parser/cutils.c:6:0: </b></span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">error:</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> </b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 28px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">In file included from includes/Rts.h:191:0: </b></span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">error:</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> </b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 28px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">includes/rts/storage/ClosureMacros.h:211:25: </b></span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">error:</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> error: use of undeclared identifier 'TAG_MASK'</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> return (StgWord)p & TAG_MASK;</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ^</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(64, 11, 217);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> |</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #400bd9" class=""><b class="">211 |</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> return (StgWord)p & </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">T</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">AG_MASK;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #400bd9" class=""><b class=""> |</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ^</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 28px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div></blockquote><div class="">…</div><div class=""><blockquote type="cite" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">make[1]: *** [compiler/stage1/build/cbits/genSym.o] Error 1</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><<ghc: 5147183728 bytes, 749 GCs, 27001343/62810440 avg/max bytes residency (18 samples), 150M in use, 0.001 INIT (0.004 elapsed), 2.217 MUT (2.637 elapsed), 1.677 GC (1.738 elapsed) :ghc>></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">make: *** [all] Error 2</span></div></blockquote></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><div class="">I’m using the macOS native clang:</div><div class=""><br class=""></div></div></div><div class="">$ which clang<br class="">/usr/bin/clang<br class="">$ clang --version<br class="">Apple clang version 11.0.0 (clang-1100.0.33.16)<br class="">Target: x86_64-apple-darwin18.7.0<br class="">Thread model: posix<br class="">InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</div></div></body></html>