Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails under 9.10 #1022

Open
flajann2 opened this issue Feb 14, 2025 · 19 comments
Open

Build fails under 9.10 #1022

flajann2 opened this issue Feb 14, 2025 · 19 comments

Comments

@flajann2
Copy link

I am looking to create a small website using servant. However, warp is failing to cooperate.
I've tried using GHC2024 and GHC2021. Same error. GHC2010 is even worse!

Apparently there us a line being executed in the code that should not be under 9.10

OS: Arch Linux x86_64
Host: NH50_70RA
Kernel: Linux 6.9.7-arch1-1
Uptime: 22 hours, 55 mins
Packages: 2591 (pacman), 944 (nix-user), 370 (nix-default), 33 (flatpak)
Shell: fish 3.7.1
Display (HISENSE): 3840x2160 @ 30 Hz in 52" [External]
WM: Hyprland 0.47.2 (Wayland)
Theme: Breeze-Dark [GTK2/3]
Icons: breeze-dark [GTK2/3/4]
Font: Noto Sans (10pt) [GTK2/3/4]
Cursor: Oxygen_Blue (24px)
Terminal: kitty 0.39.1
Terminal Font: NotoSansMono-Regular (9pt)
CPU: Intel(R) Core(TM) i5-9300H (8) @ 4.10 GHz
GPU 1: NVIDIA GeForce GTX 1650 Mobile / Max-Q [Discrete]
GPU 2: Intel UHD Graphics 630 @ 1.05 GHz [Integrated]
Memory: 26.94 GiB / 31.19 GiB (86%)
Swap: Disabled
Disk (/): 1.36 TiB / 1.82 TiB (75%) - btrfs
Disk (/miloba): 128.00 KiB / 1.03 TiB (0%) - zfs
Local IP (br0): 192.168.0.195/24
Battery (BAT): 100% [AC Connected]
Locale: en_US.UTF-8

cabal build
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following will be built (use -v for more details):
 - warp-3.4.7 (lib) (requires build)
 - wai-extra-3.1.17 (lib) (requires build)
 - wai-app-static-3.1.9 (lib) (requires build)
 - servant-server-0.20.2 (lib) (requires build)
 - atomlogik-de-0.1.0.0 (lib) (first run)
 - atomlogik-de-0.1.0.0 (exe:atomlogik-de) (first run)
Starting     warp-3.4.7 (lib)
Building     warp-3.4.7 (lib)

Failed to build warp-3.4.7.
Build log (
/home/eltoro/.cabal/logs/ghc-9.10.1/warp-3.4.7-cd4cfa67214f9f068b3ca9a0ee701c507aa62fb1c4fb7a45663b8018200468df.log
):
Configuring library for warp-3.4.7...
Warning: [git-protocol] Cloning over git:// might lead to an arbitrary code
execution vulnerability. Furthermore, popular forges like GitHub do not
support it. Use https:// or ssh:// instead.
Preprocessing library for warp-3.4.7...
Building library for warp-3.4.7...
[ 1 of 34] Compiling Network.Wai.Handler.Warp.Date ( Network/Wai/Handler/Warp/Date.hs, dist/build/Network/Wai/Handler/Warp/Date.o, dist/build/Network/Wai/Handler/Warp/Date.dyn_o )
[ 2 of 34] Compiling Network.Wai.Handler.Warp.HashMap ( Network/Wai/Handler/Warp/HashMap.hs, dist/build/Network/Wai/Handler/Warp/HashMap.o, dist/build/Network/Wai/Handler/Warp/HashMap.dyn_o )
[ 3 of 34] Compiling Network.Wai.Handler.Warp.Imports ( Network/Wai/Handler/Warp/Imports.hs, dist/build/Network/Wai/Handler/Warp/Imports.o, dist/build/Network/Wai/Handler/Warp/Imports.dyn_o )
[ 4 of 34] Compiling Network.Wai.Handler.Warp.FileInfoCache ( Network/Wai/Handler/Warp/FileInfoCache.hs, dist/build/Network/Wai/Handler/Warp/FileInfoCache.o, dist/build/Network/Wai/Handler/Warp/FileInfoCache.dyn_o )
[ 5 of 34] Compiling Network.Wai.Handler.Warp.Counter ( Network/Wai/Handler/Warp/Counter.hs, dist/build/Network/Wai/Handler/Warp/Counter.o, dist/build/Network/Wai/Handler/Warp/Counter.dyn_o )
[ 6 of 34] Compiling Network.Wai.Handler.Warp.MultiMap ( Network/Wai/Handler/Warp/MultiMap.hs, dist/build/Network/Wai/Handler/Warp/MultiMap.o, dist/build/Network/Wai/Handler/Warp/MultiMap.dyn_o )
[ 7 of 34] Compiling Network.Wai.Handler.Warp.FdCache ( Network/Wai/Handler/Warp/FdCache.hs, dist/build/Network/Wai/Handler/Warp/FdCache.o, dist/build/Network/Wai/Handler/Warp/FdCache.dyn_o )
[ 8 of 34] Compiling Network.Wai.Handler.Warp.PackInt ( Network/Wai/Handler/Warp/PackInt.hs, dist/build/Network/Wai/Handler/Warp/PackInt.o, dist/build/Network/Wai/Handler/Warp/PackInt.dyn_o )
[ 9 of 34] Compiling Network.Wai.Handler.Warp.ReadInt ( Network/Wai/Handler/Warp/ReadInt.hs, dist/build/Network/Wai/Handler/Warp/ReadInt.o, dist/build/Network/Wai/Handler/Warp/ReadInt.dyn_o )
[10 of 34] Compiling Network.Wai.Handler.Warp.ResponseHeader ( Network/Wai/Handler/Warp/ResponseHeader.hs, dist/build/Network/Wai/Handler/Warp/ResponseHeader.o, dist/build/Network/Wai/Handler/Warp/ResponseHeader.dyn_o )
Network/Wai/Handler/Warp/ResponseHeader.hs:9:1: warning: [GHC-66111] [-Wunused-imports]
    The import of ‘Data.List’ is redundant
      except perhaps to import instances from ‘Data.List’
    To import instances alone, use: import Data.List()
  |
