Re: heap profiling with nhc98-1.0pre18



About this list Date view Thread view Subject view Author view

José Romildo Malaquias (romildo@urano.iceb.ufop.br)
Wed, 19 Apr 2000 09:27:46 -0300


On Wed, Apr 19, 2000 at 10:13:26AM +0200, Jan Kort wrote: > > I installed a fresh nhc98-1.0pre18, which builds nicely with > "make all-gcc" without change. Normal compiling and running > works. But when I do "nhc98 -p Main.hs" I get the following > error: > > (~/src/haskell/bugnhc 17) nhc98 -p Main.hs > Undefined first referenced > symbol in file > PM_DErrNo > /home/kort/pkgs/nhc/lib/nhc98/sparc-solaris2/Preludep.a(DErrNo.o) > ld: fatal: Symbol referencing errors. No output written to a.out > collect2: ld returned 1 exit status > > The file Main.hs: > > module Main(main) where > main :: IO() > main = putStr "test\n" > > When I do "nhc98 Main.hs" it does compile and run. > > It seems to be related to the previous error reported by Romildo. When trying your example in my system (RedHat Linux 6.2) I am getting the following messages from the compiler that makes me believe the profiling code is not installed in my system. Shouldn't it be installed by default? I see no options for it in the configure script. ==================================================================== $ nhc98 -p hello.hs gcc: /usr/lib/nhc98/ix86-Linux/mainp.o: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/mutlibp.o: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/mutatorp.o: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/Preludep.a: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/Runtimep.a: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/Preludep.a: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/libdebugp.a: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/Runtimep.a: No such file or directory gcc: /usr/lib/nhc98/ix86-Linux/Preludep.a: No such file or directory ==================================================================== I am going to recompile nhc98 and test again before installing. Romildo -- Prof. José Romildo Malaquias <romildo@iceb.ufop.br> Departamento de Computação Universidade Federal de Ouro Preto Brasil


About this list Date view Thread view Subject view Author view