Opened 15 years ago

Closed 15 years ago

Last modified 48 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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
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 |
ld: Undefined symbols:

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 15 years ago by wthaller

Logged In: YES 

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 15 years ago by simonmar

Status: assignedclosed
Logged In: YES 

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.