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

local packages with install-includes fail to expose headers #4517

Open
hvr opened this issue May 15, 2017 · 0 comments
Open

local packages with install-includes fail to expose headers #4517

hvr opened this issue May 15, 2017 · 0 comments

Comments

@hvr
Copy link
Member

hvr commented May 15, 2017

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 <base-feature-macros.h>
     ^
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).

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

No branches or pull requests

1 participant