Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for 'phase_0_builds'.
===--- building phase 1
make --no-print-directory -f ghc.mk phase=1 phase_1_builds
make[1]: Nothing to be done for 'phase_1_builds'.
===--- building final phase
make --no-print-directory -f ghc.mk phase=final all
/usr/bin/install -c -m 755 utils/hp2ps/dist/build/tmp/hp2ps inplace/lib/bin/hp2ps
/usr/bin/install -c -m 755 utils/genapply/dist/build/tmp/genapply inplace/lib/bin/genapply
"inplace/bin/ghc-stage1" -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedconstants/header -optc-Iincludes/dist-ghcconstants/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-DFS_NAMESPACE=rts -optc-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autogen -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_p\" -optc-w -optc-ffunction-sections -optc-fdata-sections -static -prof -eventlog -O0 -H64m -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/RetainerProfile.c -o rts/dist/build/RetainerProfile.p_o
"inplace/bin/ghc-stage1" -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedconstants/header -optc-Iincludes/dist-ghcconstants/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-DFS_NAMESPACE=rts -optc-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autogen -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_p\" -optc-ffunction-sections -optc-fdata-sections -static -prof -eventlog -O0 -H64m -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/ClosureFlags.c -o rts/dist/build/ClosureFlags.p_o
rts/RetainerProfile.c:146:9: error:
error: unknown type name ‘StgLargeSRT’
StgLargeSRT *srt;
^~~~~~~~~~~
|
146 | StgLargeSRT *srt;
| ^
rts/RetainerProfile.c: In function ‘init_srt_fun’:
rts/RetainerProfile.c:337:21: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
if (infoTable->i.srt_bitmap == (StgHalfWord)(-1)) {
^
|
337 | if (infoTable->i.srt_bitmap == (StgHalfWord)(-1)) {
| ^
rts/RetainerProfile.c:339:37: error:
error: ‘StgLargeSRT’ undeclared (first use in this function)
info->next.large_srt.srt = (StgLargeSRT *)GET_FUN_SRT(infoTable);
^~~~~~~~~~~
|
339 | info->next.large_srt.srt = (StgLargeSRT *)GET_FUN_SRT(infoTable);
| ^
rts/RetainerProfile.c:339:37: error:
note: each undeclared identifier is reported only once for each function it appears in
|
339 | info->next.large_srt.srt = (StgLargeSRT *)GET_FUN_SRT(infoTable);
| ^
rts/RetainerProfile.c:339:50: error:
error: expected expression before ‘)’ token
info->next.large_srt.srt = (StgLargeSRT *)GET_FUN_SRT(infoTable);
^
|
339 | info->next.large_srt.srt = (StgLargeSRT *)GET_FUN_SRT(infoTable);
| ^
rts/RetainerProfile.c:344:49: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
info->next.srt.srt_bitmap = infoTable->i.srt_bitmap;
^
|
344 | info->next.srt.srt_bitmap = infoTable->i.srt_bitmap;
| ^
rts/RetainerProfile.c: In function ‘init_srt_thunk’:
rts/RetainerProfile.c:351:21: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
if (infoTable->i.srt_bitmap == (StgHalfWord)(-1)) {
^
|
351 | if (infoTable->i.srt_bitmap == (StgHalfWord)(-1)) {
| ^
rts/RetainerProfile.c:353:37: error:
error: ‘StgLargeSRT’ undeclared (first use in this function)
info->next.large_srt.srt = (StgLargeSRT *)GET_SRT(infoTable);
^~~~~~~~~~~
|
353 | info->next.large_srt.srt = (StgLargeSRT *)GET_SRT(infoTable);
| ^
rts/RetainerProfile.c:353:50: error:
error: expected expression before ‘)’ token
info->next.large_srt.srt = (StgLargeSRT *)GET_SRT(infoTable);
^
|
353 | info->next.large_srt.srt = (StgLargeSRT *)GET_SRT(infoTable);
| ^
"inplace/bin/ghc-stage1" -optc-fno-stack-protector -optc-Wall -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-Iincludes -optc-Iincludes/dist -optc-Iincludes/dist-derivedconstants/header -optc-Iincludes/dist-ghcconstants/header -optc-Irts -optc-Irts/dist/build -optc-DCOMPILING_RTS -optc-DFS_NAMESPACE=rts -optc-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autogen -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_p\" -optc-ffunction-sections -optc-fdata-sections -static -prof -eventlog -O0 -H64m -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2 -Wcpp-undef -Wnoncanonical-monad-instances -c rts/LdvProfile.c -o rts/dist/build/LdvProfile.p_o
rts/RetainerProfile.c:358:49: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
info->next.srt.srt_bitmap = infoTable->i.srt_bitmap;
^
|
358 | info->next.srt.srt_bitmap = infoTable->i.srt_bitmap;
| ^
rts/RetainerProfile.c: In function ‘find_srt’:
rts/RetainerProfile.c:401:42: error:
error: request for member ‘l’ in something not a structure or union
bitmap = info->next.large_srt.srt->l.bitmap[i / BITS_IN(W_)];
^~
|
401 | bitmap = info->next.large_srt.srt->l.bitmap[i / BITS_IN(W_)];
| ^
rts/RetainerProfile.c:403:44: error:
error: request for member ‘l’ in something not a structure or union
while (i < info->next.large_srt.srt->l.size) {
^~
|
403 | while (i < info->next.large_srt.srt->l.size) {
| ^
rts/RetainerProfile.c:405:61: error:
error: request for member ‘srt’ in something not a structure or union
c = ((StgClosure **)info->next.large_srt.srt->srt)[i];
^~
|
405 | c = ((StgClosure **)info->next.large_srt.srt->srt)[i];
| ^
rts/RetainerProfile.c:412:50: error:
error: request for member ‘l’ in something not a structure or union
bitmap = info->next.large_srt.srt->l.bitmap[i / BITS_IN(W_)];
^~
|
412 | bitmap = info->next.large_srt.srt->l.bitmap[i / BITS_IN(W_)];
| ^
rts/RetainerProfile.c: At top level:
rts/RetainerProfile.c:1212:26: error:
error: unknown type name ‘StgLargeSRT’
retain_large_srt_bitmap (StgLargeSRT *srt, StgClosure *c, retainer c_child_r)
^~~~~~~~~~~
|
1212 | retain_large_srt_bitmap (StgLargeSRT *srt, StgClosure *c, retainer c_child_r)
| ^
rts/RetainerProfile.c: In function ‘retainSRT’:
rts/RetainerProfile.c:1248:33: error:
error: ‘StgLargeSRT’ undeclared (first use in this function)
retain_large_srt_bitmap( (StgLargeSRT *)srt, c, c_child_r );
^~~~~~~~~~~
|
1248 | retain_large_srt_bitmap( (StgLargeSRT *)srt, c, c_child_r );
| ^
rts/RetainerProfile.c:1248:46: error:
error: expected expression before ‘)’ token
retain_large_srt_bitmap( (StgLargeSRT *)srt, c, c_child_r );
^
|
1248 | retain_large_srt_bitmap( (StgLargeSRT *)srt, c, c_child_r );
| ^
rts/RetainerProfile.c: In function ‘retainStack’:
rts/RetainerProfile.c:1342:60: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
retainSRT((StgClosure **)GET_SRT(info), info->i.srt_bitmap, c, c_child_r);
^
|
1342 | retainSRT((StgClosure **)GET_SRT(info), info->i.srt_bitmap, c, c_child_r);
| ^
rts/RetainerProfile.c: In function ‘retainClosure’:
rts/RetainerProfile.c:1575:24: error:
error: ‘StgInfoTable {aka const struct StgInfoTable_}’ has no member named ‘srt_bitmap’
if (get_itbl(c)->srt_bitmap == 0) {
^~
|
1575 | if (get_itbl(c)->srt_bitmap == 0) {
| ^
rts/RetainerProfile.c: In function ‘resetStaticObjectForRetainerProfiling’:
rts/RetainerProfile.c:1911:31: error:
error: too few arguments to function ‘STATIC_LINK’
p = (StgClosure*)*STATIC_LINK(p);
^~~~~~~~~~~
|
1911 | p = (StgClosure*)*STATIC_LINK(p);
| ^
In file included from includes/Rts.h:182:0: error:
0,
from rts/RetainerProfile.c:20:
includes/rts/storage/ClosureMacros.h:179:1: error:
note: declared here
STATIC_LINK(const StgInfoTable *info, StgClosure *p)
^~~~~~~~~~~
|
179 | STATIC_LINK(const StgInfoTable *info, StgClosure *p)
| ^
`gcc' failed in phase `C Compiler'. (Exit code: 1)
rts/ghc.mk:295: recipe for target 'rts/dist/build/RetainerProfile.p_o' failed
make[1]: *** [rts/dist/build/RetainerProfile.p_o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:122: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment