Re: ld: Undefined symbols on OS X when compiling with -t
Malcolm Wallace <[email protected]> Mon, 22 May 2006 14:53:03 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Shin-Cheng Mu <[email protected]> wrote: > scm$ hmake -nhc98 -t text > nhc98 -t -c -o text.z.o text.hs > nhc98 -t -o text text.z.o > /usr/bin/ld: Undefined symbols: > _FN_NHC_46Internal_46_95apply1 > _FN_NHC_46Internal_46_95apply2 > _TMSUB_NHC_46DErrNo > _TM_NHC_46DErrNo > _TMSUB_NHC_46PackedString > _TM_NHC_46PackedString > > Is it a bug, or is something missing in Darwin Ports? This is a bug. Unfortunately, the time-profiling code has not been properly maintained or tested since it was contributed to the main compiler branch. (The reason for this particular breakage is that time-profiling relies on a post-processor for object files after they have been built, and this has some some hand-coded hacks for internal Prelude-like definitions. When the runtime internals changed, these hacks were not kept in sync.) Regards, Malcolm