-
Notifications
You must be signed in to change notification settings - Fork 7
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
need to set -pgma clang -pgmc clang on mac #8
Comments
is that really something that should be done in the (that said, i'm ok with a workaround, but doesn't this break things for users with no clang?) |
No Mac user with lion and newer will ever lack clang if they have dev tools Likewise, mixing clang vs GCC actually is slightly broken because cabal / On Thursday, February 27, 2014, Luite Stegeman [email protected]
|
I just ran into this problem as well, when compiling the latest stack : |
I'm not sure if stack lets you specify per package configuration flags. So
|
I'd rather find my answers elsewhere than thinking of being "shit out of luck". Thank you |
I've been hesitant to patch this package, since the problem points to a GHC installation issue rather than a problem with the package itself. Instead of hardcoding a compiler program name in all packages that need to compile Objective C it's best to fix the the problem at its source. GHC gets the underlying compiler commands to use from its settings file (you can find the location with |
Agreed. Your error indicates a misconfigured Mac install of ghc. Could you On Friday, December 4, 2015, Luite Stegeman [email protected]
|
I think this has been fixed by GHC and/or cabal by now (welcome to open a new issue if new workarounds are needed of course) |
Building hfsevents-0.1.5... Preprocessing library hfsevents-0.1.5... [1 of 1] Compiling System.OSX.FSEvents ( System/OSX/FSEvents.hs, dist/build/System/OSX/FSEvents.o ) gcc-4.8: error: language objective-c not recognized gcc-4.8: error: language objective-c not recognized
if i pass -pgmc clang -pgma clang things work out fine
The text was updated successfully, but these errors were encountered: