
My clean Windows validate build fails as below libraries\haskeline\System\Console\Haskeline\Backend\Win32.hsc:169 directive "let" is not safe for cross-compilation: Does anyone know what is going on? It used to work. Sigh. Simon "inplace/bin/hsc2hs.exe" --cc=c:/code/HEAD/inplace/mingw/bin/gcc.exe --ld=c:/code/HEAD/inplace/mingw/bin/gcc.exe --cross-safe --cflag=-Werror --cflag=-Wall --cflag=-fno-stack-protector --cflag=-D__GLASGOW_HASKELL__=707 --cflag=-Di386_HOST_ARCH=1 --cflag=-Dmingw32_HOST_OS=1 '--cflag=-fno-stack-protector' '--cflag=-Werror' '--cflag=-Wall' '--cflag=-Ilibraries/haskeline/includes' '--cflag=-DUSE_GHC_ENCODINGS' '--cflag=-DMINGW' '--cflag=-Ic:\code\HEAD\libraries\directory\include' '--cflag=-Ic:\code\HEAD\libraries\time\include' '--cflag=-Ic:\code\HEAD\libraries\containers\include' '--cflag=-Ic:\code\HEAD\libraries\Win32\include' '--cflag=-Ic:\code\HEAD\libraries\bytestring\include' '--cflag=-Ic:\code\HEAD\libraries\array\include' '--cflag=-Ic:\code\HEAD\libraries\base\include' '--cflag=-Ic:/code/HEAD/rts/dist/build' '--cflag=-Ic:/code/HEAD/includes' '--cflag=-Ic:/code/HEAD/includes/dist-derivedconstants/header' '--lflag=-Wl,--hash-size=31' '--lflag=-Wl,--reduce-memory-overheads' '--lflag=-Lc:\code\HEAD\libraries\transformers\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\directory\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\time\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\old-locale\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\filepath\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\containers\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\Win32\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\bytestring\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\deepseq\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\array\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\base\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\integer-gmp\dist-install\build' '--lflag=-Lc:\code\HEAD\libraries\ghc-prim\dist-install\build' '--lflag=-Lc:/code/HEAD/rts/dist/build' '--lflag=-luser32' '--lflag=-lgdi32' '--lflag=-lwinmm' '--lflag=-ladvapi32' '--lflag=-lshell32' '--lflag=-lshfolder' '--lflag=-lwsock32' '--lflag=-luser32' '--lflag=-lshell32' '--lflag=-lm' '--lflag=-lwsock32' '--lflag=-lgdi32' '--lflag=-lwinmm' '--lflag=-lmingwex' --cflag=-Ilibraries/haskeline/dist-install/build/autogen --cflag=-include --cflag=libraries/haskeline/dist-install/build/autogen/cabal_macros.h libraries/haskeline/./System/Console/Haskeline/Directory.hsc -o libraries/haskeline/dist-install/build/System/Console/Haskeline/Directory.hs libraries\haskeline\System\Console\Haskeline\Backend\Win32.hsc:169 directive "let" is not safe for cross-compilation make[1]: *** [libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/Win32.hs] Error 1 make[1]: *** Waiting for unfinished jobs....

On Sat, Mar 02, 2013 at 12:27:16PM +0000, Simon Peyton-Jones wrote:
My clean Windows validate build fails as below
libraries\haskeline\System\Console\Haskeline\Backend\Win32.hsc:169 directive "let" is not safe for cross-compilation:
Does anyone know what is going on? It used to work. Sigh.
I've just built successfully on Windows.
Do you have this patch?:
commit 535964b1923f9f8df52adaef014441bc454ebf9b
Author: Ian Lynagh

I had updated and continued; same error; but when I started from scratch it has just worked. Great! I must have caught a snapshot between an update that broke it and one that fixed it.
Thanks
S
| -----Original Message-----
| From: Ian Lynagh [mailto:ian@well-typed.com]
| Sent: 02 March 2013 14:46
| To: Simon Peyton-Jones
| Cc: ghc-devs@haskell.org
| Subject: Re: Stuck again
|
| On Sat, Mar 02, 2013 at 12:27:16PM +0000, Simon Peyton-Jones wrote:
| > My clean Windows validate build fails as below
| >
| > libraries\haskeline\System\Console\Haskeline\Backend\Win32.hsc:169 directive
| "let" is not safe for cross-compilation:
| >
| > Does anyone know what is going on? It used to work. Sigh.
|
| I've just built successfully on Windows.
|
| Do you have this patch?:
|
| commit 535964b1923f9f8df52adaef014441bc454ebf9b
| Author: Ian Lynagh
participants (2)
-
Ian Lynagh
-
Simon Peyton-Jones