Sign in Join

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

Mailing lists / lazarus / 2012-01

Lazarus and FPC FCL

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

Since some days (SVN updates) I have problems with unit IniFiles. I cannot debug these problems, because the IDE seems not to find the proper source files (fpc\packages\fcl-base\src\inifiles.pp), so that breakpoints in this files are not honored (no dots shown).

Where should I look for?

BTW using Win7, Lazarus and FPC trunk

DoDi

Reply by email

Sven Barth
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 8 lines
Since some days (SVN updates) I have problems with unit IniFiles. I cannot debug these problems, because the IDE seems not to find the proper source files (fpc\packages\fcl-base\src\inifiles.pp), so that breakpoints in this files are not honored (no dots shown). Where should I look for? BTW using Win7, Lazarus and FPC trunk

Did you compile FPC with debug flags (e.g. CROSSOPT="-gl")? If you did just a "make all" then there won't be any debug info and then Lazarus can't help you there.

Regards,
Sven

Reply by email

Hans-Peter Diettrich
to Sven Barth
Did you compile FPC with debug flags (e.g. CROSSOPT="-gl")? If you did just a "make all" then there won't be any debug info and then Lazarus can't help you there.

Then it must have been by accident, that I could step into FPC units some time ago?

I also have a new problem in rebuilding the IDE:

registerfcl.pas(43,3) Fatal: Can't find unit ServiceManager used by
RegisterFCL

A "make bigide" succeeded, but didn't install all my selected packages.

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 13 lines
Sven Barth schrieb: > Did you compile FPC with debug flags (e.g. CROSSOPT="-gl")? If you did > just a "make all" then there won't be any debug info and then Lazarus > can't help you there. Then it must have been by accident, that I could step into FPC units some time ago? I also have a new problem in rebuilding the IDE: registerfcl.pas(43,3) Fatal: Can't find unit ServiceManager used by RegisterFCL

Have you altered the fcl.lpk? Check your svn diff.

A "make bigide" succeeded, but didn't install all my selected packages.

Mattias

Reply by email

Hans-Peter Diettrich
to Mattias Gaertner
Show quoted text 6 lines
> I also have a new problem in rebuilding the IDE: > > registerfcl.pas(43,3) Fatal: Can't find unit ServiceManager used by > RegisterFCL Have you altered the fcl.lpk? Check your svn diff.

I tried to modify it, but reverted when it turned out to be of no use.

Now it looks like an FPC problem: with 2.6 Lazarus builds and rebuilds fine, but (currently) not with 2.7 where it already fails in "make clean all". Unfortunately I need 2.7 for the FPDocManager, and every attempt to build the project or package fails with similar errors, only the not-found unit varies :-(

DoDi

Reply by email

Marco van de Voort
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 16 lines
Mattias Gaertner schrieb: >> I also have a new problem in rebuilding the IDE: >> >> registerfcl.pas(43,3) Fatal: Can't find unit ServiceManager used by >> RegisterFCL > > Have you altered the fcl.lpk? Check your svn diff. I tried to modify it, but reverted when it turned out to be of no use. Now it looks like an FPC problem: with 2.6 Lazarus builds and rebuilds fine, but (currently) not with 2.7 where it already fails in "make clean all". Unfortunately I need 2.7 for the FPDocManager, and every attempt to build the project or package fails with similar errors, only the not-found unit varies :-(

That sounds like the standard "release is built with -Ur, snapshot not" symptom.

IOW the problems are there in both cases, but releases are built with -Ur.

Reply by email

Hans-Peter Diettrich
to Marco van de Voort
Show quoted text 10 lines
On Sat, Jan 21, 2012 at 07:58:56PM +0100, Hans-Peter Diettrich wrote: > Now it looks like an FPC problem: with 2.6 Lazarus builds and rebuilds > fine, but (currently) not with 2.7 where it already fails in "make clean > all". Unfortunately I need 2.7 for the FPDocManager, and every attempt > to build the project or package fails with similar errors, only the > not-found unit varies :-( That sounds like the standard "release is built with -Ur, snapshot not" symptom.

Both FPC versions are from SVN, and at least 2.7 (now) is made with -Ur.

What should I try to make Lazarus behave the same with FPC 2.6 and 2.7?

DoDi

Reply by email

Hans-Peter Diettrich
to Sven Barth: Did you compile FPC with debug flags (e.g. CROSSOPT="-gl")? If you did just a "make all"…
Show quoted text 13 lines
On 21.01.2012 11:58, Hans-Peter Diettrich wrote: > Since some days (SVN updates) I have problems with unit IniFiles. I > cannot debug these problems, because the IDE seems not to find the > proper source files (fpc\packages\fcl-base\src\inifiles.pp), so that > breakpoints in this files are not honored (no dots shown). > > Where should I look for? > > BTW using Win7, Lazarus and FPC trunk Did you compile FPC with debug flags (e.g. CROSSOPT="-gl")? If you did just a "make all" then there won't be any debug info and then Lazarus can't help you there.

I tried to build and install FPC with above option, but it seems not to help, I still cannot step into the FCL code, and breakpoints are not honored. Must "-g" be added as well?

Then I tried to add inifiles.pp to my project, and now I can step into this unit and set breakpoints in it :-)

BTW, the problems with rebuilding Lazarus seem to have come from a buggy fpc.cfg, have gone away now, too :-)

DoDi

Reply by email