9 | import Data.List (foldl')
  | ^^^^^^^^^^^^^^^^^^^^^^^^^

[11 of 34] Compiling Network.Wai.Handler.Warp.Types ( Network/Wai/Handler/Warp/Types.hs, dist/build/Network/Wai/Handler/Warp/Types.o, dist/build/Network/Wai/Handler/Warp/Types.dyn_o )
[12 of 34] Compiling Network.Wai.Handler.Warp.RequestHeader ( Network/Wai/Handler/Warp/RequestHeader.hs, dist/build/Network/Wai/Handler/Warp/RequestHeader.o, dist/build/Network/Wai/Handler/Warp/RequestHeader.dyn_o )
[13 of 34] Compiling Network.Wai.Handler.Warp.Header ( Network/Wai/Handler/Warp/Header.hs, dist/build/Network/Wai/Handler/Warp/Header.o, dist/build/Network/Wai/Handler/Warp/Header.dyn_o )
[14 of 34] Compiling Network.Wai.Handler.Warp.File ( Network/Wai/Handler/Warp/File.hs, dist/build/Network/Wai/Handler/Warp/File.o, dist/build/Network/Wai/Handler/Warp/File.dyn_o )
[15 of 34] Compiling Network.Wai.Handler.Warp.HTTP2.Types ( Network/Wai/Handler/Warp/HTTP2/Types.hs, dist/build/Network/Wai/Handler/Warp/HTTP2/Types.o, dist/build/Network/Wai/Handler/Warp/HTTP2/Types.dyn_o )
[16 of 34] Compiling Network.Wai.Handler.Warp.Conduit ( Network/Wai/Handler/Warp/Conduit.hs, dist/build/Network/Wai/Handler/Warp/Conduit.o, dist/build/Network/Wai/Handler/Warp/Conduit.dyn_o )
[17 of 34] Compiling Network.Wai.Handler.Warp.Buffer ( Network/Wai/Handler/Warp/Buffer.hs, dist/build/Network/Wai/Handler/Warp/Buffer.o, dist/build/Network/Wai/Handler/Warp/Buffer.dyn_o )
[18 of 34] Compiling Network.Wai.Handler.Warp.SendFile ( Network/Wai/Handler/Warp/SendFile.hs, dist/build/Network/Wai/Handler/Warp/SendFile.o, dist/build/Network/Wai/Handler/Warp/SendFile.dyn_o )
[19 of 34] Compiling Network.Wai.Handler.Warp.HTTP2.File ( Network/Wai/Handler/Warp/HTTP2/File.hs, dist/build/Network/Wai/Handler/Warp/HTTP2/File.o, dist/build/Network/Wai/Handler/Warp/HTTP2/File.dyn_o )
[20 of 34] Compiling Network.Wai.Handler.Warp.IO ( Network/Wai/Handler/Warp/IO.hs, dist/build/Network/Wai/Handler/Warp/IO.o, dist/build/Network/Wai/Handler/Warp/IO.dyn_o)
[21 of 34] Compiling Network.Wai.Handler.Warp.Windows ( Network/Wai/Handler/Warp/Windows.hs, dist/build/Network/Wai/Handler/Warp/Windows.o, dist/build/Network/Wai/Handler/Warp/Windows.dyn_o )
[22 of 34] Compiling Paths_warp       ( dist/build/autogen/Paths_warp.hs, dist/build/Paths_warp.o, dist/build/Paths_warp.dyn_o )
[23 of 34] Compiling Network.Wai.Handler.Warp.Settings ( Network/Wai/Handler/Warp/Settings.hs, dist/build/Network/Wai/Handler/Warp/Settings.o, dist/build/Network/Wai/Handler/Warp/Settings.dyn_o )
Network/Wai/Handler/Warp/Settings.hs:307:20: error: [GHC-83865]
    • Couldn't match expected type: GHC.Prim.State# GHC.Prim.RealWorld
                                    -> (# GHC.Prim.State# GHC.Prim.RealWorld, a0 #)
                  with actual type: IO ()
    • In the first argument of ‘fork#’, namely ‘(io unsafeUnmask)’
      In the expression: fork# (io unsafeUnmask) s0
      In the expression:
        case fork# (io unsafeUnmask) s0 of (# s1, _tid #) -> (# s1, () #)
    |
307 |         case fork# (io unsafeUnmask) s0 of
@flajann2
Copy link
Author

@Bodigrim
Copy link
Contributor

Bodigrim commented Feb 14, 2025

The offending line seems to be correctly guarded by CPP:

#if __GLASGOW_HASKELL__ >= 904
case io unsafeUnmask of
IO io' ->
case fork# io' s0 of
(# s1, _tid #) -> (# s1, () #)
#else
case fork# (io unsafeUnmask) s0 of
(# s1, _tid #) -> (# s1, () #)
#endif

That said, something feels off with your Cabal. Given Warning: [git-protocol] it should be fairly new, yet pathes like dist/build are from v1-build which has not been a default behaviour for a very long time. What's the output of cabal --version? What happens if you explicitly ask for cabal v2-build?

@Bodigrim
Copy link
Contributor

Bodigrim commented Feb 14, 2025

Did you by any chance run cabal configure with one version of GHC, then cabal v1-build with a different version of GHC?

@flajann2
Copy link
Author

flajann2 commented Feb 15, 2025

 cabal --version
cabal-install version 3.14.1.1
compiled using version 3.14.1.1 of the Cabal library

My version of cabal should automatically default to v2, but I did what ytou suggested, and it still broke:

Network/Wai/Handler/Warp/Settings.hs:307:20: error: [GHC-83865]
    • Couldn't match expected type: GHC.Prim.State# GHC.Prim.RealWorld
                                    -> (# GHC.Prim.State# GHC.Prim.RealWorld, a0 #)
                  with actual type: IO ()
    • In the first argument of ‘fork#’, namely ‘(io unsafeUnmask)’
      In the expression: fork# (io unsafeUnmask) s0
      In the expression:
        case fork# (io unsafeUnmask) s0 of (# s1, _tid #) -> (# s1, () #)
    |
307 |         case fork# (io unsafeUnmask) s0 of
    |                    ^^^^^^^^^^^^^^^^^

@flajann2
Copy link
Author

About the cabal configure, I don't think I've ever ran that. I was using stack for the longest time, then switched most or all of my projects over to cabal v2 months ago.

@Vlix
Copy link
Contributor

Vlix commented Feb 15, 2025

Doesn't seem like an issue with warp... though I'm very interested in knowing what's going on here.

@flajann2
Copy link
Author

#if __GLASGOW_HASKELL__ >= 904
        case io unsafeUnmask of
            IO io' ->
                case fork# io' s0 of
                    (# s1, _tid #) -> (# s1, () #)
#else
        case fork# (io unsafeUnmask) s0 of -- the crash is here, but I am running 9.10
            (# s1, _tid #) -> (# s1, () #)
#endif

@flajann2
Copy link
Author

I am starting to smell a king-sized rat here. There are two versions of ghc installed on my system:

The system version is 9.2.8
The local dev version is 9.10.1

Ideally, the local (to my Linux account installed by ghcup, should only be the one running. But how is GLASGOW_HASKELL set? my suspicion is that whatever sets that variable must be getting it from the system version as the code is being compiled by the local version.

Let me try something simple: rename the system version and run the compilation again.

@tomjaguarpaw
Copy link

FWIW, this succeeds, so the CPP is, in principle, doing the correct job

cabal repl -b warp==3.4.7 -w ghc-9.10

@flajann2
Copy link
Author

flajann2 commented Feb 15, 2025

Just tried deleting the system ghc link and it still fails.

I don't know what else to try other than forking the code and modifying it so it works for me, and I really don't want to do that.

I tried doing this:

-- ver.hs

{-# LANGUAGE CPP #-}
module Main where
main :: IO ()
main = putStrLn $ "GHC Version: " ++ show __GLASGOW_HASKELL__

and ran:

runhaskell ver.hs

And the result?

GHC Version: 910, the expected result.

So something oddball is really going on here.

Just to see what would happen, I tried it with the system version of ghc:

sudo runhaskell ver.hs
GHC Version: 902

Which is also expected of the system version. So now the question is: how is tha macro getting the wrong version when warp is compiled by cabal build?

@tomjaguarpaw
Copy link

Can you try the command here: #1022 (comment)

@tomjaguarpaw
Copy link

Actually, might be better with -z:

cabal repl -z -b warp==3.4.7 -w ghc-9.10

Perhaps try both.

@flajann2
Copy link
Author

Tried it. Same deal.

cabal repl -b warp==3.4.7 -w ghc-9.10
Configuration is affected by the following files:
- cabal.project.local
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following will be built (use -v for more details):
 - warp-3.4.7 (lib) (requires build)
 - wai-extra-3.1.17 (lib) (requires build)
 - wai-app-static-3.1.9 (lib) (requires build)
 - servant-server-0.20.2 (lib) (requires build)
 - atomlogik-de-0.1.0.0 (interactive) (lib) (first run)
Starting     warp-3.4.7 (lib)
Building     warp-3.4.7 (lib)

Failed to build warp-3.4.7.
Build log (
/home/eltoro/.cabal/logs/ghc-9.10.1/warp-3.4.7-cd4cfa67214f9f068b3ca9a0ee701c507aa62fb1c4fb7a45663b8018200468df.log
):
Configuring library for warp-3.4.7...
Warning: [git-protocol] Cloning over git:// might lead to an arbitrary code
execution vulnerability. Furthermore, popular forges like GitHub do not
support it. Use https:// or ssh:// instead.
Preprocessing library for warp-3.4.7...
Building library for warp-3.4.7...
[ 1 of 34] Compiling Network.Wai.Handler.Warp.Date ( Network/Wai/Handler/Warp/Date.hs, dist/build/Network/Wai/Handler/Warp/Date.o, dist/build/Network/Wai/Handler/Warp/Date.dyn_o )
[ 2 of 34] Compiling Network.Wai.Handler.Warp.HashMap ( Network/Wai/Handler/Warp/HashMap.hs, dist/build/Network/Wai/Handler/Warp/HashMap.o, dist/build/Network/Wai/Handler/Warp/HashMap.dyn_o )
[ 3 of 34] Compiling Network.Wai.Handler.Warp.Imports ( Network/Wai/Handler/Warp/Imports.hs, dist/build/Network/Wai/Handler/Warp/Imports.o, dist/build/Network/Wai/Handler/Warp/Imports.dyn_o )
[ 4 of 34] Compiling Network.Wai.Handler.Warp.FileInfoCache ( Network/Wai/Handler/Warp/FileInfoCache.hs, dist/build/Network/Wai/Handler/Warp/FileInfoCache.o, dist/build/Network/Wai/Handler/Warp/FileInfoCache.dyn_o )
[ 5 of 34] Compiling Network.Wai.Handler.Warp.Counter ( Network/Wai/Handler/Warp/Counter.hs, dist/build/Network/Wai/Handler/Warp/Counter.o, dist/build/Network/Wai/Handler/Warp/Counter.dyn_o )
[ 6 of 34] Compiling Network.Wai.Handler.Warp.MultiMap ( Network/Wai/Handler/Warp/MultiMap.hs, dist/build/Network/Wai/Handler/Warp/MultiMap.o, dist/build/Network/Wai/Handler/Warp/MultiMap.dyn_o )
[ 7 of 34] Compiling Network.Wai.Handler.Warp.FdCache ( Network/Wai/Handler/Warp/FdCache.hs, dist/build/Network/Wai/Handler/Warp/FdCache.o, dist/build/Network/Wai/Handler/Warp/FdCache.dyn_o )
[ 8 of 34] Compiling Network.Wai.Handler.Warp.PackInt ( Network/Wai/Handler/Warp/PackInt.hs, dist/build/Network/Wai/Handler/Warp/PackInt.o, dist/build/Network/Wai/Handler/Warp/PackInt.dyn_o )
[ 9 of 34] Compiling Network.Wai.Handler.Warp.ReadInt ( Network/Wai/Handler/Warp/ReadInt.hs, dist/build/Network/Wai/Handler/Warp/ReadInt.o, dist/build/Network/Wai/Handler/Warp/ReadInt.dyn_o )
[10 of 34] Compiling Network.Wai.Handler.Warp.ResponseHeader ( Network/Wai/Handler/Warp/ResponseHeader.hs, dist/build/Network/Wai/Handler/Warp/ResponseHeader.o, dist/build/Network/Wai/Handler/Warp/ResponseHeader.dyn_o )
Network/Wai/Handler/Warp/ResponseHeader.hs:9:1: warning: [GHC-66111] [-Wunused-imports]
    The import of ‘Data.List’ is redundant
      except perhaps to import instances from ‘Data.List’
    To import instances alone, use: import Data.List()
  |
9 | import Data.List (foldl')
  | ^^^^^^^^^^^^^^^^^^^^^^^^^

[11 of 34] Compiling Network.Wai.Handler.Warp.Types ( Network/Wai/Handler/Warp/Types.hs, dist/build/Network/Wai/Handler/Warp/Types.o, dist/build/Network/Wai/Handler/Warp/Types.dyn_o )
[12 of 34] Compiling Network.Wai.Handler.Warp.RequestHeader ( Network/Wai/Handler/Warp/RequestHeader.hs, dist/build/Network/Wai/Handler/Warp/RequestHeader.o, dist/build/Network/Wai/Handler/Warp/RequestHeader.dyn_o )
[13 of 34] Compiling Network.Wai.Handler.Warp.Header ( Network/Wai/Handler/Warp/Header.hs, dist/build/Network/Wai/Handler/Warp/Header.o, dist/build/Network/Wai/Handler/Warp/Header.dyn_o )
[14 of 34] Compiling Network.Wai.Handler.Warp.File ( Network/Wai/Handler/Warp/File.hs, dist/build/Network/Wai/Handler/Warp/File.o, dist/build/Network/Wai/Handler/Warp/File.dyn_o )
[15 of 34] Compiling Network.Wai.Handler.Warp.HTTP2.Types ( Network/Wai/Handler/Warp/HTTP2/Types.hs, dist/build/Network/Wai/Handler/Warp/HTTP2/Types.o, dist/build/Network/Wai/Handler/Warp/HTTP2/Types.dyn_o )
[16 of 34] Compiling Network.Wai.Handler.Warp.Conduit ( Network/Wai/Handler/Warp/Conduit.hs, dist/build/Network/Wai/Handler/Warp/Conduit.o, dist/build/Network/Wai/Handler/Warp/Conduit.dyn_o )
[17 of 34] Compiling Network.Wai.Handler.Warp.Buffer ( Network/Wai/Handler/Warp/Buffer.hs, dist/build/Network/Wai/Handler/Warp/Buffer.o, dist/build/Network/Wai/Handler/Warp/Buffer.dyn_o )
[18 of 34] Compiling Network.Wai.Handler.Warp.SendFile ( Network/Wai/Handler/Warp/SendFile.hs, dist/build/Network/Wai/Handler/Warp/SendFile.o, dist/build/Network/Wai/Handler/Warp/SendFile.dyn_o )
[19 of 34] Compiling Network.Wai.Handler.Warp.HTTP2.File ( Network/Wai/Handler/Warp/HTTP2/File.hs, dist/build/Network/Wai/Handler/Warp/HTTP2/File.o, dist/build/Network/Wai/Handler/Warp/HTTP2/File.dyn_o )
[20 of 34] Compiling Network.Wai.Handler.Warp.IO ( Network/Wai/Handler/Warp/IO.hs, dist/build/Network/Wai/Handler/Warp/IO.o, dist/build/Network/Wai/Handler/Warp/IO.dyn_o)
[21 of 34] Compiling Network.Wai.Handler.Warp.Windows ( Network/Wai/Handler/Warp/Windows.hs, dist/build/Network/Wai/Handler/Warp/Windows.o, dist/build/Network/Wai/Handler/Warp/Windows.dyn_o )
[22 of 34] Compiling Paths_warp       ( dist/build/autogen/Paths_warp.hs, dist/build/Paths_warp.o, dist/build/Paths_warp.dyn_o )
[23 of 34] Compiling Network.Wai.Handler.Warp.Settings ( Network/Wai/Handler/Warp/Settings.hs, dist/build/Network/Wai/Handler/Warp/Settings.o, dist/build/Network/Wai/Handler/Warp/Settings.dyn_o )
Network/Wai/Handler/Warp/Settings.hs:307:20: error: [GHC-83865]
    • Couldn't match expected type: GHC.Prim.State# GHC.Prim.RealWorld
                                    -> (# GHC.Prim.State# GHC.Prim.RealWorld, a0 #)
                  with actual type: IO ()
    • In the first argument of ‘fork#’, namely ‘(io unsafeUnmask)’
      In the expression: fork# (io unsafeUnmask) s0
      In the expression:
        case fork# (io unsafeUnmask) s0 of (# s1, _tid #) -> (# s1, () #)
    |
307 |         case fork# (io unsafeUnmask) s0 of
    |                    ^^^^^^^^^^^^^^^^^

Error: [Cabal-7125]
Failed to build warp-3.4.7 (which is required by atomlogik-de-0.1.0.0). See the build log above for details.

Let me try removing all but 9.10 with ghcup and see if that makes a difference.

@georgefst
Copy link

This looks a lot like #982. Have you tried removing the system GHC entirely?

@tomjaguarpaw
Copy link

Please try with -z:

cabal repl -z -b warp==3.4.7 -w ghc-9.10

@flajann2
Copy link
Author

@tomjaguarpaw I did and it still failed.
@georgefst I'll try that next, though it will break dependencies.

@georgefst
Copy link

I'll try that next, though it will break dependencies.

Other fixes are using Cabal 3.10 or passing --constraint='zlib -pkg-config'.

@flajann2
Copy link
Author

@georgefst that worked!!!!!

cabal repl -z -b warp==3.4.7 -w ghc-9.10 --constraint='zlib -pkg-config'
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following will be built (use -v for more details):
 - zlib-0.7.1.0 (lib) (requires build)
 - streaming-commons-0.2.3.0 (lib) (requires build)
 - warp-3.4.7 (lib) (requires build)
 - fake-package-0 (interactive) (lib) (first run)
Starting     zlib-0.7.1.0 (lib)
Building     zlib-0.7.1.0 (lib)
Installing   zlib-0.7.1.0 (lib)
Completed    zlib-0.7.1.0 (lib)
Starting     streaming-commons-0.2.3.0 (lib)
Building     streaming-commons-0.2.3.0 (lib)
Installing   streaming-commons-0.2.3.0 (lib)
Completed    streaming-commons-0.2.3.0 (lib)
Starting     warp-3.4.7 (lib)
Building     warp-3.4.7 (lib)
Installing   warp-3.4.7 (lib)
Completed    warp-3.4.7 (lib)
Configuring library for fake-package-0...
Warning: No exposed modules
GHCi, version 9.10.1: https://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /tmp/cabal-repl.-1024314/setcwd.ghci

Now to put those build flags in my project.
Thanks.

We still need to understand why this is happening at all, but at least I can make progress.

Thanks to all who've helped here. I will leave this ticket open, however.

@flajann2
Copy link
Author

The fix is now in my cabal.project file:

ignore-project: False
tests: True
constraints: zlib -pkg-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants