-
Notifications
You must be signed in to change notification settings - Fork 842
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
Linker errors in stack release candidate 1.9.0.1 in static Linux binary #4318
Comments
Have you tried the dynamically linked binary (https://github.com/commercialhaskell/stack/releases/download/v1.9.0.1/stack-1.9.0.1-linux-x86_64.tar.gz) with the same project? |
@borsboom Yes, and it works fine. Note that I dont have any of my own code in the project. I just tried out the default project template - and it failed to build with the statically built stack version. |
How strange, I've just tried to reproduce on a fresh Ubuntu 18.04 system, but the static
|
@donatello @borsboom Can you both post the output of |
An older ticket, perhaps related: haskell/cabal#5280 |
Another thing that we probably want to compare afterwards are the |
Fresh install on mac os and I have what seems to be a linker error. All stack command fails.
|
@georgreen The current issue specifically regards the Linux statically linked |
@nh2 Here's my
|
@borsboom @nh2 The problem was because of libgmp-dev was not installed. So on another fresh system, the steps to build a new project with both the static and dynamic builds of stack were:
Thanks for the tip about libgmp-dev - we can close this as my problem is resolved. Apologies for the confusion about the dynamic build working fine. @georgreen Please open a new issue - your issue is related to MacOS builds so I doubt it is related to this one. I am going ahead and closing this one - please feel free to reopen it in case you think it is related to this issue. |
What I don't get, though, is why the dynamically linked |
Yes, what @borsboom said:
@donatello, can you clarify whether the dynamic build actually did work fine, or whether this was a misunderstanding? |
Same issue fresh install of Ubuntu 22.04. Installing libgmp-dev resolved it. |
General summary/comments
stack returns linker errors when creating a new package:
Steps to reproduce
For example:
stack new test1
cd test1 && stack build
Expected
The new project is setup and the build succeeds without any linker errors.
Actual
Got lots of linker errors (condensed below):
Stack version
Method of installation
Using the binary at https://github.com/commercialhaskell/stack/releases/download/v1.9.0.1/stack-1.9.0.1-linux-x86_64-static.tar.gz on Ubuntu
The text was updated successfully, but these errors were encountered: