ivanperez-keera / SpaceInvaders

A Haskell game written in Yampa
BSD 3-Clause "New" or "Revised" License
26 stars 16 forks source link

compile error #30

Closed madjestic closed 3 years ago

madjestic commented 6 years ago

When following the installation instructions, I am getting the following error:

[13 of 14] Compiling ObjectBehavior   ( src/ObjectBehavior.hs, dist/dist-sandbox-5c221c1a/build/spaceInvaders/spaceInvaders-tmp/ObjectBehavior.o )

src/ObjectBehavior.hs:20:1: warning: [-Wunused-imports]
    The qualified import of ‘System.Random’ is redundant
      except perhaps to import instances from ‘System.Random’
    To import instances alone, use: import System.Random()

src/ObjectBehavior.hs:23:1: warning: [-Wunused-imports]
    The import of ‘FRP.Yampa.Integration’ is redundant
      except perhaps to import instances from ‘FRP.Yampa.Integration’
    To import instances alone, use: import FRP.Yampa.Integration()

src/ObjectBehavior.hs:24:1: warning: [-Wunused-imports]
    The import of ‘FRP.Yampa.Utilities’ is redundant
      except perhaps to import instances from ‘FRP.Yampa.Utilities’
    To import instances alone, use: import FRP.Yampa.Utilities()

src/ObjectBehavior.hs:256:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      gravity :: Vector2 Velocity

src/ObjectBehavior.hs:263:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      limit :: Ord a => a -> a -> a -> a

src/ObjectBehavior.hs:265:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      symLimit :: (Num t, Ord t) => t -> t -> t
ghc: panic! (the 'impossible' happened)
  (GHC version 8.0.2 for x86_64-unknown-linux):
    StgCmmEnv: variable not found
  $dNum_aoyU
  local binds for:
  $s$fVectorSpaceVector2a_$s$fVectorSpaceVector2a_$cnorm
  $s$fVectorSpaceVector2a_$s$fVectorSpaceVector2a_$cp1VectorSpace
  $sintegralAux_rsVn
  integralAux_rsVo
  lvl_rsVp
  lvl1_rsVq
  lvl2_rsVr
  lvl3_rsVs
  $sintegralAux1_rsVt
  integralAux1_rsVu
  $sintegralAux2_rsVv
  integralAux2_rsVw
  lvl4_rsVx
  lvl5_rsVy
  lvl6_rsVz
  lvl7_rsVA
  lvl8_rsVB
  lvl9_rsVC
  lvl10_rsVD
  lvl11_rsVE
  lvl13_rsVM
  lvl14_rsVN
  lvl15_rsVO
  lvl16_rsVP
  lvl17_rsVQ
  lvl18_rsVR
  lvl19_rsVS
  lvl20_rsVT
  lvl21_rsVU
  lvl22_rsVV
  lvl23_rsVW
  lvl24_rsVX
  lvl25_rsVY
  dt_rsVZ
  dt1_rsW0
  sf_rsW1
  dt2_rsW2
  lvl26_rsW3
  lvl27_rsW4
  lvl28_rsW5
  lvl29_rsW6
  lvl30_rsW7
  lvl31_rsW8
  lvl32_rsW9
  lvl33_rsWa
  lvl34_rsWb
  lvl35_rsWc
  lvl36_rsWd
  lvl37_rsWe
  lvl38_rsWf
  lvl39_rsWg
  lvl40_rsWh
  lvl41_rsWi
  lvl42_rsWj
  lvl43_rsWk
  lvl44_rsWl
  lvl45_rsWm
  lvl46_rsWn
  lvl47_rsWo
  lvl48_rsWp
  lvl49_rsWq
  lvl50_rsWr
  lvl51_rsWs
  lvl52_rsWt
  lvl53_rsWu
  lvl54_rsWv
  lvl55_rsWw
  lvl56_rsWx
  lvl57_rsWy
  lvl58_rsWz
  lvl59_rsWA
  lvl60_rsWB
  lvl61_rsWC
  lvl62_rsWD
  lvl63_rsWE
  lvl64_rsWF
  $sintegralAux3_rsWG
  integralAux5_rsWH
  ll_rsWI

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Any idea what may be causing that?

ivanperez-keera commented 6 years ago

I can reproduce this error with GHC 8.0.2 in Ubuntu. Can you please report it on GHC's issue tracker, and link here?

madjestic commented 6 years ago

15175#ticket

ivanperez-keera commented 6 years ago

Thanks.

g-pechorin commented 6 years ago

Can you suggest a workaround? If I'm reading the trac thread correctly; it's not been fixed

madjestic commented 6 years ago

wait till 8.8.1? ^_^

Not really a walkaround, but if you are interested in learning Yampa, I suggest taking a look at other examples that are currently working: haskanoid or yampy-cube for example.

ivanperez-keera commented 3 years ago

It is incredible that this bug is still present in GHC 8.10.

ivanperez-keera commented 3 years ago

It turns out that there was a workaround. See the diff for details.