> I recently had some trouble trying to compile a simple
> Template Haskell
> program
>
> main = putStrLn (show ($[| 20 |]))
>
> The following output was generated:
>
> /home/sseefried/local/lib/ghc-5.05/HSbase_cbits.o: unknown symbol
> `__umoddi3'
> Loading package base ... linking ... ghc-5.05: panic! (the
> `impossible'
> happened, GHC version 5.05):
> can't load package `base'
I've had a quick look into this, and here's what I've discovered:
GCC has __umoddi3 in libgcc.a. It generates calls to that function and
others for some 64-bit operations. On our RedHat box here, __umoddi3 is
also exported by libc.so, which is why we don't get any link errors.
Perhaps on your box it isn't?
It looks like the same problem crops up on MacOS/X, because there's code
in the linker to add these symbols to the symbol table, surrounded by
#ifdef powerpc_TARGET_OS.
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs