-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
GHC 7.10.1 has GMP linking issues #38315
Comments
I just saw this too. $ clang --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix |
Does the library install succeed or fail? That looks like a warning, not a failure. Is this resolved after |
It looks like this is related to #38236, since the formula didn't use a "gmp-static" path before, so I don't expect that reinstalling will help. |
The whole GMP situation was weird with Homebrew's GHC for a while. It recently got cleared up (sort of…), but any installations from before said cleanup will have a problem. As @tdsmith suggested, try uninstalling and reinstalling GHC after updating Homebrew; that should fix it. |
@pthariensflame as the any-issues-with- Moreover, what's the contents of the installed |
@tdsmith Anyway, the problem still persists. I'm able to reproduce the problem while trying to |
@hvr The issue was present long before |
Does #38236 need to be reverted? Can someone verify that the libraries you're trying to install are actually failing, and not just printing a warning message? |
@tdsmith It looks like the example I gave you is indeed just a warning and the library still builds though I think I had other cases of failures. Trying to reproduce now. Stay tuned. |
Here's what lead me to believe GMP was causing errors but it could be just a coincidence that the error and warning happen at the same time. Without changing any code, both of these issues started happening after the 7.10 upgrade. At this point I'm going to assume these are unrelated and we only have a warning about gmp.
PS any ideas about this hpc error I'm getting would be helpful! |
I only get a warning, not an error. An unrelated (?) gmp error I got a long while back was a different issue that has a solution: #35203 |
I get what I pasted below, which I believe is related. One of the lines from brew's output ends with "--with-gmp-libraries=/pr" which I believe is truncated but not reflecting the real command. Otherwise it complains about not being able to execute ghc-config and about a missing file.
|
Using the |
As discussed above this is a warning and not an error and seems unrelated to your other problems. I'm open to solutions to remove that warning somehow but I think a harmless warning is superior to forcing a dynamic |
Agreed - we didn't realize the warning wasn't causing compile failures afterwards until you guys pointed it out. |
Ok, heres how you're supposed to build ghc on mac to have static linked GMP https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/MacOSX#ImportantConsiderations |
@cartazio looks fine to me (so on OSX you're supposed to use the linked-in intree-gmp?) PS: the docs will have to change for GHC HEAD/7.12 again though, as |
@cartazio Is our current formula working/broken in that case? If it's looking broken could you submit a PR? Thanks! |
I can see a few ways the build could be made a bit nicer both wrt linkery, support window, etc https://github.com/Homebrew/homebrew/blob/master/Library/Formula/ghc.rb#L63-L163 yes, the way it does the gmp static linking isn't the mechanism that ghc devs or the haskell platform maintainer do, i'll try to find some time to at least post some notes here, or an outright PR. I will note that any PR WILL likely also bring along my opinions about other parts of the formula :) |
I'm open to PRs but if you can try and keep one change per-PR then it'll make it easier to review/merge. Thanks! |
This PR will fix it: #39025 |
Should have been resolved by #39134. |
After having ghc 7.10.1 installed via brew then trying to install a simple library, I get this error:
ld: warning: directory not found for option '-L/private/tmp/ghc20150402-41611-1b15z9c/ghc-7.10.1/gmp-static'
When using ghc 7.10.1 form Haskell for OS X the library installs fine.
The text was updated successfully, but these errors were encountered: