Sign in Join

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

Mailing lists / lazarus / 2003-12

Problems running Lazarus

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

James Mills
to James Mills: I recently just grabbed the CVS sources and tried to compile lazarus: (gdb) run Starting…
Mattias Gaertner wrote 16 lines
On Tue, 23 Dec 2003 20:26:03 +1000 (James Mills) wrote: > Hi, > > I recently just grabbed the CVS sources and tried to compile lazarus: > > (gdb) run > Starting program: > /home/prologic/programming/temp/lazarus/lazarus/lazarus > TApplication.HandleException Range check error You compiled lazarus with range checking on. I added some explicit type casts. I don't know, how to fix all the range check warnings nice. For example, I need a type for the TStream.Size. Any ideas?

I compiled Lazarus with the default make options.
ie: make

I notice then that the default make options are with Range Checking on. I will try and recompile with them turned off.

As for your question, I have no idea at this stange as I don't understand the code well enough (but that may change) :)

cheers
James

-Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email

Mattias Gaertner
to James Mills: I recently just grabbed the CVS sources and tried to compile lazarus: (gdb) run Starting…
Show quoted text 26 lines
On Tue, Dec 23, 2003 at 12:22:14PM +0100, Mattias Gaertner wrote: > On Tue, 23 Dec 2003 20:26:03 +1000 (James > Mills) wrote: > > > Hi, > > > > I recently just grabbed the CVS sources and tried to compile lazarus: > > > > (gdb) run > > Starting program: > > /home/prologic/programming/temp/lazarus/lazarus/lazarus > > TApplication.HandleException Range check error > > You compiled lazarus with range checking on. I added some explicit type > casts. I don't know, how to fix all the range check warnings nice. > > For example, I need a type for the TStream.Size. Any ideas? I compiled Lazarus with the default make options. ie: make I notice then that the default make options are with Range Checking on. I will try and recompile with them turned off. As for your question, I have no idea at this stange as I don't understand the code well enough (but that may change) :)

Ok, that was a very short mail.

The range checking is probably from your global fpc.cfg. Range checking is a good thing and lazarus should run and compile fine, but it does not. :(

Most of the range check warnings comes from lines like

MyInteger:=AStream.Size;

Because TStream.Size is declared with ifdefs, it can be different types. It would help, if there would be a type for this. So, I can fix the range warnings without evil ifdefs.
I will add one to lcltype and hope that someday it can be replaced by something in the fcl/rtl.

THe otherthing is ColorRef. Is there any reason, why it is declared as cardinal?

Mattias

Reply by email

Mattias Gaertner
to James Mills: I recently just grabbed the CVS sources and tried to compile lazarus: (gdb) run Starting…
Show quoted text 8 lines
Hi, I recently just grabbed the CVS sources and tried to compile lazarus: (gdb) run Starting program: /home/prologic/programming/temp/lazarus/lazarus/lazarus TApplication.HandleException Range check error

You compiled lazarus with range checking on. I added some explicit type casts. I don't know, how to fix all the range check warnings nice.

For example, I need a type for the TStream.Size. Any ideas?

Mattias

Show quoted text 33 lines
TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM TApplication.HandleException: there was another exception during showing the first exception [TMainIDE.Destroy] A Program received signal SIGSEGV, Segmentation fault. TAVLTREENODEMEMMANAGER__DISPOSENODE (ANODE=$404afa54, this=$0) at avl_tree.pas:1100 1100 avl_tree.pas: No such file or directory. in avl_tree.pas cheers James PS: Be nice to finally get Lazarus working, this is the first time I've been able to compile it :) -- -Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

James Mills

Hi,

I recently just grabbed the CVS sources and tried to compile lazarus:

(gdb) run
Starting program:
/home/prologic/programming/temp/lazarus/lazarus/lazarus TApplication.HandleException Range check error
TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM TApplication.HandleException: there was another exception during showing the first exception
[TMainIDE.Destroy] A

Program received signal SIGSEGV, Segmentation fault. TAVLTREENODEMEMMANAGER__DISPOSENODE (ANODE=$404afa54, this=$0) at avl_tree.pas:1100
1100 avl_tree.pas: No such file or directory.
in avl_tree.pas

cheers
James

PS: Be nice to finally get Lazarus working, this is the first time I've been able to compile it :)

-Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email

Mattias Gaertner
to James Mills
Show quoted text 36 lines
On Wed, 24 Dec 2003 00:37:05 +1000 (James Mills) wrote: > On Tue, Dec 23, 2003 at 12:22:14PM +0100, Mattias Gaertner wrote: > > On Tue, 23 Dec 2003 20:26:03 +1000 > > (James Mills) wrote: > > > > > Hi, > > > > > > I recently just grabbed the CVS sources and tried to compile > > > lazarus: > > > > > > (gdb) run > > > Starting program: > > > /home/prologic/programming/temp/lazarus/lazarus/lazarus > > > TApplication.HandleException Range check error > > > > You compiled lazarus with range checking on. I added some explicit > > type casts. I don't know, how to fix all the range check warnings > > nice. > > > > For example, I need a type for the TStream.Size. Any ideas? > > I compiled Lazarus with the default make options. > ie: make > > I notice then that the default make options are with Range Checking on. > I will try and recompile with them turned off. > > As for your question, I have no idea at this stange as I don't > understand the code well enough (but that may change) :) Ok, that was a very short mail. The range checking is probably from your global fpc.cfg. Range checking is a good thing and lazarus should run and compile fine, but it does not. :(

I have fixed a big part of the range check warnings. Lazarus can now be compiled with range checking under linux/gtk.

Mattias

Reply by email

James Mills
to James Mills: I recently just grabbed the CVS sources and tried to compile lazarus: (gdb) run Starting…
Mattias Gaertner wrote
I have fixed a big part of the range check warnings. Lazarus can now be compiled with range checking under linux/gtk.

Thank you :)

cheers
James

-Zero Defect Software Engineers Group - ZDSEG - -Web: http://www.shortcircuit.net.au/ -Wiki: http://wiki.shortcircuit.net.au/ -ICQ: 98888663 - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email