<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">I’m trying to upgrade the MacPorts ghc install to the latest 8.8.2.<div dir="ltr"><br></div><div dir="ltr">The build fails with:</div><div dir="ltr"><div dir="ltr"><blockquote type="cite">error: use of undeclared identifier 'TAG_MASK'<br></blockquote><blockquote type="cite">:info:build return (StgWord)p & TAG_MASK;</blockquote></div></div><div dir="ltr"><br></div><div dir="ltr">This is an error observed with previous ghc versions and on other systems, so I do not believe it is macOS-specific. Also, the MacPorts build process simply follows the ghc Build & Install instructions: <a href="https://github.com/ghc/ghc/blob/master/README.md#building--installing">https://github.com/ghc/ghc/blob/master/README.md#building--installing</a></div><div dir="ltr"><br></div><div dir="ltr">Is there a simple fix by adding an extra flag somewhere?</div><div dir="ltr"><br></div><div dir="ltr">Logs:</div><div dir="ltr"><br></div><div dir="ltr"><blockquote type="cite"><span>:info:build In file included from compiler/ghci/keepCAFsForGHCi.c:1:0: error: </span><br></blockquote><blockquote type="cite"><span>:info:build In file included from includes/Rts.h:191:0: error: </span><br></blockquote><blockquote type="cite"><span>:info:build includes/rts/storage/ClosureMacros.h:211:25: error:</span><br></blockquote><blockquote type="cite"><span>:info:build error: use of undeclared identifier 'TAG_MASK'</span><br></blockquote><blockquote type="cite"><span>:info:build return (StgWord)p & TAG_MASK;</span><br></blockquote><blockquote type="cite"><span>:info:build ^</span><br></blockquote><blockquote type="cite"><span>:info:build |</span><br></blockquote><blockquote type="cite"><span>:info:build 211 | return (StgWord)p & TAG_MASK;</span><br></blockquote><blockquote type="cite"><span>:info:build | ^</span><br></blockquote><blockquote type="cite"><span>:info:build includes/rts/storage/ClosureMacros.h:217:40: error:</span><br></blockquote><blockquote type="cite"><span>:info:build error: use of undeclared identifier 'TAG_MASK'</span><br></blockquote><blockquote type="cite"><span>:info:build return (StgClosure*)((StgWord)p & ~TAG_MASK);</span><br></blockquote><blockquote type="cite"><span>:info:build ^</span><br></blockquote><blockquote type="cite"><span>:info:build |</span><br></blockquote><blockquote type="cite"><span>:info:build 217 | return (StgClosure*)((StgWord)p & ~TAG_MASK);</span><br></blockquote><blockquote type="cite"><span>:info:build | ^</span><br></blockquote><blockquote type="cite"><span>:info:build includes/rts/storage/ClosureMacros.h:223:46: error:</span><br></blockquote><blockquote type="cite"><span>:info:build error: use of undeclared identifier 'TAG_MASK'</span><br></blockquote><blockquote type="cite"><span>:info:build return (const StgClosure*)((StgWord)p & ~TAG_MASK);</span><br></blockquote><blockquote type="cite"><span>:info:build ^</span><br></blockquote></div></div></body></html>