-
Notifications
You must be signed in to change notification settings - Fork 844
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
Locally installed GHC fails to compile sanity check #497
Comments
That's quite unexpected, I haven't seen anything like that before. What happens if you run:
|
On Fri, Jul 03, 2015 at 04:20:16AM -0700, Michael Snoyman wrote:
A big list of packages. Many of them are colored red: When I run /home/pete/.stack/.../ghc-pkg check, this is the output: Peter Harpending |
Oh I see the problem. We need to limit the sanity check to the global On Fri, Jul 3, 2015, 10:38 AM Peter Harpending notifications@github.com
|
@snoyberg My computer is a bit indisposed at the moment, but the tl;dr is the build command succeeds, but then |
Do you have the newest version of yesod-bin? Read the newest blog post on On Fri, Jul 3, 2015, 12:51 PM Peter Harpending notifications@github.com
|
On Fri, Jul 03, 2015 at 12:54:18PM -0700, Michael Snoyman wrote:
I think this is another bug, but yesod-bin doesn't respond to Are you back in the states, @snoyberg? It's like 1 AM in Israel. Peter Harpending |
Yes, I'm in California right now. Did you run |
@snoyberg Yep. |
@snoyberg Here is the full error:
|
I've pushed a commit that should make the sanity check more resilient to the issue you mentioned above. Sanity check should now succeed. Can you also include the output for |
|
I'm about to disappear for the weekend. I just wanted to lay some groundwork on continuing here.
|
On Fri, Jul 03, 2015 at 06:45:29PM -0700, Michael Snoyman wrote:
That is not correct. The initial issue, where 'stack setup' is failing Peter Harpending |
@pharpend Did you test out the newest code on master? Can you paste the new results (including |
I just sent an email to the haskell-stack mailing list about the |
On Sat, Jul 04, 2015 at 09:48:27PM -0700, Michael Snoyman wrote:
With the version in master:
|
That version is from 10 days ago, before I wrote my comment above to test master. The easiest way to install from master is to run stack upgrade --git. |
On Sun, Jul 05, 2015 at 05:27:58PM -0700, Michael Snoyman wrote:
You are right, I had my Anyway, with the new version of stack,
Thank you for the help! This can be closed now. |
I also had this error. For those landing here from a search, it turns out it was because I had moved my |
Hi I'm using Amazon Linux (Redhat/CentOS) and I'm getting a similar error.
I installed stack through |
Can you try manually installing the gmp-devel package via your package
manager? I think the relevant line to install all dependencies on CentOS is:
yum install -y perl make automake gcc gmp-devel libffi zlib xz tar
This may be related to:
#2898
…On Sun, Jan 15, 2017 at 5:53 PM, Soo Lee ***@***.***> wrote:
Hi I'm using Amazon Linux (Redhat/CentOS) and I'm getting a similar error.
$ stack setup
The GHC located at /home/ec2-user/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Running /home/ec2-user/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc /tmp/stack-sanity-check4367/Main.hs -no-user-package-db in directory /tmp/stack-sanity-check4367/ exited with ExitFailure 1
[1 of 1] Compiling Main ( /tmp/stack-sanity-check4367/Main.hs, /tmp/stack-sanity-check4367/Main.o )
Linking /tmp/stack-sanity-check4367/Main ...
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
I installed stack through curl -sSL https://get.haskellstack.org/ | sh
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#497 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBB7ecwm9RVph1G1BtFFOmDRHV2_vOks5rSkDtgaJpZM4FRORM>
.
|
I'm having the same problem as SooLee above, on RHEL, but it's a shared machine and I can't manually install gmp-devel. Is there another workaround? Basically, any time I try to do something with stack, it fails because ld "cannot find -lgmp". This is odd, because gmp is definitely installed, and if I run stack with --verbose, it actually finds gmp:
|
@EasyArray I believe this is answered in #4956 (comment). |
Same issue, fails setup but succeeds build |
On
stack setup
, git tree at https://git.gnu.io/snowdrift/snowdrift.This was after I installed stack through the AUR package.
The text was updated successfully, but these errors were encountered: