Windows build broken -- help!

Simon Peyton Jones simonpj at microsoft.com
Wed Feb 7 23:18:22 UTC 2018


PS Presumably it's these commits

commit 00f1a4ab80b201ce15c509126f89c5a108786f32

Author: Douglas Wilson <douglas.wilson at gmail.com>

Date:   Tue Feb 6 17:27:32 2018 -0500



    rts: fix some barf format specifiers.



    Reviewers: bgamari, erikd, simonmar



    Reviewed By: bgamari



    Subscribers: rwbarton, thomie, carter



    Differential Revision: https://phabricator.haskell.org/D4390



commit 4d1c3b72ec27c8e51fb40809bba3ce35246a2966

Author: Ben Gamari <bgamari.foss at gmail.com>

Date:   Tue Feb 6 13:27:35 2018 -0500



    rts: Add format attribute to barf



    Test Plan: Validate



    Reviewers: erikd, simonmar



    Reviewed By: simonmar



    Subscribers: rwbarton, thomie, carter



    Differential Revision: https://phabricator.haskell.org/D4374


From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 07 February 2018 23:14
To: ghc-devs <ghc-devs at haskell.org>; Phyx <lonetiger at gmail.com>
Subject: Windows build broken -- help!

Aargh. Windows build is broken again.  Log below.  Help!
Simon


"inplace/bin/ghc-stage1.exe" -optc-fno-stack-protector -optc-Wall -optc-Werror -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-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autogen -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_v\" -optc-DWINVER=0x06000100 -static  -O0 -H64m -Wall -fllvm-fill-undef-with-garbage    -Werror -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_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/StgPrimFloat.c -o rts/dist/build/StgPrimFloat.o



rts\Schedule.c:274:14: error:

     error: unknown conversion type character 'l' in format [-Werror=format=]

             barf("sched_state: %" FMT_Word, sched_state);

                  ^~~~~~~~~~~~~~~~

    |

274 |         barf("sched_state: %" FMT_Word, sched_state);

    |              ^

In file included from C:/code/HEAD-1/inplace/mingw/x86_64-w64-mingw32/include/stdio.h:1036:0,

                 from includes/rts/Flags.h:16,

                 from includes/Rts.h:191,



                 from rts\Schedule.c:11:0: error:

C:/code/HEAD-1/inplace/mingw/x86_64-w64-mingw32/include/_mingw_print_pop.h:86:18: note: format string is defined here

#define PRIu64 "llu"

                  ^



rts\Schedule.c:274:14: error:

     error: too many arguments for format [-Werror=format-extra-args]

             barf("sched_state: %" FMT_Word, sched_state);

                  ^~~~~~~~~~~~~~~~

    |

274 |         barf("sched_state: %" FMT_Word, sched_state);

    |              ^

cc1.exe: all warnings being treated as errors

`gcc.exe' failed in phase `C Compiler'. (Exit code: 1)

"inplace/bin/ghc-stage1.exe" -optc-fno-stack-protector -optc-Wall -optc-Werror -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-fno-strict-aliasing -optc-fno-common -optc-Irts/dist/build/./autogen -optc-Wno-error=inline -optc-O2 -optc-fomit-frame-pointer -optc-g -optc-DRtsWay=\"rts_v\" -optc-DWINVER=0x06000100 -static  -O0 -H64m -Wall -fllvm-fill-undef-with-garbage    -Werror -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_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/Profiling.c -o rts/dist/build/Profiling.o

make[1]: *** [rts/ghc.mk:295: rts/dist/build/Schedule.o] Error 1

make[1]: *** Waiting for unfinished jobs....

make: *** [Makefile:127: all] Error 2

/c/code/HEAD-1$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180207/9291f3d1/attachment-0001.html>


More information about the ghc-devs mailing list