Ticket #461 (closed defect: fixed)

Opened 4 years ago

Last modified 17 months ago

"ghc-options: -O0" causes upload error; blocks xmonad-contrib release

Reported by: sjanssen Owned by: ross@…
Priority: normal Milestone: HackageDB
Component: hackageDB website Version:
Severity: normal Keywords:
Cc: dons Difficulty: normal
GHC Version: 6.8.3 Platform:

Description

When attempting to upload  xmonad-contrib-0.8.1 to Hackage:

400 Error in upload
'ghc-options: -O0' is not needed. Use the --disable-optimization configure flag.

xmonad-contrib.cabal has the following:

    if impl (ghc >= 6.10.1) && arch (x86_64)
        ghc-options:    -O0

This is a workaround for GHC bug  http://hackage.haskell.org/trac/ghc/ticket/2961 . If we do not disable optimizations on x86_64 and GHC 6.10.1, our users experience lockups and crashes. This is rather critical for us, as we are now unable to release a stable version of xmonad.

This error should be changed to a strong warning -- sometimes the package author really does know better than the package manager.

Change History

Changed 4 years ago by duncan

  • owner set to ross@…

Done in the Cabal lib. Hackage will need updating.

Changed 4 years ago by ross

  • status changed from new to closed
  • resolution set to fixed

updated

Changed 4 years ago by sjanssen

  • status changed from closed to reopened
  • resolution fixed deleted

The online 'check-pkg' feature now accepts -O0, but upload-pkg still fails with the same error.

Changed 4 years ago by guest

  • cc dons added

Changed 4 years ago by ross

  • status changed from reopened to closed
  • resolution set to fixed

sorry, must have been a rebuild error

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.