[GHC] #8771: ASSERT unexpanded in compiler/coreSyn/CoreSubst.lhs

GHC ghc-devs at haskell.org
Wed Feb 12 06:29:12 UTC 2014


#8771: ASSERT unexpanded in compiler/coreSyn/CoreSubst.lhs
-------------------------------------+-------------------------------------
       Reporter:  jkarni             |             Owner:
           Type:  bug                |            Status:  new
       Priority:  normal             |         Milestone:
      Component:  Compiler           |           Version:  7.9
       Keywords:                     |  Operating System:  MacOS X
   Architecture:  Unknown/Multiple   |   Type of failure:  Building GHC
     Difficulty:  Easy (less than 1  |  failed
  hour)                              |         Test Case:
     Blocked By:                     |          Blocking:
Related Tickets:                     |
-------------------------------------+-------------------------------------
 An ASSERT macro in compiler/coreSyn/CoreSubst.lhs isn't being expanded
 because of a space before the parens. The error:

 {{{
  make -j3
 ...
 "/usr/local/bin/ghc" -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O
 -Werror -Wall -H64m -O0  -package-db libraries/bootstrapping.conf
 -package-name ghc-7.9 -hide-all-packages -i -icompiler/basicTypes
 -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar
 -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen
 -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude
 -icompiler/profiling -icompiler/rename -icompiler/simplCore
 -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn
 -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils
 -icompiler/vectorise -icompiler/stage1/build
 -icompiler/stage1/build/autogen -Icompiler/stage1/build
 -Icompiler/stage1/build/autogen -Icompiler/. -Icompiler/parser
 -Icompiler/utils -Icompiler/stage1    -optP-include
 -optPcompiler/stage1/build/autogen/cabal_macros.h -package Cabal-1.18.1.3
 -package array-0.4.0.1 -package base-4.6.0.1 -package bin-package-
 db-0.0.0.0 -package bytestring-0.10.0.2 -package containers-0.5.0.0
 -package directory-1.2.0.1 -package filepath-1.3.0.1 -package
 hoopl-3.10.0.0 -package hpc-0.6.0.1 -package process-1.1.0.2 -package
 time-1.4.0.1 -package transformers-0.3.0.0 -package unix-2.6.0.1 -Wall
 -fno-warn-name-shadowing -XHaskell98 -XCPP -XMagicHash -XUnboxedTuples
 -XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls
 -XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances
 -XRankNTypes -XScopedTypeVariables -XDeriveDataTypeable -XBangPatterns
 -XNondecreasingIndentation -DSTAGE=1  -fwarn-tabs -O  -no-user-package-db
 -rtsopts      -odir compiler/stage1/build -hidir compiler/stage1/build
 -stubdir compiler/stage1/build   -c compiler/coreSyn/CoreSubst.lhs -o
 compiler/stage1/build/CoreSubst.o

 compiler/coreSyn/CoreSubst.lhs:1360:7:
     Not in scope: data constructor `ASSERT'
 make[1]: *** [compiler/stage1/build/CoreSubst.o] Error 1
 make: *** [all] Error 2
 }}}

 /usr/local/bin/ghc is version 7.6.3. I'm building HEAD, which is at commit
 5d04603b33d285565774, though a27b2985511800fa3b740fef82 (HEAD~2)
 introduced the code in question.

 This is, I'm pretty sure, literally a one character (and a whitespace, at
 that) fix. Attached is the patch.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8771>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list