|
Undefined symbols on new install of ghc 6.2.2: msg#00095lang.haskell.glasgow.bugs
One of my colleagues just installed ghc 6.2.2 on their Windows machine. GHC compiles fine but ghc --make fails at the linking stage with a bunch of undefined symbols that ought to have been part of the ghc install like: ./MakeUtils.o(.text+0x43): In function `_stginit_MakeUtils_': : undefined reference to `_stginit_IO_' ./MakeUtils.o(.text+0x4d): In function `_stginit_MakeUtils_': : undefined reference to `_stginit_Prelude_' ./MakeUtils.o(.text+0x5c): In function `r1pU_srt': : undefined reference to `GHCziBase_zdfEqZMZN_closure' (see attached file for complete list of undefined symbols). We've checked that the lib files exist and confirmed that he installed ghc in the normal place (see message at end of this message). ghc-6.2.2 works just fine on my machine. Does this ring any bells for anyone? -- Alastair Reid, Principal Engineer, R&D ARM Ltd, 110 Fulbourn Rd, Cambridge, CB1 9NJ. T: +44 1223 406 109 This e-mail message is intended for the addressee(s) only and may contain information that is the property of, and/or subject to a confidentiality agreement between the intended recipient(s), their organisation and/or the ARM Group of Companies. If you are not an intended recipient of this e-mail message, you should not read, copy, forward or otherwise distribute or further disclose the information in it; misuse of the contents of this e-mail message may violate various laws in your state, country or jurisdiction. If you have received this e-mail message in error, please contact the originator of this e-mail message via e-mail and delete all copies of this message from your computer or network, thank you. -----Original Message----- Alastair Reid wrote: > Can you try: > > ghc -v > > this will produce a few hundred lines of output amongst which > there's a bunch of filenames like > > c:/ghc/ghc-6.2.2 > c:/ghc/ghc-6.2.2/imports > c:/ghc/ghc-6.2.2/hslibs-imports/util > > The first should have a bunch of files with names like > libHS*.a and is the most important > The latter should have a bunch of *.hi files (and seem to be > fine since you got as far as linking). Assuming you mean that these directories should have the files you name (not the output of ghc -v), then, yes, they are present. > Check you're not really low on diskspace in case the install > silently failed (e.g., the 100s of Mbytes of libHS*.a files > weren't all installed). Plenty of disc space. > If that looks plausible, try adding the -v flag to the ghc > --make command line to see if you get any useful info about > the failure. > If still nothing, try -v4 and -v5 to get extra verbosity. I tried this but learnt nothing new (see attached). Is it possible that I need to set some environment variables other than PATH (e.g. LD_LIBRARY_PATH)?
Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | a stateful bug, Frederik Eaton |
|---|---|
| Next by Date: | Re: Undefined symbols on new install of ghc 6.2.2, Sigbjorn Finne |
| Previous by Thread: | a stateful bug, Frederik Eaton |
| Next by Thread: | Re: Undefined symbols on new install of ghc 6.2.2, Sigbjorn Finne |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |