-
Notifications
You must be signed in to change notification settings - Fork 0
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
Warning: Can't find file "C:\.../include\ghcversion.h" in directories #8
Comments
Reopening since it seems to actually be a bug in |
Yes, the error is in this part:
for |
cc @malcolmwallace thoughts? |
If no response after a while then perhaps emailing the maintainer directly would produce better results. He may not be monitoring github, seeing as the source is still in darcs. |
Can you try the freshly released cpphs-1.20.3, and let me know if it fixes the problem? |
@malcolmwallace doesn't appear to fix the issue (page takes a while to load due to log highlighting): https://ci.appveyor.com/project/jagajaga/pos-haskell-prototype/build/0.1.1964#L22890 |
Yeah, further down
This makes |
Indeed, that line is redundant on Windows. @malcolmwallace thoughts? I fail to understand what's the purpose of prepending a slash. |
It's attempting to reconstruct a path from the prefix and the include path. It just so happens that when the prefix is "/" on unix you end up with // and it still works |
I've created a patch that seems to work well in both Windows and Linux. To test it out:
@Mistuke, thank you for your tip about |
@jmitchell could you create a plain patch? darcs patch fails for me:
|
I applied the patch manually and can confirm it fixes the issue on Windows for @malcolmwallace could we get cpphs-1.20.4 out with the patch above? Thanks! |
🙏 |
Are there any concerns that need to be addressed before this is integrated? Happy to take feedback. |
Patch applied. cpphs-1.20.4 released. Thanks! |
Strange, using the patch worked, but using cpphs-1.20-4 I'm still getting the warning:
I'll double check it's not using the old cpphs. |
|
@domenkozar, thanks for catching this! Based on initial experiments it seems absolute paths in Windows aren't working. I recall testing @malcolmwallace, thank you for taking the time to make a release. I'll test the next patch more extensively. |
I've filed an issue with Whether they make any changes or not, the following patch fixes the issue by moving the drive letter to the head of the directories to search and stripping it from the filename. It's admittedly not elegant, but it resolves the issue @domenkozar discovered.
|
@malcolmwallace, the above change has been tested when |
|
It seems the fix to this Windows issue generated the same problem on Linux, see #11. |
I'm not sure yet where this is coming from, but I'd like to report an unnecessary warning on Windows:
It appears to trigger for each module using cpphs. The file is present, so I suspect the problem is in unix path character in
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib/include\ghcversion.h
.EDIT: I suspect that this bug comes from the packaging and
cpphs
is just called with--include
by stack/cabal. Need to find a way to see how cpphs is invoked.The text was updated successfully, but these errors were encountered: