[Haskell-cafe] maybe a GHC bug but not sure
eca7215 at cs.rit.edu
Tue May 31 05:20:26 CEST 2011
When building the Haskell Objective C bindings tool from
Using GHC 7.0.3 for Haskell Platform 2011.2.0.1, OS X 64 bit
HOC compiles HOC_cbits.o before trying to build it into the rest of
the program (I don't say link because this came up while trying to
> [18 of 31] Compiling HOC.StdArgumentTypes ( HOC/HOC/StdArgumentTypes.hs, dist/build/HOC/StdArgumentTypes.o )
> [loading packages, like you'd see from ghci...]
> Loading object (static) dist/build/HOC_cbits.o ... ghc: dist/build/HOC_cbits.o: Bad magic. Expected: feedfacf, got: feedface.
GHC says "the impossible happened" and tells me to report it as a GHC
bug, but based on the odd behavior I think the HOC build script might
be doing something odd. I just don't have any idea where to start
looking. For instance, why the heck is it looking at the magic bits
for an object file while compiling a source file?
Any insight appreciated.
Rochester Institute of Technology
More information about the Haskell-Cafe