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: treating <U+2227> as identifier character #646
Comments
I assume it should be harmless since that is pointing to a character in a Haddock comment. I'm actually a bit surprised that you got that warning at all since (A) Dhall's CI enforces that Dhall builds against GHC 8.4.3 without any warnings and (B) it seems like a bug if the interpreter is treating a comment character as an identifier |
I logged a ticket about this with ghc. |
Thanks for doing that! 🙂 |
Not sure whether to resurrect this ticket, but since it is clearly an extension of the same conversation, I tried to build via Nix and saw the same warnings (albeit in different files) as errors. For example:
Wondering if this is a misconfiguration of the Nix tooling (i.e. should not have |
Well, I looked at the ticket referenced above now. Should have done that first; turns out this warning is actually part of the C preprocessor and further it seems specific to clang and maybe even certain clang versions. That means, sadly, I was unable to build |
I'm more than happy to accept a PR to remove the offending character. It's just that I can't reproduce the problem locally so I don't have an easy way to verify that any change of mine would fix it. I'm also using $ "$CC" --version
clang version 11.1.0
Target: aarch64-apple-darwin
Thread model: posix
InstalledDir: /nix/store/3zy8k5xl5s9cmcghgd90c05dga0j5h6a-clang-11.1.0/bin |
Reopening because I have a reproduction and I think I know how to fix this |
Fixes #646 This fixes a build failure that tends to happen when building Dhall using Nix on macOS. The failure is related to the `-Wunicode-homoglyph` `cpp` warning, which this change disables.
Fixes #646 This fixes a build failure that tends to happen when building Dhall using Nix on macOS. The failure is related to the `-Wunicode-homoglyph` `cpp` warning, which this change disables.
Is this warning harmless?
The text was updated successfully, but these errors were encountered: