
OK, so now my windows build is getting further, but it now falls over here. This one looks more straightforward! Can anyone help? Simon "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 -optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 -optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY -H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o cc1.exe: warnings being treated as errors rts\CheckUnload.c: In function 'checkUnload': rts\CheckUnload.c:257:7: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' rts\CheckUnload.c:293:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' rts\CheckUnload.c:297:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' bash-3.1$

My query below may have got lost in the server failure. Does anyone have any ideas? Thanks! SImon From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Simon Peyton-Jones Sent: 28 August 2013 09:25 To: ghc-devs@haskell.org Subject: More windows woe OK, so now my windows build is getting further, but it now falls over here. This one looks more straightforward! Can anyone help? Simon "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 -optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 -optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY -H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o cc1.exe: warnings being treated as errors rts\CheckUnload.c: In function 'checkUnload': rts\CheckUnload.c:257:7: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' rts\CheckUnload.c:293:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' rts\CheckUnload.c:297:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' bash-3.1$

My guess is the printf's need to be replaced with swprintf's. Edward Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 2013:
OK, so now my windows build is getting further, but it now falls over here. This one looks more straightforward! Can anyone help?
Simon
"inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 -optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 -optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY -H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o cc1.exe: warnings being treated as errors rts\CheckUnload.c: In function 'checkUnload':
rts\CheckUnload.c:257:7: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *'
rts\CheckUnload.c:293:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *'
rts\CheckUnload.c:297:11: error: format '%s' expects type 'char *', but argument 2 has type 'pathchar *' bash-3.1$

Simon Marlow: please help! At the moment windows builds are hosed, which is a Bad Situation. Actually it turns out that what want is debugBelch("Checking whether to unload %S\n", oc->fileName)); That is, use "%S" rather than "%s" as format specifier for wide chars. Sadly, this works on Windows, but not on Linux: rts/CheckUnload.c:260:13: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 2 has type ‘pathchar *’ [-Werror=format] So what I need guidance on, please!, is what the approved way to deal with this is. I suppose that I could identify each use of %s on a filepath and say #ifdef mingw32_HOST_OS debugBelch("Checking whether to unload %S\n", oc->fileName)); #else debugBelch("Checking whether to unload %s\n", oc->fileName)); #endif But that seems deeply unsatisfactory doesn't it? If not that, then what? Simon | -----Original Message----- | From: Edward Z. Yang [mailto:ezyang@MIT.EDU] | Sent: 28 August 2013 20:59 | To: Simon Peyton-Jones | Cc: ghc-devs@haskell.org | Subject: Re: More windows woe | | My guess is the printf's need to be replaced with swprintf's. | | Edward | | Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 | 2013: | > OK, so now my windows build is getting further, but it now falls over | here. This one looks more straightforward! Can anyone help? | > | > Simon | > | > "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 - | optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 - | optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY - | H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist - | Iincludes/dist-derivedconstants/header -Iincludes/dist- | ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name | rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen - | Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c | rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o | > cc1.exe: warnings being treated as errors | > rts\CheckUnload.c: In function 'checkUnload': | > | > rts\CheckUnload.c:257:7: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:293:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:297:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > bash-3.1$

I got my hands on a Windows build box, so I'll also go and see if I can get a build working on Windows. Excerpts from Simon Peyton-Jones's message of Tue Sep 03 07:33:32 -0700 2013:
Simon Marlow: please help! At the moment windows builds are hosed, which is a Bad Situation.
Actually it turns out that what want is
debugBelch("Checking whether to unload %S\n", oc->fileName));
That is, use "%S" rather than "%s" as format specifier for wide chars.
Sadly, this works on Windows, but not on Linux: rts/CheckUnload.c:260:13: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 2 has type ‘pathchar *’ [-Werror=format]
So what I need guidance on, please!, is what the approved way to deal with this is. I suppose that I could identify each use of %s on a filepath and say
#ifdef mingw32_HOST_OS debugBelch("Checking whether to unload %S\n", oc->fileName)); #else debugBelch("Checking whether to unload %s\n", oc->fileName)); #endif
But that seems deeply unsatisfactory doesn't it?
If not that, then what?
Simon
| -----Original Message----- | From: Edward Z. Yang [mailto:ezyang@MIT.EDU] | Sent: 28 August 2013 20:59 | To: Simon Peyton-Jones | Cc: ghc-devs@haskell.org | Subject: Re: More windows woe | | My guess is the printf's need to be replaced with swprintf's. | | Edward | | Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 | 2013: | > OK, so now my windows build is getting further, but it now falls over | here. This one looks more straightforward! Can anyone help? | > | > Simon | > | > "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 - | optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 - | optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY - | H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist - | Iincludes/dist-derivedconstants/header -Iincludes/dist- | ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name | rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen - | Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c | rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o | > cc1.exe: warnings being treated as errors | > rts\CheckUnload.c: In function 'checkUnload': | > | > rts\CheckUnload.c:257:7: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:293:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:297:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > bash-3.1$

Sorry about that; I'm on it, fix coming soon. Cheers, Simon On 03/09/13 15:33, Simon Peyton-Jones wrote:
Simon Marlow: please help! At the moment windows builds are hosed, which is a Bad Situation.
Actually it turns out that what want is
debugBelch("Checking whether to unload %S\n", oc->fileName));
That is, use "%S" rather than "%s" as format specifier for wide chars.
Sadly, this works on Windows, but not on Linux: rts/CheckUnload.c:260:13: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 2 has type ‘pathchar *’ [-Werror=format]
So what I need guidance on, please!, is what the approved way to deal with this is. I suppose that I could identify each use of %s on a filepath and say
#ifdef mingw32_HOST_OS debugBelch("Checking whether to unload %S\n", oc->fileName)); #else debugBelch("Checking whether to unload %s\n", oc->fileName)); #endif
But that seems deeply unsatisfactory doesn't it?
If not that, then what?
Simon
| -----Original Message----- | From: Edward Z. Yang [mailto:ezyang@MIT.EDU] | Sent: 28 August 2013 20:59 | To: Simon Peyton-Jones | Cc: ghc-devs@haskell.org | Subject: Re: More windows woe | | My guess is the printf's need to be replaced with swprintf's. | | Edward | | Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 | 2013: | > OK, so now my windows build is getting further, but it now falls over | here. This one looks more straightforward! Can anyone help? | > | > Simon | > | > "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 - | optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 - | optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY - | H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist - | Iincludes/dist-derivedconstants/header -Iincludes/dist- | ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name | rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen - | Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c | rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o | > cc1.exe: warnings being treated as errors | > rts\CheckUnload.c: In function 'checkUnload': | > | > rts\CheckUnload.c:257:7: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:293:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:297:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > bash-3.1$

My latest error: librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:432:47: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n') librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:432:69: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n') librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:435:15: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n') make[1]: *** [libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/Win32.o] Error 1 make: *** [all] Error 2 Excerpts from Simon Marlow's message of Wed Sep 04 02:44:18 -0700 2013:
Sorry about that; I'm on it, fix coming soon.
Cheers, Simon
On 03/09/13 15:33, Simon Peyton-Jones wrote:
Simon Marlow: please help! At the moment windows builds are hosed, which is a Bad Situation.
Actually it turns out that what want is
debugBelch("Checking whether to unload %S\n", oc->fileName));
That is, use "%S" rather than "%s" as format specifier for wide chars.
Sadly, this works on Windows, but not on Linux: rts/CheckUnload.c:260:13: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 2 has type ‘pathchar *’ [-Werror=format]
So what I need guidance on, please!, is what the approved way to deal with this is. I suppose that I could identify each use of %s on a filepath and say
#ifdef mingw32_HOST_OS debugBelch("Checking whether to unload %S\n", oc->fileName)); #else debugBelch("Checking whether to unload %s\n", oc->fileName)); #endif
But that seems deeply unsatisfactory doesn't it?
If not that, then what?
Simon
| -----Original Message----- | From: Edward Z. Yang [mailto:ezyang@MIT.EDU] | Sent: 28 August 2013 20:59 | To: Simon Peyton-Jones | Cc: ghc-devs@haskell.org | Subject: Re: More windows woe | | My guess is the printf's need to be replaced with swprintf's. | | Edward | | Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 | 2013: | > OK, so now my windows build is getting further, but it now falls over | here. This one looks more straightforward! Can anyone help? | > | > Simon | > | > "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 - | optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 - | optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY - | H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist - | Iincludes/dist-derivedconstants/header -Iincludes/dist- | ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name | rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen - | Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c | rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o | > cc1.exe: warnings being treated as errors | > rts\CheckUnload.c: In function 'checkUnload': | > | > rts\CheckUnload.c:257:7: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:293:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:297:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > bash-3.1$

Easy to fix: just tack a 'hiding (Handler)' onto the relevant import. Excerpts from Edward Z. Yang's message of Wed Sep 04 02:56:38 -0700 2013:
My latest error:
librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:432:47: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n')
librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:432:69: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n')
librarieshaskelineSystemConsoleHaskelineBackendWin32.hsc:435:15: Ambiguous occurrence `Handler' It could refer to either `System.Console.Haskeline.Backend.Win32.Handler', defined at librarieshaskelineSystemConsoleHaskelineBackendWin32.hs c:430:6 or `System.Console.Haskeline.Monads.Handler', imported from `System.Console.Haskeline.Monads' at librarieshaskel ineSystemConsoleHaskelineBackendWin32.hsc:20:1-38 (and originally defined in `System.Console.Haskeline.MonadExceptio n') make[1]: *** [libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/Win32.o] Error 1 make: *** [all] Error 2
Excerpts from Simon Marlow's message of Wed Sep 04 02:44:18 -0700 2013:
Sorry about that; I'm on it, fix coming soon.
Cheers, Simon
On 03/09/13 15:33, Simon Peyton-Jones wrote:
Simon Marlow: please help! At the moment windows builds are hosed, which is a Bad Situation.
Actually it turns out that what want is
debugBelch("Checking whether to unload %S\n", oc->fileName));
That is, use "%S" rather than "%s" as format specifier for wide chars.
Sadly, this works on Windows, but not on Linux: rts/CheckUnload.c:260:13: error: format ‘%S’ expects argument of type ‘wchar_t *’, but argument 2 has type ‘pathchar *’ [-Werror=format]
So what I need guidance on, please!, is what the approved way to deal with this is. I suppose that I could identify each use of %s on a filepath and say
#ifdef mingw32_HOST_OS debugBelch("Checking whether to unload %S\n", oc->fileName)); #else debugBelch("Checking whether to unload %s\n", oc->fileName)); #endif
But that seems deeply unsatisfactory doesn't it?
If not that, then what?
Simon
| -----Original Message----- | From: Edward Z. Yang [mailto:ezyang@MIT.EDU] | Sent: 28 August 2013 20:59 | To: Simon Peyton-Jones | Cc: ghc-devs@haskell.org | Subject: Re: More windows woe | | My guess is the printf's need to be replaced with swprintf's. | | Edward | | Excerpts from Simon Peyton-Jones's message of Wed Aug 28 01:25:26 -0700 | 2013: | > OK, so now my windows build is getting further, but it now falls over | here. This one looks more straightforward! Can anyone help? | > | > Simon | > | > "inplace/bin/ghc-stage1.exe" -optc-Werror -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-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-O2 - | optc-fomit-frame-pointer -optc-fno-omit-frame-pointer -optc-g -optc-O0 - | optc-DRtsWay=\"rts_debug\" -static -optc-DDEBUG -ticky -DTICKY_TICKY - | H32m -O -Werror -Wall -H64m -O0 -Iincludes -Iincludes/dist - | Iincludes/dist-derivedconstants/header -Iincludes/dist- | ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name | rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen - | Irts/dist/build -Irts/dist/build/autogen -O2 -O0 -c | rts/CheckUnload.c -o rts/dist/build/CheckUnload.debug_o | > cc1.exe: warnings being treated as errors | > rts\CheckUnload.c: In function 'checkUnload': | > | > rts\CheckUnload.c:257:7: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:293:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > | > rts\CheckUnload.c:297:11: | > error: format '%s' expects type 'char *', but argument 2 has type | 'pathchar *' | > bash-3.1$

