Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
bos opened this Issue May 24, 2012 · 4 comments

Comments

Projects
None yet
1 participant
Contributor

bos commented May 24, 2012

(Imported from Trac #461, reported by sjanssen on 2009-01-18)

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](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.

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-01-18)

Done in the Cabal lib. Hackage will need updating.

Contributor

bos commented May 24, 2012

(Imported comment by ross on 2009-01-18)

updated

Contributor

bos commented May 24, 2012

(Imported comment by sjanssen on 2009-01-18)

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

Contributor

bos commented May 24, 2012

(Imported comment by ross on 2009-01-18)

sorry, must have been a rebuild error

@bos bos closed this May 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment