GHC 8.8.2 Bootstrap Build Fails on macOS Catalina 10.15, undeclared identifier 'TAG_MASK'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GHC 8.8.2 Bootstrap Build Fails on macOS Catalina 10.15, undeclared identifier 'TAG_MASK'

Steven Smith
I’m trying to upgrade the MacPorts ghc install to the latest 8.8.2.

The build fails with:
error: use of undeclared identifier 'TAG_MASK'
:info:build         return (StgWord)p & TAG_MASK;

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: https://github.com/ghc/ghc/blob/master/README.md#building--installing

Is there a simple fix by adding an extra flag somewhere?

Logs:

:info:build In file included from compiler/ghci/keepCAFsForGHCi.c:1:0: error:
:info:build In file included from includes/Rts.h:191:0: error:
:info:build includes/rts/storage/ClosureMacros.h:211:25: error:
:info:build      error: use of undeclared identifier 'TAG_MASK'
:info:build         return (StgWord)p & TAG_MASK;
:info:build                             ^
:info:build     |
:info:build 211 |     return (StgWord)p & TAG_MASK;
:info:build     |                         ^
:info:build includes/rts/storage/ClosureMacros.h:217:40: error:
:info:build      error: use of undeclared identifier 'TAG_MASK'
:info:build         return (StgClosure*)((StgWord)p & ~TAG_MASK);
:info:build                                            ^
:info:build     |
:info:build 217 |     return (StgClosure*)((StgWord)p & ~TAG_MASK);
:info:build     |                                        ^
:info:build includes/rts/storage/ClosureMacros.h:223:46: error:
:info:build      error: use of undeclared identifier 'TAG_MASK'
:info:build         return (const StgClosure*)((StgWord)p & ~TAG_MASK);
:info:build                                                  ^

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GHC 8.8.2 Bootstrap Build Fails on macOS Catalina 10.15, undeclared identifier 'TAG_MASK'

Ben Gamari-3
Steven Smith <[hidden email]> writes:

> I’m trying to upgrade the MacPorts ghc install to the latest 8.8.2.
>
> The build fails with:
>> error: use of undeclared identifier 'TAG_MASK'
>> :info:build         return (StgWord)p & TAG_MASK;
>
>
> 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:
> https://github.com/ghc/ghc/blob/master/README.md#building--installing
>
> Is there a simple fix by adding an extra flag somewhere?
>
Sigh, this is #17146 which should have been backported. I'll have to
investigate how this slipped through the cracks.

Thanks for raising this.

Cheers,

- Ben

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

signature.asc (497 bytes) Download Attachment