Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-02

Profiling on win32 (again)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giulio Bernardi

Hi,
a strange thing has happened :P

When Peter fixed the gprof bug on win32, I simply downloaded gprt0.as from svn, recompiled it
and replaced the old gprt0.o in my 2.0.2 install with the new one: everything worked.

Now, I made a small package (gprof_win32) with libraries from cygwin and gprof.exe, I sent it
to John Lee and he put it into contrib directory.
But he told me that when trying to compile a program with -pg switch with fpc 2.0.3 (yesterday snapshot),
a link error occurs:

libpsystem.a(system0s852.o):system.pp:(.text+0x68): undefined reference to `_stkptr'.

I checked myself and same thing happens on my machine.

I downloaded again gprt0.as from svn (fixes branch), I compiled it... and everything works.
I suppose that gprt0.o that came from 2.0.3 snapshot was compiled from the same gprt0.as...
so this sounds very mysterious to me.

On 2.1.x snapshot there are no link errors.

bye,
Giulio

Reply by email