On 21/09/2020 13.33, Carlos E. R. wrote:
On 21/09/2020 12.12, Jan Engelhardt wrote:
On Monday 2020-09-21 11:58, Carlos E. R. wrote:
On 21/09/2020 11.39, Jan Engelhardt wrote:
ppcx64 -B -MObjFPC -Scgi -Cg -O3 -g -gl -k-pie -Fu/usr/lib64/lazarus/lcl/units/x86_64-linux -Fu/usr/lib64/lazarus/components/lazutils/lib/x86_64-linux t.pas
cat >bad.pas <<-EOF program t; uses graphics; begin end. EOF
So the problem is not so much in peazip (uses "graphics"), but in lazarus.
cer@Telcontar:~/bin/lazarus/test> fpc bad.pas Free Pascal Compiler version 3.2.0 [2020/08/18] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling bad.pas bad.pas(2,10) Fatal: Can't find unit graphics used by t
Without a project file, I can not try to build it with Lazarus itself. My own programs build fine with "Graphics".
See above. Why do you think I posted the commandline?
Which is obviously incorrect, or it would build. Don't ask me what is the error, I use "Build" from inside Lazarus, or:
lazbuild myproject.lpi
on the command line.
As an example, a program of mine that "uses Graphics" produces this build log (excerpt), which is a rather more complex command line: Info: (lazarus) Execute Title="Compile Project, Target: contarcorreo" Info: (lazarus) Working Directory="/home_aux/cer/bin/lazarus/mios/contarcorreo/" Info: (lazarus) Executable="/usr/bin/fpc" Info: (lazarus) Param[0]="-B" Info: (lazarus) Param[1]="-Tlinux" Info: (lazarus) Param[2]="-Px86_64" Info: (lazarus) Param[3]="-MObjFPC" Info: (lazarus) Param[4]="-Sgi" Info: (lazarus) Param[5]="-Cg" Info: (lazarus) Param[6]="-Cirot" Info: (lazarus) Param[7]="-Os1" Info: (lazarus) Param[8]="-g" Info: (lazarus) Param[9]="-gl" Info: (lazarus) Param[10]="-XX" Info: (lazarus) Param[11]="-l" Info: (lazarus) Param[12]="-vewnhibq" Info: (lazarus) Param[13]="-Fu/home/cer/.lazarus/lib/RunTimeTypeInfoControls/lib/x86_64-linux/gtk2" Info: (lazarus) Param[14]="-Fu/home/cer/.lazarus/lib/IDEIntf/units/x86_64-linux/gtk2" Info: (lazarus) Param[15]="-Fu/home/cer/.lazarus/lib/LazControls/lib/x86_64-linux/gtk2" Info: (lazarus) Param[16]="-Fu/home/cer/.lazarus/lib/units/x86_64-linux/gtk2" Info: (lazarus) Param[17]="-Fu/home/cer/.lazarus/lib/LCLBase/units/x86_64-linux" Info: (lazarus) Param[18]="-Fu/home/cer/.lazarus/lib/LazUtils/lib/x86_64-linux" Info: (lazarus) Param[19]="-Fu/usr/lib64/lazarus/packager/units/x86_64-linux" Info: (lazarus) Param[20]="-Fu/home_aux/cer/bin/lazarus/mios/contarcorreo/" Info: (lazarus) Param[21]="-o/home_aux/cer/bin/lazarus/mios/contarcorreo/contarcorreo" Info: (lazarus) Param[22]="-dLCL" Info: (lazarus) Param[23]="-dLCLgtk2" Info: (lazarus) Param[24]="contarcorreo.lpr" -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)