Problem with installing "primitive" on Windows/i686

Austin Seipp austin at
Mon Nov 3 14:16:46 UTC 2014


I'm afraid I don't quite know what's going on immediately, but at a
glance it seems to be some Cabal bug.

I'm not quite sure why it specifically has the 'includes' directive
set to primitive-memops.h, considering 'include-dirs' and 'c-sources'
are set properly.

Have you tried fiddling with any of these and seen any different behavior?

On Sun, Nov 2, 2014 at 4:53 PM, Gintautas Miliauskas
<gintautas.miliauskas at> wrote:
> Installation of Alex in the msys2 i686 instructions is broken, more details
> in Before I spend more time on
> this, maybe someone knows off the bat what's going on?
> $ cabal install alex
> Resolving dependencies...
> Downloading primitive-
> Configuring primitive-
> Failed to install primitive-
> Build log ( C:\Users\Gintas\AppData\Roaming\cabal\logs\primitive-
> ):
> [1 of 1] Compiling Main             (
> C:\Users\Gintas\Downloads\msys32\tmp\primitive-\primitive-\dist\setup\setup.hs,
> C:\Users\Gintas\Downloads\msys32\tmp\primitive-\primitive-\dist\setup\Main.o
> )
> Linking
> C:\Users\Gintas\Downloads\msys32\tmp\primitive-\primitive-\dist\setup\setup.exe
> ...
> Configuring primitive-
> setup-Simple-Cabal- Missing dependency
> on
> a foreign library:
> * Missing (or bad) header file: primitive-memops.h
> This problem can usually be solved by installing the system package that
> provides this library (you may need the "-dev" version). If the library is
> already installed but in a non-standard location then you can use the flags
> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
> If the header file does exist, it may contain errors that are caught by the
> C
> compiler at the preprocessing stage. In this case you can re-run configure
> with the verbosity flag -v3 to see the error messages.
> --
> Gintautas Miliauskas
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at


Austin Seipp, Haskell Consultant
Well-Typed LLP,

More information about the ghc-devs mailing list