Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3162 closed bug (invalid)

Windows users can't compile time package

Reported by: NeilMitchell Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.2
Keywords: Cc: ashley@…, ndmitchell@…, fmartini@…, cjs@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The time library got unbundled from GHC 6.10.2. Windows users who don't have Cygwin installed can't build the time library from Hackage. The end result is that an important and widely used library doesn't work with GHC 6.10.2. For many Windows users this will be a severe regression.

C:\Neil\hoogle>cabal install time --global
Resolving dependencies...
[1 of 1] Compiling Main             ( C:\Users\Neil\AppData\Local\Temp\time-1.1.
2.32884\time-1.1.2.3\Setup.hs, C:\Users\Neil\AppData\Local\Temp\time-1.1.2.32884
\time-1.1.2.3\dist\setup\Main.o )
Linking C:\Users\Neil\AppData\Local\Temp\time-1.1.2.32884\time-1.1.2.3\dist\setu
p\setup.exe ...
Configuring time-1.1.2.3...
setup.exe: sh: runGenProcess: does not exist (No such file or directory)
cabal: Error: some packages failed to install:
time-1.1.2.3 failed during the configure step. The exception was:
exit: ExitFailure 1

C:\Neil\hoogle>ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.2

There are two solutions: 1) Fix the time package so it doesn't depend on sh; 2) Bundle time with GHC.

Change History (6)

comment:1 Changed 5 years ago by felixmar

  • Cc fmartini@… added

comment:2 Changed 5 years ago by igloo

  • Difficulty set to Unknown
  • Resolution set to invalid
  • Status changed from new to closed

The time package isn't needed to build GHC, so build problems with it don't belong here. The maintainer is listed as ashley@semantic.org in the Cabal file, but I'm not sure whether or not it has a bug tracking system.

comment:3 Changed 5 years ago by cjs

  • Cc cjs@… added

comment:4 Changed 5 years ago by simonmar

Maybe we could make an MSI of the time package using Sigbjorn's new tool?

comment:5 follow-up: Changed 5 years ago by NeilMitchell

Perhaps an MSI could be created, but unless that's what gets installed with {{cabal install}} the bug still stands - we have propaganda saying cabal install is the one true way to install things, it needs to work for common packages.

Also if we have an MSI it will be highly GHC version specific (as Gtk2hs is), so this is probably a lot of hassle and pain for very little benefit.

comment:6 in reply to: ↑ 5 Changed 5 years ago by duncan

Replying to NeilMitchell:

Perhaps an MSI could be created, but unless that's what gets installed with {{cabal install}} the bug still stands - we have propaganda saying cabal install is the one true way to install things, it needs to work for common packages.

Ashley released time 1.1.2.4 the other day and says it works on Windows without cygwin.

Note: See TracTickets for help on using tickets.