Link failure with -prof (OS X, CVS GHC)
Using Mac OS X 10.2.2, the linker fails when -prof is
in effect:
(Relevant output from 'ghc -v -prof --make file.hs -o
file')
ld -arch ppc -dynamic -framework HaskellSupport [snip]
-o file -lcrt1.o -lcrtbegin.o -L/usr/local/lib/ghc-5.05
-L/usr/lib/gcc/darwin/3.1 -L/usr/lib/gcc/darwin
-L/usr/libexec/gcc/darwin/ppc/3.1/../../.. file.o
-lHShaskell98_p -lHSbase_p -lHSbase_cbits -lHSrts_p -lm
-lpthread -lgcc -lSystem |
c++filt3
ld: Undefined symbols:
_TextziReadziLex_Char_con_info
Upon further inspection, the symbol
_TextziReadziLex_Char_con_info is indeed not defined in
libHSbase_p.a as it should be. It is, however, present
in libHSbase.a.
After a full clean and rebuild, the problem persists.
This is with GHC 5.05 (CVS 2002-12-11).
Trac metadata
| Trac field | Value |
|---|---|
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedWorksForMe |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |