[nhc-bugs] profiling
Saswat Anand
saswat@comp.nus.edu.sg
Fri, 19 Oct 2001 11:35:05 +0800 (GMT-8)
Hi,
I am using linux binaries on red hat 7.1.
Compiling for time profiling I get
undefined reference to `FN_Char_46intToDigit'
Compiling for heap profiling has no problem, but seg faults on run.
What is wrong? IS there a RPM for redhat?
Thanks,
Saswat
[saswat@cf-plslab9 Oct17]$ nhc98 -98 Types.hs Operators.hs Mutables.hs
Primitives.hs Pattern.hs CPL.hs Main.hs -o Main -t
/usr/local/lib/nhc98/ix86-Linux/Numeric.z.a(ShowIntBase.z.o)(.data+0x12c): undefined
reference to `FN_Char_46intToDigit'
collect2: ld returned 1 exit status
[saswat@cf-plslab9 Oct17]$ rm *.o *.hi -f
[saswat@cf-plslab9 Oct17]$ nhc98 -98 Types.hs Operators.hs Mutables.hs
Primitives.hs Pattern.hs CPL.hs Main.hs -o Main -p
[saswat@cf-plslab9 Oct17]$ ./Main +RTS -H4M -p -RTS
82853
32974.9531
Segmentation fault (core dumped)