[GHC] #15494: Cannot install GHC through stack on NixOS

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Keywords: install | Operating System: Linux fail,NixOS,Linux | Type of failure: Installing GHC Architecture: arm | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- stack setup gives me this error: Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/ Possibly a domain-specific problem,caused by NixOS's file-system. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by Stefanov: Old description:
stack setup gives me this error:
Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
Possibly a domain-specific problem,caused by NixOS's file-system.
New description: stack setup gives me this error: Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/ Possibly a domain-specific problem,caused by NixOS's file management. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by Stefanov: Old description:
stack setup gives me this error:
Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
Possibly a domain-specific problem,caused by NixOS's file management.
New description: stack setup gives me this error: # The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. # For some reason, this means the DLLs end up non-executable, which means # executables that use them just segfault. Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/ Possibly a domain-specific problem,caused by NixOS's file management. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by Stefanov: Old description:
stack setup gives me this error:
# The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. # For some reason, this means the DLLs end up non-executable, which means # executables that use them just segfault. Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
Possibly a domain-specific problem,caused by NixOS's file management.
New description: stack setup gives me this error: # The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. # For some reason, this means the DLLs end up non-executable, which means # executables that use them just segfault. Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/ Possibly a domain-specific problem,caused by NixOS's file management. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by osa1: Old description:
stack setup gives me this error:
# The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. # For some reason, this means the DLLs end up non-executable, which means # executables that use them just segfault.
Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/
Possibly a domain-specific problem,caused by NixOS's file management.
New description: stack setup gives me this error: {{{ # The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. # For some reason, this means the DLLs end up non-executable, which means # executables that use them just segfault. Error: Error encountered while installing GHC with make install run in /home/stefanov/.stack/programs/x86_64-linux/ghc-8.4.3.temp/ghc-8.4.3/ }}} Possibly a domain-specific problem,caused by NixOS's file management. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: upstream Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => upstream Comment: Indeed I strongly suspect that this is due to NixOS's odd filesystem structure. Afterall, GHC has a few dependencies (`libc`, `gmp`, and perhaps the `iconv` executable) which NixOS places in rather odd places. You will likely need to bring this up with either the Stack or NixOS upstreams. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15494: Cannot install GHC through stack on NixOS -------------------------------------+------------------------------------- Reporter: Stefanov | Owner: (none) Type: bug | Status: upstream Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: install | fail,NixOS,Linux Operating System: Linux | Architecture: arm Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by fendor): The problem should be fixable by using stack in nix mode, e.g. `stack setup --nix` or adding the nix flag in the global project. E.g. packages: [] resolver: lts-12.14 nix: enable: true -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15494#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC