[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: __GLASGOW_HASKELL__ flag set incorrectly in 7.4.0 revision 2 (not sure about revision 3)

Ok, I see - the value for ghc 7.4.0 is supposed to be 704, the value for ghc 7.0.4 is supposed to be 700.

On Wed, Jan 4, 2012 at 6:38 AM, David Fox <ddssff@gmail.com> wrote:
Below you can see that the C preprocessor is seeing -D__GLASGOW_HASKELL__=704 rather than 740 or 741.  I actually can't believe things are working as well as they are with this set wrong, I must be confused about something.

# ghc --version
The Glorious Glasgow Haskell Compilation System, version
# ghc -v src/HSP/XMLGenerator.hs
Glasgow Haskell Compiler, Version, stage 2 booted by GHC version 7.0.4
Using binary package database: /usr/lib/ghc/package.conf.d/package.cache
hiding package QuickCheck- to avoid conflict with later version QuickCheck-2.4.2
hiding package parsec- to avoid conflict with later version parsec-3.1.1
hiding package deepseq- to avoid conflict with later version deepseq-
hiding package binary- to avoid conflict with later version binary-
wired-in package ghc-prim mapped to ghc-prim-
wired-in package integer-gmp mapped to integer-gmp-
wired-in package base mapped to base-
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static
*** Chasing dependencies:
Chasing modules from: *src/HSP/XMLGenerator.hs
Created temporary directory: /tmp/ghc10150_0
*** C pre-processor:
'/usr/bin/gcc' '-E' '-undef' '-traditional' '-fno-stack-protector' '-Wl,--hash-size=31' '-Wl,--reduce-memory-overheads' '-I' '/usr/lib/ghc/base-' '-I' '/usr/lib/ghc/include' '-D__GLASGOW_HASKELL__=704' '-Dlinux_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Dlinux_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-x' 'c' 'src/HSP/XMLGenerator.hs' '-o' '/tmp/ghc10150_0/ghc10150_0.hscpp'
*** Haskell pre-processor:
'trhsx' 'src/HSP/XMLGenerator.hs' '/tmp/ghc10150_0/ghc10150_0.hscpp' '/tmp/ghc10150_0/ghc10150_0.hspp'

Reply to: