Sign in Join

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

Mailing lists / fpc-devel / 2024-08

fpc 3.2.3 freezing entire OS / Linux

3 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Martin Frb

Ok, right now, not sure where to start.

I have a modified Lazarus source, that I am trying to build.

Only, when FPC tries to compile it, it never returns. And freezes my Fedora (in a Virtualbox).
It will eventually (after an hour or longer) be killed by the OS. Which at least at one time reported that the compiler used up almost all memory. (there was no report of a stack overflow, and that wouldn't take that long. Given the time it takes, I thing it fragments memory while being in an endless loop)

Since it freezes the OS too, I have hardly anyway of debugging it. (maybe if I can see where it gets mem from the OS / but I haven't currently gotten fpc set up for being debugged...)

If I observed it correctly, one of the following options has an impact (because I think - but need to doublecheck later) that without them, the build worked)
   -gv -gw3      -CR-r-i-o-t-        -Sa- -Si-   -Se15  -ve -vw -vn -vi        -O-1  -CX

And unfortunately that is all I have so far.

It seems that all files get compiled, so it might be something at the end... Which may also mean, it could be some other app called by fpc (my fpcres may be outdated / since I at some point copied it into /usr/local/bin)

Also, I have previously compiled with the exact same settings. SO all that changed are a few Lazarus sources, and one res file.

I did change a resource. The res file was rebuild on Windows, and on Linux only the res file is used (all png images).
But a standalone project can use the new res file (at least just the one, not tried combining it with others that the IDE may have).

Reply by email

Martin Frb
to Martin Frb
Martin Frb wrote
Ok, right now, not sure where to start. I have a modified Lazarus source, that I am trying to build.

I tried with -va

it stopped a lot faster

90.461] (10000) Unitsearch:
/home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LazProjectGroups.pas [90.461] Searching file
/home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LazProjectGroups.pas... not found
[90.461] Searching file
/home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/lazprojectgroups.pas... not found
[90.461] Searching file
/home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LAZPROJECTGROUPS.PAS... not found
[90.461] (10000) Unitsearch:
/home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LazProjectGroups.ppu [90.461] Searching file
/home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LazProjectGroups.ppu... not found
[90.469] Searching file
/home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/lazprojectgroups.ppu... not found
[90.469] Searching file
/home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LAZPROJECTGROUPS.PPU... not found
Error: /home/m/fpc/rel_3.2.3/64/def/bin/ppcx64 can't be executed, error message: Failed to execute "/home/m/fpc/rel_3.2.3/64/def/bin/ppcx64", error code: -9

Reply by email

Martin Frb
to Martin Frb

Sorry, seems the VM itself went bonkers. All fine after a reboot of the guest system.

Martin Frb wrote 38 lines
On 17/08/2024 17:25, Martin Frb via fpc-devel wrote: > Ok, right now, not sure where to start. > > I have a modified Lazarus source, that I am trying to build. I tried with -va it stopped a lot faster 90.461] (10000) Unitsearch: /home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LazProjectGroups.pas [90.461] Searching file /home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LazProjectGroups.pas... not found [90.461] Searching file /home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/lazprojectgroups.pas... not found [90.461] Searching file /home/m/laz/lazgit/components/datetimectrls/design/lib/x86_64-linux/gtk2/LAZPROJECTGROUPS.PAS... not found [90.461] (10000) Unitsearch: /home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LazProjectGroups.ppu [90.461] Searching file /home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LazProjectGroups.ppu... not found [90.469] Searching file /home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/lazprojectgroups.ppu... not found [90.469] Searching file /home/m/laz/lazgit/components/jcf2/lib/x86_64-linux/LAZPROJECTGROUPS.PPU... not found Error: /home/m/fpc/rel_3.2.3/64/def/bin/ppcx64 can't be executed, error message: Failed to execute "/home/m/fpc/rel_3.2.3/64/def/bin/ppcx64", error code: -9 _______________________________________________ fpc-devel maillist  -  https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email