suffix or operands invalid for `push'

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? Many thanks, Martijn.

Martijn van Steenbergen
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?
G
--
Gregory Collins

Gregory Collins wrote:
Martijn van Steenbergen
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. Martijn.

Martijn van Steenbergen
Gregory Collins wrote:
Martijn van Steenbergen
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.
G
--
Gregory Collins
participants (2)
-
Gregory Collins
-
Martijn van Steenbergen