Opened 13 years ago

Closed 13 years ago

Last modified 46 years ago

#103 closed bug (Works For Me)

Link failure with -prof (OS X, CVS GHC)

Reported by: whee Owned by: nobody
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

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).


Change History (2)

comment:1 Changed 13 years ago by wthaller

Logged In: YES 
user_id=566359

No problem here (CVS 2002-12-12).
Both libHSbase.a and libHSbase_p.a contain the symbol
TextziReadziLex_Char_con_info. No error occurs when linking
a hello-world style program for profiling.

comment:2 Changed 13 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

The problem couldn't be reproduced, and the original 
submitter of the report hasn't followed up.
Note: See TracTickets for help on using tickets.