[fpc-devel] profiling under windows
Vincent Snijders
vsnijders at vodafonevast.nl
Fri Nov 20 08:30:49 CET 2009
Paul Ishenin schreef:
> Hello, FPC developers' list.
>
> I tried to build the compiler with gprof profile code. In the compiler
> dir I executed:
>
> make clean all OPT="-gl -pg"
>
> As result of linking I have the next errors:
> Linking .\pp.exe
> pp.pas(224,1) Error: Import library not found for c
> pp.pas(224,1) Error: Import library not found for gmon
> pp.pas(224,1) Error: Import library not found for cygwin
> pp.pas(224,1) Error: Import library not found for user32
> pp.pas(224,1) Error: Import library not found for kernel32
> pp.pas(224,1) Error: Import library not found for gcc
I have those files in c:\cygwin\lib. I don't know anymore what cygwin packages I
installed to get them.
Last time I tried (a couple of months ago), I could compile Lazarus with profiling
info, but the gprof output file remained empty, IIRC.
> pp.pas(224,1) Error: Undefined symbol: _mcount
> pp.pas(224,1) Error: Undefined symbol: __mcleanup
> pp.pas(224,1) Error: Undefined symbol: _monstartup
> pp.pas(224,1) Error: Undefined symbol: ___main
> pp.pas(224,1) Error: Undefined symbol: _cygwin_crt0
> pp.pas(224,1) Fatal: There were 11 errors compiling module, stopping
>
> I understand that I need to help linker somehow to find some files. But
> I have no idea what does it need: c.lib or c.o or c.dll? Where should I
> obtain that files?
libc.a
Vincent
More information about the fpc-devel
mailing list