haskell / haskell/cabal

Build fails without any particular error messages

Open
#8,776 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The build of the [verismith](https://github.com/ymherklotz/verismith) project fails without any particular error messages. Here are 3 sequential logs:

* https://people.freebsd.org/~yuri/verismith-1.0.0.2-39-0.log
* https://people.freebsd.org/~yuri/verismith-1.0.0.2-39-1.log
* https://people.freebsd.org/~yuri/verismith-1.0.0.2-39-2.log

The first log has 3 lines ending with "error:" but they are followed by warnings. The subsequent 2 logs don't have any errors.

The compiler should either succeed or print some error messages.

All 3 logs suffer from the problem that they don't contain any errors and the compiler still failed.

hs-cabal-install-3.6.2.0
ghc-9.2.5
FreeBSD 13.1

----------------------------------

After taking a second look I found that cabal prints errors in an unconventional way prepending them with "cabal:", not "error:".

The build fails to find the generated header resulting from lib/include/HsTimeConfig.h.in

So there are 3 errors:
(1) warnings are printed as errors
(2) errors are printed prepended with "cabal:"
(3) failure to find header generated from *.h.in

I will create a separate issue for the third problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.