[Lazarus] Can't start lazarus trunk
C Western
l at c-m-w.me.uk
Thu Jan 3 11:01:13 CET 2019
On 02/01/2019 23:31, Joost van der Sluis via lazarus wrote:
> Op 02-01-19 om 16:46 schreef C Western via lazarus:
>> To start the current lazarus trunk, I had to delete ~/.fppkg, as
>> otherwise lazarus crashed after trying to execute a compiler that
>> didn't exist. Traceback is:
>>
>> [FORMS.PP] ExceptionOccurred
>> Sender=EProcess
>> Exception=Executable not found:
>> "/home/me/fpc-3.0.2-64/lib/fpc/../../bin/fpc"
>> Stack trace:
>> $0000000000754320 EXECUTE, line 345 of
>> fcl-process/src/unix/process.inc
>> $0000000000FB39B8 GETCOMPILERINFO, line 370 of
>> fppkg/src/pkgglobals.pp
>> $0000000000FB863B CHECKCOMPILERVALUES, line 1084 of
>> fppkg/src/pkgoptions.pp
>> $0000000000FABECF INSTANCE, line 90 of ../packager/fppkghelper.pas
>> $0000000000AAA134 OPENDEPENDENCY, line 5840 of
>> ../packager/packagesystem.pas
>> $0000000000A965C7 ADDPACKAGE, line 2122 of
>> ../packager/packagesystem.pas
>> $0000000000A91C0E OPENDEPENDENCYWITHPACKAGELINK, line 998 of
>> ../packager/packagesystem.pas
>> $0000000000AA9C30 OPENDEPENDENCY, line 5787 of
>> ../packager/packagesystem.pas
>> $0000000000AAAEBB OPENINSTALLEDDEPENDENCY, line 5997 of
>> ../packager/packagesystem.pas
>> $0000000000A96D4E LOADLAZARUSBASEPACKAGE, line 2213 of
>> ../packager/packagesystem.pas
>> $0000000000A96BBF LOADSTATICBASEPACKAGES, line 2217 of
>> ../packager/packagesystem.pas
>> $0000000000AB6A56 LOADINSTALLEDPACKAGES, line 3086 of
>> ../packager/pkgmanager.pas
>> $00000000004A9203 CREATE, line 1590 of main.pp
>> $000000000041F256 main, line 140 of lazarus.pp
>>
>> I am not aware of using .fppkg specifically, and the file
>> ~/.fppkg/config/default did indeed reference a invalid compiler (a
>> test version I had installed at some point). I suspect a test for the
>> compiler file existing needs adding somewhere.
>
> Thanks for the stacktrace, even with debug-info for fppkg! These tests
> 'in the wild' help me a lot.
>
> Should be fixed. In FPC (added the check if the compiler exists) and
> in Lazarus (do not choke on it when an exception occurs)
>
> Can you re-test?
>
> Regards,
>
> Joost.
That seems to have fixed the issue - restoring the config file with the
invalid compiler present no longer causes an issue. (This is updating to
both trunk fpc and lazarus).
Colin
More information about the lazarus
mailing list