Hackage Build Failure - Seeking Advice

My current issue is that I’m encountering the build error shown in the following link:

The build succeeds on my local machine, but I’m getting this error on the Hackage server.

The error log is quite long, which might be inconvenient to read, but looking at the very bottom, it seems the error occurs while building the dependency package old-time:

Configuring old-time-1.1.0.4...
Error: cabal: The package has a './configure' script. If you are on Windows,
This requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. If
you are not on Windows, ensure that an 'sh' command is discoverable in your
path.

This kind of error seems to indicate an issue with the Hackage server’s build environment, so I’m unsure what I can do to resolve it. I’m also curious why this error doesn’t occur in my local build environment.

Could this error be related to the Hackage build environment switching to GHC 9.8.4? I would appreciate any advice you can offer.

2 Likes

Hey! This is an ongoing issue that is known to Hackage admins and will be resolved in due course. Tracked here: Doc builder: `alex` not found even though it is in the `build-tool-depends` · Issue #1388 · haskell/hackage-server · GitHub (it starts about alex/happy but then touches upon your problem later as well).

2 Likes