haskell / haskell/cabal

local packages with `install-includes` fail to expose headers

Open
#4,517 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: v2-build system type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

How to repro:

```
$ git clone https://github.com/hvr/cabal-bugs/ && cd cabal-bugs/issue-4517

$ cabal new-build all
Resolving dependencies...
In order, the following will be built (use -v for more details):
- base-feature-macros-0.1 (lib) (first run)
- dummy-0 (exe:dummy) (first run)
Configuring library for base-feature-macros-0.1..
Preprocessing library for base-feature-macros-0.1..
Building library for base-feature-macros-0.1..
Configuring executable 'dummy' for dummy-0..
Preprocessing executable 'dummy' for dummy-0..
Building executable 'dummy' for dummy-0..

Main.hs:3:0: error:
fatal error: base-feature-macros.h: No such file or directory
#include
^
compilation terminated.
`gcc' failed in phase `C pre-processor'. (Exit code: 1)
```

This is related to a similar issue (#4120) with package-data not being exposed properly by local packages, because the package-db points to an installation folder that doesn't exist (yet).

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.