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

build warnings on MacOS #55

Closed
heatherleaf opened this issue Oct 2, 2018 · 3 comments
Closed

build warnings on MacOS #55

heatherleaf opened this issue Oct 2, 2018 · 3 comments

Comments

@heatherleaf
Copy link
Contributor

because of mac's case-insensitive file system, there are build warnings:

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.
[22 of 34] Compiling Muste.AdjunctionTrees ( src/Muste/AdjunctionTrees.hs, .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/muste-tmp/Muste/AdjunctionTrees.o )

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.

/Users/peb/Documents/Repositories/MULLE/muste/<built-in>:15:10: error:
     warning: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/muste/autogen/cabal_macros.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Muste/autogen/cabal_macros.h"
1 warning generated.

It's an open issue in Stack: commercialhaskell/stack#3918

The temporary solution (until Stack solves it) is to not have the executable muste the same name as the library Muste

Perhaps go back to muste-cli? (and drop support for precompute until someone wants to do something with it)

@heatherleaf
Copy link
Contributor Author

Note: the project still builds correctly, but there are ugly warnings

@fredefox
Copy link
Contributor

fredefox commented Oct 2, 2018

If it's just a warning I say we ignore it for now.

@heatherleaf
Copy link
Contributor Author

solved by renaming muste to muste-cli(commit 514f163)

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

No branches or pull requests

2 participants