Here's an interesting error, which I am not so sure how to fix: "inplace/bin/ghc-stage2.exe" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Werror -Wall -H64m -O0 -package-name vector-0.9.1 -hide-all-packages -i -ilibraries/vector/. -ilibraries/vector/dist-install /build -ilibraries/vector/dist-install/build/autogen -Ilibraries/vector/dist-install/build -Ilibraries /vector/dist-install/build/autogen -Ilibraries/vector/include -Ilibraries/vector/internal -optP-DVEC TOR_BOUNDS_CHECKS -optP-include -optPlibraries/vector/dist-install/build/autogen/cabal_macros.h -packa ge base-4.7.0.0 -package ghc-prim-0.3.1.0 -package primitive-0.4.0.1 -O2 -XHaskell98 -XCPP -XDeriveDat aTypeable -O2 -O -dcore-lint -fno-warn-deprecated-flags -no-user-package-db -rtsopts -Wwarn -odir libraries/vector/dist-install/build -hidir libraries/vector/dist-install/build -stubdir libraries/vec tor/dist-install/build -dynamic-too -c libraries/vector/./Data/Vector/Fusion/Stream/Monadic.hs -o lib raries/vector/dist-install/build/Data/Vector/Fusion/Stream/Monadic.o -dyno libraries/vector/dist-insta ll/build/Data/Vector/Fusion/Stream/Monadic.dyn_o Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... ghc-stage2.exe: Unknown PEi386 section name `.drectve' (while processi ng: c:\Users\ezyang\Dev\ghc-validate\libraries\integer-gmp\dist-install\build\libHSinteger-gmp-0.5.1.0 .a) ghc-stage2.exe: panic! (the 'impossible' happened) (GHC version 7.7.20130904 for i386-unknown-mingw32): loadArchive "c:\\Users\\ezyang\\Dev\\ghc-validate\\libraries\\integer-gmp\\dist-install\\build \\libHSinteger-gmp-0.5.1.0.a": failed Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

On 04/09/13 11:47, Edward Z. Yang wrote:
Here's an interesting error, which I am not so sure how to fix:
"inplace/bin/ghc-stage2.exe" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Werror -Wall -H64m -O0 -package-name vector-0.9.1 -hide-all-packages -i -ilibraries/vector/. -ilibraries/vector/dist-install /build -ilibraries/vector/dist-install/build/autogen -Ilibraries/vector/dist-install/build -Ilibraries /vector/dist-install/build/autogen -Ilibraries/vector/include -Ilibraries/vector/internal -optP-DVEC TOR_BOUNDS_CHECKS -optP-include -optPlibraries/vector/dist-install/build/autogen/cabal_macros.h -packa ge base-4.7.0.0 -package ghc-prim-0.3.1.0 -package primitive-0.4.0.1 -O2 -XHaskell98 -XCPP -XDeriveDat aTypeable -O2 -O -dcore-lint -fno-warn-deprecated-flags -no-user-package-db -rtsopts -Wwarn -odir libraries/vector/dist-install/build -hidir libraries/vector/dist-install/build -stubdir libraries/vec tor/dist-install/build -dynamic-too -c libraries/vector/./Data/Vector/Fusion/Stream/Monadic.hs -o lib raries/vector/dist-install/build/Data/Vector/Fusion/Stream/Monadic.o -dyno libraries/vector/dist-insta ll/build/Data/Vector/Fusion/Stream/Monadic.dyn_o Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... ghc-stage2.exe: Unknown PEi386 section name `.drectve' (while processi ng: c:\Users\ezyang\Dev\ghc-validate\libraries\integer-gmp\dist-install\build\libHSinteger-gmp-0.5.1.0 .a) ghc-stage2.exe: panic! (the 'impossible' happened) (GHC version 7.7.20130904 for i386-unknown-mingw32): loadArchive "c:\\Users\\ezyang\\Dev\\ghc-validate\\libraries\\integer-gmp\\dist-install\\build \\libHSinteger-gmp-0.5.1.0.a": failed
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
There's a Ticket For That (TM) http://ghc.haskell.org/trac/ghc/ticket/7056 Bumping priority. Cheers, Simon
participants (3)
-
Edward Z. Yang
-
Simon Marlow
-
Simon Peyton-Jones