-
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
Build Stack with docker fails due to git connection issue. #735
Comments
There isn't enough information here for me to attempt to reproduce the problem. Please include Also, does the fact that you're including @drwebb, are you by any chance familiar with this project? Seeing similarities with something you mentioned on Thursday. |
Ok, had a thought about this while washing dishes... Are you, by any chance, using a reference to the Also, is the |
So we are trying to debug by just cloning the repo and adding a normal The second error is a GHC bug, covered in #614. We are trying to work On Sat, Aug 8, 2015 at 9:25 AM, Emanuel Borsboom notifications@github.com
Tristan Webb PhD |
@drwebb You may already have had HaskellR locally before enabling Docker, in which case stack wouldn't have had to clone it again in the container. |
Sorry, could you clarify what you mean there? I do believe the project was Can we think of a way to reproduce this? On Sat, Aug 8, 2015 at 9:30 AM, Emanuel Borsboom notifications@github.com
Tristan Webb PhD |
Does the stack.yaml point to a git repo or a local working tree? I was able to reproduce this error by running
With that setup, I see the same error:
If I remove the |
To clarify my earlier comment: git clones are cached in Are you able to work around this error by cloning using git on the host and then referencing the clone's working tree in stack.yaml? Or is it still a problem even then? |
I will have to look into reproducing the bug again. |
@drwebb can this issue be closed? It's been untouched for 27 days. |
Closing due to lack of feedback |
This issue was reproduced using the latest stack version on github 542f027 HEAD@{0}:
Adding docker container in stack breaks the build with the error below.
Without docker option in the stack.yaml configuration I do not see this error.
"The authenticity of host 'github.com (192.30.252.128)' can't be established.RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.Are you sure you want to continue connecting (yes/no)? yesRunning /usr/bin/git clone git@github.com:tweag/HaskellR.git /home/vincent/webserver0808/.stack-work/downloaded/3481091ee93a693fdfc2120a6269ec26a30dcb79ba6069dfdc8be2162a96ffb0.git.tmp/ exited with ExitFailure 128Cloning into '/home/vincent/webserver0808/.stack-work/downloaded/3481091ee93a693fdfc2120a6269ec26a30dcb79ba6069dfdc8be2162a96ffb0.git.tmp'...Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists."
PS: I am moving to the docker option to workaround this strange build/linking issue which seems to be triggered in my environment.
[ 6 of 12] Compiling Settings.StaticFiles ( Settings/StaticFiles.hs, .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/Settings/StaticFiles.o ) /usr/bin/ld: .stack-work/dist/x86_64-linux/Cabal-1.18.1.5/build/Settings.dyn_o: relocation R_X86_64_PC32 against symbol `ITMICwebserverzm0zi0zi1_Settings_staticRoot_closure' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: