alignment failure

Ryan Scott ryan.gl.scott at gmail.com
Thu Dec 24 01:18:11 UTC 2015


Ack, sorry about that. The maintainer of haskeline just made the
relevant changes needed to fix the issue—I just need someone with push
access to update the haskeline submodule.

Ryan S.

On Wed, Dec 23, 2015 at 4:48 PM, Simon Peyton Jones
<simonpj at microsoft.com> wrote:
> Ryan
>
> Your commit d9c13cb8f5be89a030783d758fcf7c077351c6a9 breaks the build of
> ‘haskeline’ on Windows. See below.
>
> I think the fix is to remove the #let from
> libraries/haskeline/./System/Console/Haskeline/Backend/Win32.hsc.
>
> Could you make that, or whatever the right fix is, happen?  Thanks
>
> Simon
>
>
>
> "inplace/bin/hsc2hs.exe" '--cc=C:/code/HEAD/inplace/mingw/bin/gcc.exe'
> '--ld=C:/code/HEAD/inplace/mingw/bin/gcc.exe'   --cflag=-Wall
> --cflag=-Werror --cflag=-fno-stack-protector   --cflag=-Dx86_64_HOST_ARCH=1
> --cflag=-Dmingw32_HOST_OS=1 --cflag=-D__GLASGOW_HASKELL__=711
> '--cflag=-fno-stack-protector' '--cflag=-Wall' '--cflag=-Werror'
> '--cflag=-Ilibraries/haskeline/dist-install/build/autogen'
> '--cflag=-Ilibraries/haskeline/includes' '--cflag=-DUSE_GHC_ENCODINGS'
> '--cflag=-DMINGW' '--cflag=-IC:\code\HEAD\libraries\directory\include'
> '--cflag=-IC:\code\HEAD\libraries\time\lib/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\base\include'
> '--cflag=-IC:\code\HEAD\libraries\integer-gmp\include'
> '--cflag=-IC:/code/HEAD/rts/dist/build' '--cflag=-IC:/code/HEAD/includes'
> '--cflag=-IC:/code/HEAD/includes/dist-derivedconstants/header'
> '--cflag=-Wno-error=inline'
> '--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\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/Backend/Win32.hsc -o
> libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/Win32.hs
>
> Win32.hsc:170:0: error: "hsc_alignment" redefined [-Werror]
>
> In file included from
> libraries/haskeline/dist-install/build/System/Console/Haskeline/Backend/Win32_hsc_make.c:1:0:
>
> C:\code\HEAD\inplace/lib/template-hsc.h:88:0: note: this is the location of
> the previous definition
>
> #define hsc_alignment(t...) \
>
> ^
>
> cc1.exe: all warnings being treated as errors


More information about the ghc-devs mailing list