Windows build failures in FD.hs

Austin Seipp austin
Wed Oct 2 01:42:20 UTC 2013


Thanks for pointing this out Reid. Fixed.

On Tue, Oct 1, 2013 at 5:35 PM, Reid Barton <rwbarton at gmail.com> wrote:
> Looks like this is caused by the addition of "default-language: Haskell2010"
> (which is not the default default, apparently!) in base.cabal in commit
> dfb52c3d58 from Saturday.
>
> See
> http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs-and-infelicities.html#haskell-standards-divergence,
> section 14.1.1.2.
>
> Regards,
> Reid Barton
>
>
> On Tue, Oct 1, 2013 at 6:08 PM, Simon Peyton-Jones <simonpj at microsoft.com>
> wrote:
>>
>> I have not seen that and I build on Windows all the time.  The relevant
>> big in FD.hs is
>>
>> #ifndef mingw32_HOST_OS
>> getUniqueFileInfo _ dev ino = return (fromIntegral dev, fromIntegral ino)
>> #else
>> getUniqueFileInfo fd _ _ = do
>>   with 0 $ \devptr -> do
>>   with 0 $ \inoptr -> do
>>   c_getUniqueFileInfo fd devptr inoptr
>>   liftM2 (,) (peek devptr) (peek inoptr)
>> #endif
>>
>>
>> Maybe copy/paste the command that compiles FD.hs and use -E to see the
>> output of the C pre-processor?
>>
>> S
>>
>> | -----Original Message-----
>> | From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Edsko
>> | de Vries
>> | Sent: 01 October 2013 17:19
>> | To: ghc-devs at haskell.org
>> | Subject: Windows build failures in FD.hs
>> |
>> | Hi all,
>> |
>> | I'm still trying to get a Windows build (Win 7, tried both 32-bit and
>> | 64-bit, same result) -- using THREADS=1. When running 'sh validate',
>> | compilation eventually stops with
>> |
>> | "inplace/bin/ghc-stage1.exe" -hisuf hi -osuf  o -hcsuf hc -static
>> | -H32m -O -Werror -Wall -H64m -O0    -package-name base-4.7.0.0
>> | -hide-all-packages -i -ilibraries/base/.
>> | -ilibraries/base/dist-install/build
>> | -ilibraries/base/dist-install/build/autogen
>> | -Ilibraries/base/dist-install/build
>> | -Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include
>> | -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include
>> | -optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package
>> | ghc-prim-0.3.1.0 -package integer-gmp-0.5.1.0 -package rts-1.0
>> | -package-name base -XHaskell2010 -O2 -O -dcore-lint -fno-warn-amp
>> | -fno-warn-deprecated-flags  -no-user-package-db -rtsopts      -odir
>> | libraries/base/dist-install/build -hidir
>> | libraries/base/dist-install/build -stubdir
>> | libraries/base/dist-install/build  -dynamic-too -c
>> | libraries/base/./GHC/IO/FD.hs -o
>> | libraries/base/dist-install/build/GHC/IO/FD.o -dyno
>> | libraries/base/dist-install/build/GHC/IO/FD.dyn_o
>> |
>> | libraries\base\GHC\IO\FD.hs:281:23: Empty 'do' block
>> |
>> | libraries\base\GHC\IO\FD.hs:282:23: Empty 'do' block
>> |
>> | libraries\base\GHC\IO\FD.hs:283:26: Not in scope: `devptr'
>> |
>> | libraries\base\GHC\IO\FD.hs:283:33: Not in scope: `inoptr'
>> |
>> | libraries\base\GHC\IO\FD.hs:284:20: Not in scope: `devptr'
>> |
>> | libraries\base\GHC\IO\FD.hs:284:34: Not in scope: `inoptr'
>> | make[1]: *** [libraries/base/dist-install/build/GHC/IO/FD.o] Error 1
>> | make: *** [all] Error 2
>> |
>> | Since nobody else seems to be experiencing this, there must be
>> | something wrong with my setup? I've tried to follow
>> | http://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows best
>> | I could, but I'm not a Windows user so I might have got something
>> | wrong.
>> |
>> | Any suggestions welcome!
>> |
>> | Edsko
>> | _______________________________________________
>> | ghc-devs mailing list
>> | ghc-devs at haskell.org
>> | http://www.haskell.org/mailman/listinfo/ghc-devs
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org
>> http://www.haskell.org/mailman/listinfo/ghc-devs
>
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>



-- 
Austin Seipp, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/



More information about the ghc-devs mailing list