[Haskell-cafe] suffix or operands invalid for `push'

Gregory Collins greg at gregorycollins.net
Tue Dec 29 19:10:10 EST 2009

Martijn van Steenbergen <martijn at van.steenbergen.nl> writes:

> Gregory Collins wrote:
>> Martijn van Steenbergen <martijn at van.steenbergen.nl> writes:
>>> Hello,
>>> Above error is one of those that appear when using GHC on the 64-bit Snow
>>> Leopard. I've already patched my /usr/bin/ghc to mention -optc-m32 -opta-m32
>>> -optl-m32. However, the error still occurs when doing 'cabal haddock' in *some*
>>> packages.
>>> For example, a local project of mine builds just fine, but trying to cabal
>>> haddock the happstack-helpers package goes horribly wrong and no documentation
>>> is generated.
>>> How do I fix this? And why does it happen only in certain packages?
>> Did you patch hsc2hs also?
> I hadn't done that yet, but I've changed it so that the last line now reads:
> exec /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs
> $tflag $HSC2HS_EXTRA -optc-m32 -opta-m32 -optl-m32 ${1+"$@"} "$Iflag"
> However, cabal haddock still reports errors.

Mine reads:

    exec /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs $tflag $HSC2HS_EXTRA --cflag="-m32" --lflag="-m32" ${1+"$@"} "$Iflag"

hsc2hs doesn't take the -optc-* flags, it uses --cflag & --lflag instead.

Gregory Collins <greg at gregorycollins.net>

More information about the Haskell-Cafe mailing list