PowerPC: Build fails in rts/CloneStack.c
Build fails with the following error message:
rts/CloneStack.c:193:36: error:
error: passing argument 1 of ‘lookupIPE’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
InfoProvEnt* ipe = lookupIPE(infoTable);
^~~~~~~~~
|
193 | InfoProvEnt* ipe = lookupIPE(infoTable);
| ^
In file included from rts/include/Rts.h:258:0: error:
0,
from rts/CloneStack.c:11:
rts/include/rts/IPE.h:31:14: error:
note: expected ‘StgInfoTable * {aka struct StgInfoTable_ *}’ but argument is of type ‘const StgInfoTable * {aka const struct StgInfoTable_ *}’
InfoProvEnt *lookupIPE(StgInfoTable *info);
^~~~~~~~~
|
31 | InfoProvEnt *lookupIPE(StgInfoTable *info);
| ^
Platform: powerpc64le Linux