Sign in Join

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

Mailing lists / lazarus / 2017-03

Error: No Memory left at linking Lazarus with fpc trunk

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Andreas Frieß

If i want to recompile Lazarus with some packages i got the following error. If the fpc link Lazarus, it was running out of memory !?

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 4005530d-fff6-0310-9dd1-cebe43e6787f
FPC 3.1.1 i386-win32-win32/win64

with fpc 3.0.2 it works

################################

make: Entering directory `C:/Data/Hugo/Komponenten/Lazarus' C:/Data/development/fpctrunk/fpc/bin/i386-win32/make -C ide idepkg make[1]: Entering directory `C:/Data/Hugo/Komponenten/Lazarus/ide' ../tools/svn2revisioninc.exe .. revision.inc
C:/Data/development/fpctrunk/fpc/bin/i386-win32/make --assume-new=lazarus.pp lazarus.exe OPT=' -WG
@C:\Data\development\LazHugo\idemake.cfg'
make[2]: Entering directory `C:/Data/Hugo/Komponenten/Lazarus/ide' C:/Data/development/fpctrunk/fpc/bin/i386-win32/fpc.exe -gl -vbqewnhi -Sci -dlclwin32 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuinclude/win -Fuframes -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32/win32 -WG @C:\Data\development\LazHugo\idemake.cfg -di386 lazarus.pp Hint: (11030) Start of reading config file
C:\Data\development\fpctrunk\fpc\bin\i386-win32\fpc.cfg Hint: (11031) End of reading config file
C:\Data\development\fpctrunk\fpc\bin\i386-win32\fpc.cfg Hint: (11030) Start of reading config file
C:\Data\development\LazHugo\idemake.cfg
Hint: (11031) End of reading config file
C:\Data\development\LazHugo\idemake.cfg
Free Pascal Compiler version 3.1.1 [2017/02/08] for i386 Copyright (c) 1993-2017 by Florian Klaempfl and others (1002) Target OS: Win32 for i386
(3104) Compiling lazarus.pp
C:\Data\Hugo\Komponenten\Lazarus\ide\lazarus.pp(109,20) Warning: (5044) Symbol "MainFormOnTaskBar" is not portable
(9022) Compiling resource
C:\Data\Hugo\Komponenten\Lazarus\units\i386-win32\win32\lazarus.or (9015) Linking ..\lazarus.exe
C:\Data\Hugo\Komponenten\Lazarus\ide\lazarus.pp(159,1) Error: (1026) Compilation raised exception internally
Fatal: (1009) No memory left
Error: C:\Data\development\fpctrunk\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
make[2]: *** [lazarus.exe] Error 1
make[2]: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus/ide' make[1]: *** [idepkg] Error 2
make[1]: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus/ide' make: *** [idepkg] Error 2
make: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus' #############################

Reply by email

Mattias Gaertner
to Andreas Frieß
Show quoted text 10 lines
Andreas Frieß via Lazarus hat am 7. März 2017 um 13:12 geschrieben: If i want to recompile Lazarus with some packages i got the following error. If the fpc link Lazarus, it was running out of memory !? git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 4005530d-fff6-0310-9dd1-cebe43e6787f FPC 3.1.1 i386-win32-win32/win64 with fpc 3.0.2 it works

How much RAM do you have?

FPC 3.1.1 is experimental. When you spot a bug, please try an older revision. If that works, try to find the revision that broke it.

Do you know what package triggers this?

Mattias

Reply by email

Andreas Frieß
to Mattias Gaertner

I have RAM of 24GB in this machine,

but its a Free Pascal Compiler version 3.1.1 [2017/03/08] for i386 so i think there is the RAM limited for this process.

I have tried this with different packages in different constellations to find out which package trigger this. But i have a lot of packages in the actual project and i need generics.

Can i change the heapsize with-Chxxxxx in the fpc.cfg and what is the default heapsize ?

Andreas

Mattias Gaertner wrote 17 lines
> Andreas Frieß via Lazarus hat am 7. März 2017 um 13:12 geschrieben: > > If i want to recompile Lazarus with some packages i got the following > error. If the fpc link Lazarus, it was running out of memory !? > > git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 > 4005530d-fff6-0310-9dd1-cebe43e6787f > FPC 3.1.1 i386-win32-win32/win64 > > with fpc 3.0.2 it works How much RAM do you have? FPC 3.1.1 is experimental. When you spot a bug, please try an older revision. If that works, try to find the revision that broke it. Do you know what package triggers this? Mattias

Reply by email

Luiz Americo Pereira Camara
to Mattias Gaertner: How much RAM do you have? FPC 3.1.1 is experimental. When you spot a bug, please try an…

2017-03-07 9:37 GMT-03:00 Mattias Gaertner via Lazarus <

Show quoted text 8 lines
: How much RAM do you have? FPC 3.1.1 is experimental. When you spot a bug, please try an older revision. If that works, try to find the revision that broke it.

I've got the same issue with fpc trunk from september 2016. See http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-September/229483.html

The crash occurs when memory usage hit ~ 800MB.

Do you know what package triggers this?

Probably related to the number of installed packages, at the time i had 78

Seems that code typhon fixed it. See entry 16-Nov-2016 ver 5.90 at http://www.pilotlogic.com/codetyphon/changeslog.txt

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170308/64628518/attachment.html>

Reply by email

Andreas Frieß
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote
Seems that code typhon fixed it. See entry 16-Nov-2016 ver 5.90 at

I looked for it and made a compare.

One change is in the pp.pas aroud line 150. Now i patched the actual trunk 35551. Now fpc compiles the 'Big' Lazarus for me.

Andreas

===============

{$ifdef win32}
   { 256 MB stack }
   { under windows the stack can't grow }
   {$MAXSTACKSIZE 256000000}
   {$setpeflags $20} //=== ct9999 =============
{$else win32}
   {$ifdef win64}
     { 512 MB stack }
     { under windows the stack can't grow }
     {$MAXSTACKSIZE 512000000}
   {$else win64}
     { 1 MB stack }
     {$MINSTACKSIZE 1000000}
   {$endif win64}
{$endif win32}

Reply by email