ghc-8.2.1_rc3 fails unregisterised build: error: '__stginit_ghczmprim_GHCziTypes' redeclared as different kind of symbol
Noticed when was building --enable-unregisterised build for x86_64:
/tmp/ghc22931_0/ghc_3.hc:5:9: error:
error: '__stginit_ghczmprim_GHCziTypes' redeclared as different kind of symbol
StgWord __stginit_ghczmprim_GHCziTypes[]__attribute__((aligned(8)))= {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
5 | StgWord __stginit_ghczmprim_GHCziTypes[]__attribute__((aligned(8)))= {
| ^
In file included from /tmp/ghc22931_0/ghc_3.hc:3:0: error:
/tmp/ghc22931_0/ghc_3.hc:4:5: error:
note: previous declaration of '__stginit_ghczmprim_GHCziTypes' was here
EF_(__stginit_ghczmprim_GHCziTypes);
^
The error here is mismatch in symbol type: EF_ ("external function") It should be EC_ ("external closure").
The same build failure does not happen in HEAD because the _stginit* is not generated there anymore (see a92ff5d6)
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.1-rc3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |