|
RE: Symbol referencing problem in GHC HEAD.: msg#00045lang.haskell.glasgow.bugs
> 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: GLUT copyright violation, Sven Panne |
|---|---|
| Next by Date: | Re: Symbol referencing problem in GHC HEAD., Michael Weber |
| Previous by Thread: | Symbol referencing problem in GHC HEAD., Sean Seefried |
| Next by Thread: | Re: Symbol referencing problem in GHC HEAD., Michael Weber |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |