Skip to content

Does not build on Windows #3

@mpilgrem

Description

@mpilgrem

Building on Windows 11 (with stack version 2.7.5 and lts-19.4 (GHC 9.0.2)) fails with:

brotli> configure (lib)
Configuring brotli-0.0.0.0...
brotli> build (lib)
Preprocessing library for brotli-0.0.0.0..
Building library for brotli-0.0.0.0..
brotli> copy/register
Installing library in C:\Users\mikep\Documents\Code\GitHub\brotli\.stack-work\install\9e456e06\lib\x86_64-windows-ghc-9.0.2\brotli-0.0.0.0-HH3BgkM1KFnCoH8s0HSlFJ
Registering library for brotli-0.0.0.0..
Cabal-simple_Z6RU0evB_3.4.1.0_ghc-9.0.2.exe:
'C:\Users\mikep\AppData\Local\Programs\stack\x86_64-windows\ghc-9.0.2\bin\ghc-pkg-9.0.2.exe'
exited with an error:
brotli-0.0.0.0: Warning: haddock-interfaces:
C:\Users\mikep\Documents\Code\GitHub\brotli\.stack-work\install\9e456e06\doc\brotli-0.0.0.0\brotli.haddock
doesn't exist or isn't a file
brotli-0.0.0.0: library-dirs: /mingw64/lib is a relative path which makes no
sense (as there is nothing for it to be relative to). You can make paths
relative to the package database itself by using ${pkgroot}. (use --force to
override)
brotli-0.0.0.0: dynamic-library-dirs: /mingw64/lib is a relative path which
makes no sense (as there is nothing for it to be relative to). You can make
paths relative to the package database itself by using ${pkgroot}. (use
--force to override)


--  While building package brotli-0.0.0.0 (scroll up to its section to see the error) using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.4.1.0_ghc-9.0.2.exe --builddir=.stack-work\dist\d53b6a14 register
    Process exited with code: ExitFailure 1

This appears to be due to part of brotli.cabal, namely pkgconfig-depends: libbrotlienc, libbrotlidec. If I replace that in a local fork of the package with extra-libraries: libbrotlienc, libbrotlidec, it builds as expected. I will submit a pull request, accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions