-
Notifications
You must be signed in to change notification settings - Fork 44
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
Error when building some C++ source #104
Comments
I've isolated this down to breaking between:
For the curious, I was able to downgrade these on my own stack project, whilst staying on
Then updating my
|
@dukedave thanks for the report and the investigation. Can you check if the latest |
@basvandijk I just forked and pulled to test locally, but I've getting the same build errors as Travis. |
Hi @dukedave, I have seen the errors on travis but I'm not sure yet how to solve them. Do you have any ideas? |
Not yet @basvandijk. I tried reproducing the build using a Stack's Docker integration (I switch between Mac and Ubuntu, so I'd like to have something consistent), but with that I get:
Have you looked in to using Stack with Docker? |
I've reopened the issue because this is not solved yet. @dukedave I haven't used Stack with Docker. I'm using Nix to get deterministic builds. |
It's surprising we get an error/warning about a missing |
Okay, I've got the build working* locally both with * I am now seeing the same errors as the latest Travis build, namely those starting with:
I am seeing the same error both with and without the Docker integration, so that's something 😀 |
@basvandijk I agree that these in the build log are the smoking gun for the root of ⬆️ :
But, for all my trying, I just can't get it to use Based on my research, the only things required should be: This could also be relevant: haskell/cabal#4810, but I'm not sure. Additionally, I went back to see when the build started failing, and identified this build as the most recent green one. However it appears that the cpp files weren't being found during those builds. I'm not sure why that wasn't causing the build to fail, but it might explain the difference. Finally: I'd like to open a new issue, since 55d4913 did fix my original error, and this does seem to be something different. Cool? |
Thanks for diving into this tricky problem. Note there's a third thing that is required:
|
Could be @basvandijk.
No sign of |
@dukedave That is stack's invocation of opencv-extra's custom setup. So, naturally it doesn't have a mention of c++. If you add a putStrLn or something to the custom Setup.hs I think you will see that it does indeed get invoked. So I don't think that's the problem. |
Here's where I'm at as of now: I have confirmed that everything seems to be setup to include the C++, per this SO post. I've also confirmed that the the version of Based on this it seems that the only think we should need is the haskell-opencv/opencv/opencv.cabal Line 108 in 84b1654
The first SO post I linked does mention setting |
I did what @mgsloan suggested and confirmed that yep, haskell-opencv/opencv-extra/Setup.hs Line 6 in 84b1654
It's been like that since the beginning though (first for I removed the guard and had it always pass I tried reverting 6b78bc4, to no avail. I spotted One final WTF moment: It seems that you can put whatever you like here (e.g.
|
When building with
resolver: lts-10.1
instack.yaml
:It's fine with
lts-9.10
(as used in yourstack.yaml
), but thought you might want to know.The text was updated successfully, but these errors were encountered: