Building JuicyPixels with ghc 9.4.1: Not a x86_64 PE+ file - Unknown COFF 4 type in getHeaderInfo
When building JuicyPixels
with GHC 9.4.1 on Windows, I get the following error:
> cabal build JuicyPixels
Build profile: -w ghc-9.4.1 -O1
In order, the following will be built (use -v for more details):
- JuicyPixels-3.3.7 (lib) (requires build)
Starting JuicyPixels-3.3.7 (lib)
Building JuicyPixels-3.3.7 (lib)
Failed to build JuicyPixels-3.3.7.
Build log (
C:\Haskell\cabal\logs\ghc-9.4.1\JuicyPixels-3.3.7-26f2bc392703075497d05645bc10b4f8122a8e48.log
):
Preprocessing library for JuicyPixels-3.3.7..
Building library for JuicyPixels-3.3.7..
[ 1 of 30] Compiling Codec.Picture.InternalHelper ( src\Codec\Picture\InternalHelper.hs, dist\build\Codec\Picture\InternalHelper.o )
[ 2 of 30] Compiling Codec.Picture.Metadata.Exif ( src\Codec\Picture\Metadata\Exif.hs, dist\build\Codec\Picture\Metadata\Exif.o )
[ 3 of 30] Compiling Codec.Picture.Metadata ( src\Codec\Picture\Metadata.hs, dist\build\Codec\Picture\Metadata.o )
[ 4 of 30] Compiling Codec.Picture.Tiff.Internal.Types ( src\Codec\Picture\Tiff\Internal\Types.hs, dist\build\Codec\Picture\Tiff\Internal\Types.o )
[ 5 of 30] Compiling Codec.Picture.Tiff.Internal.Metadata ( src\Codec\Picture\Tiff\Internal\Metadata.hs, dist\build\Codec\Picture\Tiff\Internal\Metadata.o )
[ 6 of 30] Compiling Codec.Picture.Types ( src\Codec\Picture\Types.hs, dist\build\Codec\Picture\Types.o )
ghc-9.4.1.exe: C:\Haskell\cabal\store\ghc-9.4.1\zlib-0.6.3.0-7a1fd273333adaed1e8191ca71010df5e5891eaf\lib\libHSzlib-0.6.3.0-7a1fd273333adaed1e8191ca71010df5e5891eaf.a(#6:Stream.o): Not a x86_64 PE+ file.
ghc-9.4.1.exe: Unknown COFF 4 type in getHeaderInfo.
<no location info>: error:
loadArchive "C:\\Haskell\\cabal\\store\\ghc-9.4.1\\zlib-0.6.3.0-7a1fd273333adaed1e8191ca71010df5e5891eaf\\lib\\libHSzlib-0.6.3.0-7a1fd273333adaed1e8191ca71010df5e5891eaf.a": failed
cabal-3.6.2.0.exe: Failed to build JuicyPixels-3.3.7. See the build log above
for details.