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 failure with "ld returned 1 exit status" ---plzz help #2209

Closed
DeepakKapiswe opened this issue May 30, 2016 · 9 comments
Closed

Build failure with "ld returned 1 exit status" ---plzz help #2209

DeepakKapiswe opened this issue May 30, 2016 · 9 comments

Comments

@DeepakKapiswe
Copy link

Giving this error on build ....can someone help me what is going on ?

[1 of 1] Compiling Main ( /tmp/stack3344/Setup.hs, /tmp/stack3344/Setup.o )
Linking /home/deepak/.stack/setup-exe-cache/i386-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 ...
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
Exit code ExitFailure 1 while running ["ghc","-clear-package-db","-global-package-db","-hide-all-packages","-package","base","-package","Cabal-1.22.5.0","/tmp/stack3344/Setup.hs","-o","/home/deepak/.stack/setup-exe-cache/i386-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3","-rtsopts"] in /tmp/stack3344/

@sjakobi
Copy link
Member

sjakobi commented May 30, 2016

Maybe you're missing the gmp library?

Try installing libgmp-dev.

2016-05-30 15:06 GMT+02:00, Deepak Kapiswe [email protected]:

Giving this error on build ....can someone help me what is going on ?

[1 of 1] Compiling Main ( /tmp/stack3344/Setup.hs,
/tmp/stack3344/Setup.o )
Linking
/home/deepak/.stack/setup-exe-cache/i386-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
...
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
Exit code ExitFailure 1 while running
["ghc","-clear-package-db","-global-package-db","-hide-all-packages","-package","base","-package","Cabal-1.22.5.0","/tmp/stack3344/Setup.hs","-o","/home/deepak/.stack/setup-exe-cache/i386-linux/tmp-setup-Simple-Cabal-1.22.5.0-ghc-7.10.3","-rtsopts"]
in /tmp/stack3344/


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#2209

@DeepakKapiswe
Copy link
Author

Thanks a Lot sjakobi ....yes the same prob was there and now its ok after installing "libgmp-dev".

Problem Solved thanks again for quick response !!

@sjakobi
Copy link
Member

sjakobi commented May 30, 2016

@DeepakKapiswe: Can you tell me what operating system you use and in which way you installed stack?

If you installed stack through a package repository, the package should have had a dependency on libgmp-dev.

@DeepakKapiswe
Copy link
Author

I use debian 8.2 32 bit
and I Installed stack by downloading .deb files.

@borsboom
Copy link
Contributor

@DeepakKapiswe Where did you find a 32-bit .deb? We only release 64-bit .debs, so it must have come from a third-party.

@DeepakKapiswe
Copy link
Author

DeepakKapiswe commented May 30, 2016

Extremely sorry... actually I have downloaded this file stack-1.1.2-linux-i386-gmp4.tar.gz from this link http://docs.haskellstack.org/en/stable/install_and_upgrade/#linux and just followed the instructions.

@sjakobi
Copy link
Member

sjakobi commented May 30, 2016

@borsboom: I think it would be a good idea to list the packages/libraries that are necessary for using stack and ghc in the installation guide.

Alternatively, if there's a good external source, we could have a link to that?!

@borsboom
Copy link
Contributor

I've added the requirements and instructions how to install them on Fedora/CentOS and Debian/Ubuntu to the installation guide.

@sjakobi
Copy link
Member

sjakobi commented May 30, 2016 via email

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

3 participants