-
Notifications
You must be signed in to change notification settings - Fork 841
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
building with docker seems utterly broken #2054
Comments
Here's another one:
|
And yet another one. I just keep posting a few, so other might find this ticket, when looking for the message:
|
|
Do you get such errors with our images? http://docs.haskellstack.org/en/stable/docker_integration/#image-repositories Maybe it's an issue with how ghc is installed in the debian 8 image? Are you using |
This is the whole docker file:
ghc is installed using The weird thing is, it used to work a few days ago. What changes was |
Here's another fun crash:
|
@mgsloan as the issues look (to me at least) like memory or shared resource corruption, I tried again using a single cpu docker machine. While being sufficiently slower than the 4 core docker machine, the above mentioned issues did not show, and all 207 pkgs were compiled and installed properly. Did the latest stack releases by any chance introduce additional parallelism? |
The only change in 1.0.4.3 relative to 1.0.4 is that your entire home On Sat, Apr 23, 2016 at 2:21 AM Moritz Angermann notifications@github.com
|
I gave the
for different packages, but all were Checking the produced vbox, it seems docker-machine builds by default virtual box images with 1GB or ram and 1cpu. Using a four cpu, four gb ram vbox, does not crash. |
Trying again with a 4gb/4core vbox and the debian image as above, does not prevent the crashes. Could it be that the ghc that setup installes is somehow broken? What does the "patched" part with the |
If anyone has any suggestion how to properly debug this further, I'd give this a shot to figure out what's truly broken. I'm someone lost though. |
Today I had a chance to try the docker for mac beta. Strangely it does not exhibit the crashes seen with the virtual box, docker-machine build for the debian image. It does have a few other glitches, which make it break every few packages. Yet I can report, that stack does in principle work with the docker for mac beta. |
Docker integration is not supported on OS X. However, there are unsupported ways to make it work. In particular, see #194 (comment), which is still the approach that I use. Feel free to discuss in that issue. I do hope to implement full support once Docker for Mac is released to the public, but for now Docker for Mac is too unstable. |
@borsboom I don't know if this is worth creating a new bug for, or the best place for this; maybe it's just useful to have here for future reference if it happens to someone else. I'm also getting the ld failure:
but I'm not using docker. This is with VirtualBox, though (vagrant managed), running on OS X. $ stack --version
Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646 commits) x86_64 hpack-0.14.0 ...and it's not 100% reproducible. If I can narrow it down I'll post reproduction details. |
Using a debian 8.3 docker image, to build a haskell project targeting linux on mac, using
and
I'm getting the following error (varying value for closure type) for many packages
the errors. Usually restarting stack works, but running stack in a loop and observing those issues, seems quite suboptimal.
The text was updated successfully, but these errors were encountered: