Sign in Join

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

Mailing lists / fpc-pascal / 2007-04

Problems when using gprof

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

bartek

Hi,

I tried using gprof to profile my program. But "fpc -pg infor.pp" results in:

[...]
fpc -pg infor
Free Pascal Compiler version 2.1.3 [2007/03/29] for i386 Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling infor.pp
infor.pp(94,2) Note: Local variable "winX" not used infor.pp(94,8) Note: Local variable "winY" not used Linking infor
/usr/local/lib/fpc/2.1.3/units/i386-linux/rtl/si_c21g.o: In function `SI_C21G__FPC_LIBC21_GPROF_GMON_START':
si_c21g.pp:(.text+0x2d): undefined reference to `__libc_atexit' infor.pp(144,1) Error: Error while linking
infor.pp(144,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)

[...]

FreePascal fixes_2_2 on Kubuntu 6.10 x86

Thanks in advance
bartek

Reply by email