Recent

Author Topic: A strange problem after upgrade to 2.0.2  (Read 4539 times)

Blythe

  • Newbie
  • Posts: 2
A strange problem after upgrade to 2.0.2
« on: February 25, 2006, 07:33:02 am »
Hi:

I have been using FPC for some time now under Linux, from version 1.0.9 or so. Up until recently I was using fpc-2.0.0, no problems.

I upgraded to 2.0.2. As usual I compiled/installed from source tar-ball. The installation went perfectly as always. Then I got the tarball for the latest Lazarus, unpacked it and did the usual make clean all. It compiled without error, but when it got to the end, "Linking Lazarus" the load average slowly crept up.... and up and up.... till it reached 45 or so and crashed the server. This was on a Redhat9 box with q 1ghz pentium, and 500meg ram. So I got a new tarball, stuck it on another Linux server, it has 2ghz pentium, and 1ghz ram, it too compiled OK, but the load average crept up untill I lost the consol, at over 50! In each case, it was ld which was causing the high load.

$ ld --version
GNU ld version 2.13.90.0.18 20030206
Copyright 2002 Free Software Foundation, Inc.

So, I went and got the RPM for lazarus, and installed it that way (Yuck). Install OK, and the interface works as expected. So I did a simple project, the tutorial one in fact, with the 2 buttons. Run-->run and the status window reports the compile OK, but upon linking, the load starts to creep up, and up and up....

All of my pascal source code compiles and links without a problem. Some of which contains many hundreds of lines of code., but it was all developed at the command line without an IDE. I write system software, and cgi programs, just vi and then fpc source.pas. I rarely used Lazarus under fpc-2.0.0 except to do the tutorial, but that worked well, and did not overload the machine upon linking.
 
It seems, for some reason, I can not install  Lazarus from source, nor use it either, under fpc-2.0.2.
 
I have rechecked the  fpc install, the /etc/fpc.cfg file, all the paths and all the links in /usr/local/bin. All SEEMS ok, but lazarus seems to be broken for some reason.
 
I need a clue as to where to look????
 
TIA

Blythe

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2680
RE: A strange problem after upgrade to 2.0.2
« Reply #1 on: February 27, 2006, 11:20:49 am »
This sounds as if you are trying to build lazarus smartlinked. That costs a lot of ram. I don't know why this happens. Maybe you enabled it in your fpc.cfg.
For me lazarus compiles fine on a dual PIII 500 with 512MB
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Blythe

  • Newbie
  • Posts: 2
RE: A strange problem after upgrade to 2.0.2
« Reply #2 on: March 11, 2006, 06:59:20 am »
Thanks Marc!
That's exactly what it turned out to be. I had the -XX switched on in /etc/fpc.cfg

Blythe

 

TinyPortal © 2005-2018