You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
mpilgrem
added a commit
to mpilgrem/brotli
that referenced
this issue
Apr 20, 2022
This may, somehow, have been due to there being another MSYS2 set up on my machine. Having now deleted it, and relying only on the stack-supplied MSYS2, I can't repeat the problem. Key steps (extracts only of outputs):
Building on Windows 11 (with
stack
version 2.7.5 andlts-19.4
(GHC 9.0.2)) fails with:This appears to be due to part of
brotli.cabal
, namelypkgconfig-depends: libbrotlienc, libbrotlidec
. If I replace that in a local fork of the package withextra-libraries: libbrotlienc, libbrotlidec
, it builds as expected. I will submit a pull request, accordingly.The text was updated successfully, but these errors were encountered: