-
Notifications
You must be signed in to change notification settings - Fork 697
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
Filename case on macOS #4739
Comments
Oh, and the executable directory was then conflated with the library module path (because of course |
There's still a warning, but it can build now. haskell/cabal#4739
So the issue is that Cabal is generating the string |
Yes |
I am also running into this problem.
|
Is there a way to work around this problem? Or a cause? The workaround is to remove things like -Werror. |
I just ran into this (with Regular output files (for example from the module Ideally we could put |
Needs to disable `-Werror` due to haskell/cabal#4739. (We could also work around it by changing the module structure.)
@judah fwiw, I think with The new-style folders look like
So I don't see a potential clash between This would be easy to workaround, if we renamed
|
In case it helps others: I was able to work around this issue somewhat by adding |
related/semi-dup: #783 |
See also haskell/cabal#4739. /Users/travis/build/PostgREST/postgrest/<built-in>:15:10: error: error: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"
See also haskell/cabal#4739. /Users/travis/build/PostgREST/postgrest/<built-in>:15:10: error: error: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"
I seem to have run into a variation on this issue at dhall-lang/dhall-haskell@9edbcc4: In the same project, I have
(
I ended up renaming the modules. |
Me too, with project https://github.com/BNFC/bnfc :
|
Disable `-Wnonportable-include-path` for executable dex in dex.cabal. I am not sure caused this issue to surface. The same issue previously occurred for other targets in dex.cabal. Workaround suggested by discussion: haskell/cabal#4739 (comment)
Disable `-Wnonportable-include-path` for executable dex in dex.cabal. I am not sure caused this issue to surface. The same issue previously occurred for other targets in dex.cabal. Workaround suggested by discussion: haskell/cabal#4739 (comment)
See also haskell/cabal#4739. /Users/travis/build/PostgREST/postgrest/<built-in>:15:10: error: error: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"
Disable `-Wnonportable-include-path` for executable dex in dex.cabal. I am not sure caused this issue to surface. The same issue previously occurred for other targets in dex.cabal. Workaround suggested by discussion: haskell/cabal#4739 (comment)
Disable `-Wnonportable-include-path` for executable dex in dex.cabal. I am not sure caused this issue to surface. The same issue previously occurred for other targets in dex.cabal. Workaround suggested by discussion: haskell/cabal#4739 (comment)
In a project I'm working on, I have some directories in the module path consisting solely of capital letters.
When I try and build this project, I get the following warning:
(Which I think comes from clang rather than cabal-install itself.)
I also previously had the executable file in
src/jbi.hs
; this resulted in a GHC error:I'm not sure if either of these can actually be fixed, or we just have to deal with the joys of caseless filesystems.
cabal-install version 2.0.0.0
compiled using version 2.0.0.2 of the Cabal library
macOS Sierra 10.12.6
The text was updated successfully, but these errors were encountered: