Windows build broken -- help!

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

Windows build broken -- help!

GHC - devs mailing list

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$


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

RE: Windows build broken -- help!

GHC - devs mailing list

PS Presumably it’s these commits

commit 00f1a4ab80b201ce15c509126f89c5a108786f32

Author: Douglas Wilson <[hidden email]>

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 <[hidden email]>

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:[hidden email]] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 07 February 2018 23:14
To: ghc-devs <[hidden email]>; Phyx <[hidden email]>
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$


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Windows build broken -- help!

Douglas Wilson
Hi Simon,

The first patch you quoted half-fixed this.

the patch here:

should fix whole-fix it. (It at least validates green on windows)

On Thu, Feb 8, 2018 at 12:18 PM, Simon Peyton Jones via ghc-devs <[hidden email]> wrote:

PS Presumably it’s these commits

commit 00f1a4ab80b201ce15c509126f89c5a108786f32

Author: Douglas Wilson <[hidden email]>

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 <[hidden email]>

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:[hidden email]] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 07 February 2018 23:14
To: ghc-devs <[hidden email]>; Phyx <[hidden email]>
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$


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs



_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

RE: Windows build broken -- help!

Phyx

I’ve pushed the commit. Thanks Doug!

 

From: [hidden email]
Sent: Wednesday, February 7, 2018 23:33
To: [hidden email]
Cc: [hidden email]
Subject: Re: Windows build broken -- help!

 

Hi Simon,

 

The first patch you quoted half-fixed this.

 

the patch here:

 

should fix whole-fix it. (It at least validates green on windows)

 

On Thu, Feb 8, 2018 at 12:18 PM, Simon Peyton Jones via ghc-devs <[hidden email]> wrote:

PS Presumably it’s these commits

commit 00f1a4ab80b201ce15c509126f89c5a108786f32

Author: Douglas Wilson <[hidden email]>

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 <[hidden email]>

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:[hidden email]] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 07 February 2018 23:14
To: ghc-devs <[hidden email]>; Phyx <[hidden email]>
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$


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

 

 


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

RE: Windows build broken -- help!

GHC - devs mailing list

Yes thanks Doug… testing now

 

From: [hidden email] [mailto:[hidden email]]
Sent: 08 February 2018 00:17
To: Douglas Wilson <[hidden email]>; Simon Peyton Jones <[hidden email]>
Cc: ghc-devs <[hidden email]>
Subject: RE: Windows build broken -- help!

 

I’ve pushed the commit. Thanks Doug!

 

From: [hidden email]
Sent: Wednesday, February 7, 2018 23:33
To: [hidden email]
Cc: [hidden email]
Subject: Re: Windows build broken -- help!

 

Hi Simon,

 

The first patch you quoted half-fixed this.

 

the patch here:

 

should fix whole-fix it. (It at least validates green on windows)

 

On Thu, Feb 8, 2018 at 12:18 PM, Simon Peyton Jones via ghc-devs <[hidden email]> wrote:

PS Presumably it’s these commits

commit 00f1a4ab80b201ce15c509126f89c5a108786f32

Author: Douglas Wilson <[hidden email]>

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 <[hidden email]>

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:[hidden email]] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 07 February 2018 23:14
To: ghc-devs <[hidden email]>; Phyx <[hidden email]>
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$


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

 

 


_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs