Skip to content

error: expected ';' before 'else'

Building git HEAD on linux-ppc64 (don't think the platform is relevant other than ppc64 being un-registered) and get:

"inplace/bin/ghc-stage1" -static  -H32m -O -Werror -Wall -H64m -O0   \
 -package-name ghc-prim-0.3.0.0 -hide-all-packages -i -ilibraries/ghc-prim/. \
 -ilibraries/ghc-prim/dist-install/build -ilibraries/ghc-prim/dist-install/build/autogen \
 -Ilibraries/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist-install/build/autogen \
 -Ilibraries/ghc-prim/.    -optP-include -optPlibraries/ghc-prim/dist-install/build/autogen \
 /cabal_macros.h -package rts-1.0  -package-name ghc-prim -XHaskell98 -XCPP -XMagicHash \
 -XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples -XEmptyDataDecls \
 -XNoImplicitPrelude -O2 -O -dcore-lint -fno-warn-deprecated-flags  -no-user-package-db \
 -rtsopts      -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist- \
 install/build -stubdir libraries/ghc-prim/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c \
 libraries/ghc-prim/./GHC/Types.hs -o libraries/ghc-prim/dist-install/build/GHC/Types.o \
 /tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Czh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:26:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Dzh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:58:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Fzh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:90:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Izh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:120:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_ZC_entry':

/tmp/ghc27944_0/ghc27944_0.hc:154:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Eqzh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:197:41:
     error: expected ';' before 'else'
/tmp/ghc27944_0/ghc27944_0.hc: In function 'ghczmprim_GHCziTypes_Wzh_entry':

/tmp/ghc27944_0/ghc27944_0.hc:225:41:
     error: expected ';' before 'else'

gcc version is 4.6.3 from Debian.

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information