-
Notifications
You must be signed in to change notification settings - Fork 264
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
Comments
The offending line seems to be correctly guarded by CPP: wai/warp/Network/Wai/Handler/Warp/Settings.hs Lines 301 to 309 in 6e9c862
That said, something feels off with your Cabal. Given |
Did you by any chance run |
My version of cabal should automatically default to v2, but I did what ytou suggested, and it still broke:
|
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. |
Doesn't seem like an issue with |
|
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 Ideally, the local (to my Linux account installed by Let me try something simple: rename the system version and run the compilation again. |
FWIW, this succeeds, so the
|
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:
and ran:
And the result?
So something oddball is really going on here. Just to see what would happen, I tried it with the system version of ghc:
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 |
Can you try the command here: #1022 (comment) |
Actually, might be better with
Perhaps try both. |
Tried it. Same deal.
Let me try removing all but 9.10 with ghcup and see if that makes a difference. |
This looks a lot like #982. Have you tried removing the system GHC entirely? |
Please try with
|
@tomjaguarpaw I did and it still failed. |
Other fixes are using Cabal 3.10 or passing |
@georgefst that worked!!!!!
Now to put those build flags in my project. 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. |
The fix is now in my cabal.project file:
|
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
The text was updated successfully, but these errors were encountered: