Recent

Author Topic: BUG: Panic: internal error: missing executable  (Read 2941 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
BUG: Panic: internal error: missing executable
« on: September 25, 2018, 06:34:52 am »
Due to Bugtracker not available i post it here:

I have an "Execute before command" in a package:
Code: Pascal  [Select][+][-]
  1. $(LazarusDir)/tools/lazres runtime.lrs "LazProfilerRunTime.pas"=rt "LazProfilerCore.pas"=core "$PkgDir(etpackage)epiktimer.pas"=timer

I often get the following error when compiling:
Code: Text  [Select][+][-]
  1. Package LazProfiler 0.1.3: Executing command before: missing executable "C:\freepascal\laz\tools\lazres", Errors: 1
  2. Panic: internal error: missing executable "C:\freepascal\laz\tools\lazres"

Debugoutput is the following:
Code: Text  [Select][+][-]
  1. Hint: (lazarus) compile package LazProfiler 0.1.3 Flags=[]
  2. Hint: (lazarus) Missing state file of LazProfiler 0.1.3: C:\freepascal\laz\components\lazprofiler\lib\i386-win32\LazProfiler.compiled
  3. Error: (lazarus) [TExternalTool.DoExecute.CheckError] Error=missing executable "C:\freepascal\laz\tools\lazres"
  4. Error: (lazarus) [TLazPackageGraph.CompilePackage] ExecuteBefore failed: LazProfiler 0.1.3

If i now change the the name of the executable from
$(LazarusDir)/tools/lazres to $(LazarusDir)/tools/lazres.exe
i can compile the package.

Ifi now remove the extension of the executable again i can also compile the package which failed before.
Here is the debug output:
Code: Text  [Select][+][-]
  1. Hint: (lazarus) compile package LazProfiler 0.1.3 Flags=[]
  2. Info: (lazarus) Execute Title="Package LazProfiler 0.1.3: Executing command before"
  3. Info: (lazarus) Working Directory="C:\freepascal\laz\components\lazprofiler\"
  4. Info: (lazarus) Executable="C:\freepascal\laz\tools\lazres.exe"
  5. Info: (lazarus) Param[0]="runtime.lrs"
  6. Info: (lazarus) Param[1]="LazProfilerRunTime.pas=rt"
  7. Info: (lazarus) Param[2]="LazProfilerCore.pas=core"
  8. Info: (lazarus) Param[3]="C:\freepascal\Config\i386\onlinepackagemanager\packages\epiktimer\epiktimer.pas=timer"

The clue to this situation seems to be the following debug message:
Code: Text  [Select][+][-]
  1. Hint: (lazarus) Missing state file of LazProfiler 0.1.3: C:\freepascal\laz\components\lazprofiler\lib\i386-win32\LazProfiler.compiled

If the state file is missing the resolving of the executable is not working as expected.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: BUG: Panic: internal error: missing executable
« Reply #1 on: September 25, 2018, 08:23:03 am »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

 

TinyPortal © 2005-2018