Sign in Join

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

Mailing lists / lazarus / 2016-09

Lazarus IDE compilation error due to "No memory left"

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Luiz Americo Pereira Camara

When i try to recompile the IDE i'm getting the error below:

Error: (1026) Compilation raised exception internally Fatal: (1009) No memory left
Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error exitcode

I have a decent computer 8 GB ram, core i5 third generation.

Running windows 10, fpc trunk 32bit, lazarus trunk.

In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) having more then 4GB free

The problems seems related to number of packages installed (i have 78). Trying to compile in a linux VM with fewer packges runs fine.

In previous times, i rebooted and the compilation suceeded. Today still not tried.

Is someone having similar issue?

The number of packages affects the memory usage?

Is there anything i can do beyond removing packages?

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

Reply by email

Martin Frb
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote 13 lines
When i try to recompile the IDE i'm getting the error below: Error: (1026) Compilation raised exception internally Fatal: (1009) No memory left Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error exitcode I have a decent computer 8 GB ram, core i5 third generation. Running windows 10, fpc trunk 32bit, lazarus trunk. In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) having more then 4GB free

32 bit doesnt use more than 4GB, and some goes to the system.

Show quoted text 6 lines
The problems seems related to number of packages installed (i have 78). Trying to compile in a linux VM with fewer packges runs fine. In previous times, i rebooted and the compilation suceeded. Today still not tried.

Switch of smart linking for the IDE.
You can keep the units smartlink-able (for your projects). -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160912/a0f4561a/attachment-0001.html>

Reply by email

Luiz Americo Pereira Camara
to Martin Frb

2016-09-11 22:34 GMT-03:00 Martin Frb :

Show quoted text 9 lines
On 12/09/2016 02:14, Luiz Americo Pereira Camara wrote: Running windows 10, fpc trunk 32bit, lazarus trunk. In the task manager, i get 42% of memory usage (3,3 GB of 7,9GB) having more then 4GB free 32 bit doesnt use more than 4GB, and some goes to the system.

The system (Windows 10) is 64bit so it can handle all the memory.

According to task manager FPC uses about 800MB of memory of the theoretical 3GB of a 32 bit process.

See this screen shot. The spike in task manager is due to the compilation: https://imagebin.ca/v/2unwBT2xsQYH

Show quoted text 7 lines
The problems seems related to number of packages installed (i have 78). Trying to compile in a linux VM with fewer packges runs fine. In previous times, i rebooted and the compilation suceeded. Today still not tried. Tried to compile after reboot without success
Switch of smart linking for the IDE. You can keep the units smartlink-able (for your projects).

AFAICS the IDE does not uses SmartLink. Here is the command line compiler:

C:/bin/code/fpcdev/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:\Users\luiz\AppData\Local\lazarus\idemake.cfg -di386 lazarus.pp

There's no -CX option. Also no {$SMARTLINK ON} directive in sources

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

Reply by email

Luiz Americo Pereira Camara
to Luiz Americo Pereira Camara: When i try to recompile the IDE i'm getting the error below: Error: (1026) Compilation…

2016-09-11 22:14 GMT-03:00 Luiz Americo Pereira Camara <

Show quoted text 13 lines
: When i try to recompile the IDE i'm getting the error below: Error: (1026) Compilation raised exception internally Fatal: (1009) No memory left Error: C:\bin\code\fpcdev\bin\i386-win32\ppc386.exe returned an error exitcode I have a decent computer 8 GB ram, core i5 third generation. Running windows 10, fpc trunk 32bit, lazarus trunk.

For the record. I switched to fpc 3.0 and compilation succeeded. Next time i update my Lazarus IDE will try again with fpc trunk

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

Reply by email