[GHC] #14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- In principle the GHC 8.2.1 bindist for Debian 8 should work fine on WSL. However, in practice it fails during `make install` with this error, {{{ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by bgamari: Old description:
In principle the GHC 8.2.1 bindist for Debian 8 should work fine on WSL. However, in practice it fails during `make install` with this error, {{{ }}}
New description: In principle the GHC 8.2.1 bindist for Debian 8 should work fine on WSL. However, in practice it fails during `make install` with this error, {{{ "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries /integer-gmp dist-install "strip" '' '/home/ben/roots/ghc/8.2.1' '/home/ben/roots/ghc/8.2.1/lib/ghc-8.2.1' '/home/ben/roots/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries' 'v p dyn' ./integer-gmp.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring integer-gmp-1.0.1.0... ghc-cabal: Cannot find the program 'ghc'. User-specified path '/home/ben/bin-dist-8.2.1-Linux/ghc/inplace/bin/ghc-stage1' does not refer to an executable and the program is not on the system path. ghc.mk:986: recipe for target 'install_packages' failed make[1]: *** [install_packages] Error 1 Makefile:51: recipe for target 'install' failed make: *** [install] Error 2 }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: ezyang, hvr (added) Comment: It seems that the problem is that `Cabal` saves the path of the in-place `ghc-stage1` from the build environment in `libraries/integer-gmp/dist- install/setup-config`. It's not clear why this only affects WSL. CCing the usual Cabal-ers. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by YitzGale): For comparison, the same bindist tarball (x86_64 deb8) for 8.0.2 installs just fine on WSL. Are you *sure* this works on other Ubuntu platforms on a virgin machine with no previous GHC install? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by YitzGale): Due to #13304, this ticket isn't practical until either GHC HQ provides a bindist with {{{./configure --disable-large-address-space}}} or Microsoft fixes the WSL memory map bug. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by YitzGale): * related: => #13304 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed I suspect you are right; at this point I don't even think I own a machine that doesn't already have GHC installed. I'll try to setup a clean container and try installing there. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * priority: normal => high Comment: Bumping in priority as this likely affects all environments. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * owner: (none) => bgamari -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: highest | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * priority: high => highest -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * priority: highest => high Comment: I'll admit I'm quite confused; I cannot reproduce this in a clean Debian 8 container. It seems that this really //is// WSL-only. In light of this and the fact that GHC isn't really usable on WSL at the moment anyways, I'm going to demote this to high priority. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.2 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: Phyx- (added) Comment: Tamar, you may be interested in this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 8.2.2 => 8.2.3 Comment: It doesn't look like this is going to happen for 8.2.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by arvindd): I am just trying to install iHaskell on WSL, and in the process, I am hit also by this bug. The bug specifically occurs when I am installing one of its dependencies via stack: "stack install gtk2hs-buildtools". The error I get is: ghc-cabal: Cannot find the program 'ghc'. User-specified path '/home/athas/sandbox/ghc-8.2.2/inplace/bin/ghc-stage1' does not refer to an executable and the program is not on the system path. Is there some possibility that this bug is solved in the near future? (GHC 8.4.1 is just released, and I assume the problem still exists there - although I am yet to install the same on my machine.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sjakobi): Replying to [comment:13 arvindd]: I can't shed any light on the bug, but in case you're just looking for a working setup, you should give hvr's [https://launchpad.net/~hvr/+archive/ubuntu/ghc-wsl ghc-wsl PPA] a try. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by arvindd): Thanks, let me try. I notice that the packages are for Ubuntu, and I am using OpenSUSE on WSL. I just need to figure out a way to rebuild those sources on OpenSUSE / find a similar thing on the rpm repositories. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by arvindd): Replying to [comment:14 sjakobi]:
Replying to [comment:13 arvindd]:
I can't shed any light on the bug, but in case you're just looking for a working setup, you should give hvr's [https://launchpad.net/~hvr/+archive/ubuntu/ghc-wsl ghc-wsl PPA] a try.
Thanks, let me try. I notice that the packages are for Ubuntu, and I am using OpenSUSE on WSL. I just need to figure out a way to rebuild those sources on OpenSUSE / find a similar thing on the rpm repositories. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14021: 8.2.1 deb8 bindist fails to install on Windows 10 WSL -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.2.3 Component: Build System | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13304 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ivanbakel): I am encountering this issue one Parabola Linux, which pointed me to my use of NTFS probably being the culprit, since it seemed the only thing in common with WSL. This seems to have something to do with the way the modification time is treated in a tar extraction. Tested on my machine with the command used by stack: * Extracting the tarball on ext4 preserves the modification time - the package `.cabal` files are correctly older than the `setup-config` files * Extracting the tarball on ntfs mounted with ntfs-3g makes the modification time equal to the extraction time, and possibly due to the extraction order the `.cabal` file ends up newer than the `setup-config` file If the `setup-config` file is older than the `.cabal` file by modification time, the `reconfigure` step triggers in `Distribution.Simple.getBuildConfig`, and that causes the error in the report, though I don't know why. Otherwise, the package install is successful. There's a temporary work- around where you can just `touch` the `setup-config` file for each package to get around this problem. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14021#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC