You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: line 3: /home/pk/.stack/programs/x86_64-linux/ghc-ncurses6-nopie-8.2.2.temp/ghc-8.2.2/utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: No such file or directory
Running strace on the ghc-cabal binary gives:
execve("./utils/ghc-cabal/dist-install/build/tmp/ghc-cabal", ["./utils/ghc-cabal/dist-install/b"...], 0x7ffd07a8bcd0 /* 38 vars */) = -1 ENOENT (No such file or directory)
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
getpid() = 898
exit_group(1) = ?
+++ exited with 1 +++
Calling file on the binary:
utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d7c5b6e1e62eb0e96cbbd27acf6cb6445aff3992, with debug_info, not stripped
I checked if the loader exists in the /lib directory, but it was missing. Creating symlink with /lib64/ loader solved the problem.
I hit the same issue, is there any way to get binary distribution with interpreter set to /lib64/ld-linux-x86-64.so.2 which I believe is used by most of the world?
@ghost, @jpalus - I am working through issues, including old ones. Do you know if this is still a problem with current versions of Gentoo, GHC and Stack?
Steps to reproduce
lts-10.4
stack build
Expected
Setup the resolver target.
Actual
Build would fail with following error:
Running strace on the
ghc-cabal
binary gives:Calling
file
on the binary:I checked if the loader exists in the
/lib
directory, but it was missing. Creating symlink with/lib64/
loader solved the problem.Stack version
Method of installation
The text was updated successfully, but these errors were encountered: