Il 13/07/2016 14:06, Mattias Gaertner ha scritto:
What compiler is now called?

fpc->ppcarm 2.6.4

Why does FPC say 
Assembler /home/colla/Applicazioni/lazarus/fpc/binutils/as not found?

That's the big question I'm unable to understand. The full picture is:

  1. /home/colla/Applicazioni/lazarus/fpc/binutils/as is there (it's actually a symlink to /usr/local/bin/arm-linux-as). If I invoke it manually it assembles properly
  2. Manually compiling fcllaz.pas with minimal parameters: fpc -Tlinux -Parm -XParm-linux- -B -a -va fcllaz.pas >out.txt works just fine.
  3. Specifying the proper CPU type works just fine: fpc -Tlinux -Parm -CpARMV7 -XParm-linux- -B -va fcllaz.pas >out1.txt
  4. Copying and pasting all the compiler options from Lazarus "View options" again works just fine: fpc  -Tlinux -Parm -CpARMV7 -MObjFPC -Scghi -O1 -g -gl -Xg  -k-L/home/colla/Applicazioni/lazarus/fpc/libcross -l -vabq -Fi/home/colla/Applicazioni/Raspberry/Cross/lib/arm-linux -Fu/home/colla/Applicazioni/lazarus/lcl/units/arm-linux/gtk2 -Fu/home/colla/Applicazioni/lazarus/lcl/units/arm-linux -Fu/home/colla/Applicazioni/lazarus/components/lazutils/lib/arm-linux -Fu/home/colla/Applicazioni/lazarus/packager/units/arm-linux -Fu/home/colla/Applicazioni/Raspberry/Cross/ -FU/home/colla/Applicazioni/Raspberry/Cross/lib/arm-linux/ -dLCL -dLCLgtk2 -XParm-linux- fcllaz.pas >out3.txt
  5. When the compile or build is launched from within Lazarus (1.4.4 and 1.7 behave the same), it fails with "Assembler not found".
  6. If I move in the proper place .o's and .ppu's obtained with manual compilation I can proceed one step further, but next compilation fails for the same reason.
My wild guess has been that Lazarus doesn't pass all the required options to the compiler, or maybe not in the proper order.
Unfortunately, even setting -va, when compiling from lazarus the resulting messages (even Save All) are much more concise than the raw compiler output, and it's rather hard to understand what goes wrong.
I resorted to launching lazarus from command line and redirecting the output to a file.
One can see something but is it the full story? I enclose the lazout.txt file where it would appear that the options passed to FPC aren't as complete as desirable (-CpARMV7 has disappeared, and so -XParm-linux- which are both required by FPC). Is that the reason?

Giuliano


SetPrimaryConfigPath NewValue="~/.lazarus_svn/" -> "/home/colla/.lazarus_svn/"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] 
PrimaryConfigPath="/home/colla/.lazarus_svn"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] 
SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt 
New=x86_64-linux-qt FPC=True LCL=False
Warning: (lazarus) Macro not defined: "Target_OS".
TComponentTreeView.RebuildComponentNodes: Updating TreeView with components
TComponentTreeView.SetSelection: Updating component node values.
Warning: (lazarus) Macro not defined: "Target_OS".
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt 
New=arm-linux-gtk2 FPC=True LCL=True
Warning: (lazarus) Macro not defined: "Target_OS".
TLazSourceFileManager.InitOpenedProjectFile select form in designer: 
Form1:TForm1 TDesigner
TComponentTreeView.RebuildComponentNodes: Updating TreeView with components
Warning: (lazarus) Macro not defined: "Target_OS".
Hint: (lazarus) Last compile was incomplete for FCL 1.0.1
  State 
file="/home/colla/Applicazioni/lazarus/packager/units/arm-linux/FCL.compiled"
Hint: (lazarus) Missing state file of LazUtils 1.0: 
/home/colla/Applicazioni/lazarus/components/lazutils/lib/arm-linux/LazUtils.compiled
Hint: (lazarus) Missing state file of LCLBase 1.7: 
/home/colla/Applicazioni/lazarus/lcl/units/arm-linux/LCLBase.compiled
Hint: (lazarus) Missing state file of LCL 1.7: 
/home/colla/Applicazioni/lazarus/lcl/units/arm-linux/gtk2/LCL.compiled
Info: (lazarus) Execute Title="Compile package FCL 1.0.1"
Info: (lazarus) Working 
Directory="/home/colla/Applicazioni/lazarus/packager/registration/"
Info: (lazarus) Executable="/usr/bin/fpc"
Info: (lazarus) Param[0]="-Parm"
Info: (lazarus) Param[1]="-MObjFPC"
Info: (lazarus) Param[2]="-Scghi"
Info: (lazarus) Param[3]="-O1"
Info: (lazarus) Param[4]="-g"
Info: (lazarus) Param[5]="-gl"
Info: (lazarus) Param[6]="-l"
Info: (lazarus) Param[7]="-vewnhibq"
Info: (lazarus) 
Param[8]="-Fu/home/colla/Applicazioni/lazarus/packager/registration/"
Info: (lazarus) 
Param[9]="-FU/home/colla/Applicazioni/lazarus/packager/units/arm-linux/"
Info: (lazarus) Param[10]="fcllaz.pas"
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Codice di uscita 1"
Error: (lazarus) [TMainIDE.DoBuildProject] PkgBoss.DoCompileProjectDependencies 
failed
TComponentTreeView.RebuildComponentNodes: Updating TreeView with components
LAZARUS END - cleaning up ...
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
Hint: (lazaAdding "--pcp=~/.lazarus_svn/" as a parameter
project1.lpi is a file
 is a file
SetPrimaryConfigPath NewValue="~/.lazarus_svn/" -> "/home/colla/.lazarus_svn/"
TLazarusManager.Run starting /home/colla/Applicazioni/lazarus/lazarus ...
-- 
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to