Opened 4 years ago

Closed 4 years ago

#8771 closed bug (fixed)

ASSERT unexpanded in compiler/coreSyn/CoreSubst.lhs

Reported by: jkarni Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.9
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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- -package array- -package base- -package bin-package-db- -package bytestring- -package containers- -package directory- -package filepath- -package hoopl- -package hpc- -package process- -package time- -package transformers- -package unix- -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

    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.

Attachments (1)

0001-Remove-space-after-ASSERT.patch (976 bytes) - added by jkarni 4 years ago.
Remove space after ASSERT

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by jkarni

Remove space after ASSERT

comment:1 Changed 4 years ago by jkarni

Status: newpatch

comment:2 Changed 4 years ago by ezyang

Resolution: fixed
Status: patchclosed

Thanks, applied.

commit 3d9644c2fc705ec80a8a63b0b698d74cd2d49212
Author: Julian K. Arni <>
Date:   Wed Feb 12 04:11:31 2014 -0200

    Remove space after ASSERT.
      Which on OS X leaves macro unexpanded.
Note: See TracTickets for help on using tickets.