Build IDE : Exit code 2, Errors :1 lazarus / 31-LCL ---------------------------------------------------------------------- kangkoding · 2020-07-16 05:59 hi everyone got error when installing package. Lazarus 2.0.0+dfsg-2 aarch64-linux-gtk2 error code: pkgmanager.pas(6591,0) Error, Can't call the assembler, error -1 switching to external assembling please somebody help me ---------------------------------------------------------------------- DonAlfredo · 2020-07-16 07:07 Increase your RAM memory by adding swap space might help. ---------------------------------------------------------------------- marcov · 2020-07-16 08:03 Install binutils? ---------------------------------------------------------------------- Thaddy · 2020-07-16 08:14 Can be either, but I suspect that the swapspace needs to be increased too. E.g. on a Raspberry Pi 3 or 4 set the swap space to the same amount as the internal memory. This should not be necessary if you have either 2, 4 or 8 GB internal memory. https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile- size-on-rasbian/ which is also valid for other debian derivatives like Ubuntu. Also note that AARCH64 compilation takes a lot more memory because of the 64 bit platform. ( I am waiting for a couple of RPi4/8, but I tested AARCH64 compilation on RPI3/1 and RPi4/2) ---------------------------------------------------------------------- kangkoding · 2020-07-16 08:57 Quote from: marcov on July 16, 2020, 10:03:59 amInstall binutils? yes installed ---------------------------------------------------------------------- Thaddy · 2020-07-16 09:05 Does it work now? Otherwise increase the swap space... (that works for me and I have a lot of Pies ) ---------------------------------------------------------------------- kangkoding · 2020-07-16 09:18 hi all.. after inscreasing swap, there's new message error "lazarus.pp(1 1) fatal cannot find fpdebug used by lazarus" following https://forum.lazarus.freepascal.org/index.php?topic=46612.0 but still not solve ---------------------------------------------------------------------- Martin_fr · 2020-07-16 14:13 1) Is there a folder components/fpdepug in your Lazarus install dir? 2) Have you opened the FpDebug package from inside the IDE (package menu) ? 3) Try to install the FpDebug package. (package menu > Install package) You may then get the same error for LazDebuggerFp. ------- Note, that since you are not on Intel FpDebug will not help you much. If you get compilation errors in FpDebug (please report them), you can try to uninstall all of the following packages: FpDebug LazDebuggerFp LazDebuggerFpLLDB (might not be installed) LazDebuggerFpGdbmi (might not be installed) LeakView maybe others.... Uninstalling LeakView means you loose some functionality, if you want to work with the traces printed by heaptrc (mem leak finder). ---------------------------------------------------------------------- kangkoding · 2020-07-16 23:34 Quote1) Is there a folder components/fpdepug in your Lazarus install dir?    Yes, there is Quote2) Have you opened the FpDebug package from inside the IDE (package menu) ?    Yes, i have opened Quote3) Try to install the FpDebug package. (package menu > Install package)    When uninstalling FpDebug package, there's same error, so uninstalling fail QuoteNote, that since you are not on Intel FpDebug will not help you much. If you get compilation errors in FpDebug (please report them), you can try to uninstall all of the following packages: FpDebug LazDebuggerFp LazDebuggerFpLLDB (might not be installed) LazDebuggerFpGdbmi (might not be installed) LeakView maybe others.... Uninstalling LeakView means you loose some functionality, if you want to work with the traces printed by heaptrc (mem leak finder). can't install or uninstall any package, there's error when rebuild ide in normal mode ---------------------------------------------------------------------- Martin_fr · 2020-07-17 01:36 In components/fpdebug/lib//  should be a file fpdebug.ppu There also should be components/fpdebug/fpdebug.pas If that is missing, then that is the problem. Try building the IDE (Tools > Configure Build Lazarus) with the option -va You will get the error again. Right click messages window, find the "copy" submenu, and "copy all and original messages" There will be a warning, it will be massive. Paste it in an editor. Within the last 100 lines there should be references to fpdebug. Where the compiler was looking, where it may have found something, and what it may have rejected. As a last resort.... Not tested... About uninstalling: Just seen some packages are part of BigIDE. I am not sure what exactly needed to be done to get rid of them. You might try to edit:  ide/lazarus.pp and remove from the uses: LeakView, LazDebuggerFpLldb, LazDebuggerFp, ---------------------------------------------------------------------- kangkoding · 2020-07-17 07:55 Quote from: Martin_fr on July 17, 2020, 03:36:00 amIn components/fpdebug/lib//  should be a file fpdebug.ppu There also should be components/fpdebug/fpdebug.pas If that is missing, then that is the problem. only fpdebug.lpk and fpdebug.pas, there's no fpdebug.ppu, show at picture below Quote from: Martin_fr on July 17, 2020, 03:36:00 amTry building the IDE (Tools > Configure Build Lazarus) with the option -va You will get the error again. Right click messages window, find the "copy" submenu, and "copy all and original messages" There will be a warning, it will be massive. Paste it in an editor. Within the last 100 lines there should be references to fpdebug. Where the compiler was looking, where it may have found something, and what it may have rejected. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i TLazarusManager.Run starting /usr/lib/lazarus/2.0.0/lazarus ...Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/root/.lazarus"Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"Looking for code tools config file:  "/root/.lazarus/codetoolsoptions.xml"NOTE: codetools config file not found - using defaultsHint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-linux-gtk2 New=aarch64-linux-gtk2 FPC=True LCL=FalseTComponentTreeView.SetSelection: Updating component node values.Hint: (lazarus) compile package LazControlDsgn 0.0 Flags=[]Info: (lazarus) Execute Title="Compile package LazControlDsgn 0.0"Info: (lazarus) Working Directory="/usr/lib/lazarus/2.0.0/components/lazcontrols/design/"Info: (lazarus) Executable="/usr/bin/fpc"Info: (lazarus) Param[0]="-MObjFPC"Info: (lazarus) Param[1]="-Scghi"Info: (lazarus) Param[2]="-O1"Info: (lazarus) Param[3]="-g"Info: (lazarus) Param[4]="-gl"Info: (lazarus) Param[5]="-l"Info: (lazarus) Param[6]="-vewnhibq"Info: (lazarus) Param[7]="-Fu/usr/lib/lazarus/2.0.0/packager/units/aarch64-linux"Info: (lazarus) Param[8]="- Fu/usr/lib/lazarus/2.0.0/components/lazutils/lib/aarch64-linux"Info: (lazarus) Param[9]="-Fu/usr/lib/lazarus/2.0.0/lcl/units/aarch64-linux"Info: (lazarus) Param[10]="-Fu/usr/lib/lazarus/2.0.0/lcl/units/aarch64- linux/gtk2"Info: (lazarus) Param[11]="- Fu/usr/lib/lazarus/2.0.0/components/lazcontrols/lib/aarch64- linux/gtk2"Info: (lazarus) Param[12]="- Fu/usr/lib/lazarus/2.0.0/components/ideintf/units/aarch64- linux/gtk2"Info: (lazarus) Param[13]="- Fu/usr/lib/lazarus/2.0.0/components/lazcontrols/design/"Info: (lazarus) Param[14]="- FU/usr/lib/lazarus/2.0.0/components/lazcontrols/design/lib/aarch64- linux/gtk2/"Info: (lazarus) Param[15]="-dLCL"Info: (lazarus) Param[16]="-dLCLgtk2"Info: (lazarus) Param[17]="lazcontroldsgn.pas"Note: (lazarus) renamed file "/usr/lib/lazarus/2.0.0/lazarus" to "/usr/lib/lazarus/2.0.0/lazarus.old"Info: (lazarus) Execute Title="Build IDE"Info: (lazarus) Working Directory="/usr/lib/lazarus/2.0.0/"Info: (lazarus) Executable="/usr/bin/make"Info: (lazarus) Param[0]="idepkg"Info: (lazarus) Param[1]="-w"TIDEFPCParser.ImproveMsgUnitNotFound FindUnitInAllUsesSections failed due to syntax errors or fpdebug is not used in /usr/lib/lazarus/2.0.0/ide/lazarus.pp   Quote from: Martin_fr on July 17, 2020, 03:36:00 amAs a last resort.... Not tested... About uninstalling: Just seen some packages are part of BigIDE. I am not sure what exactly needed to be done to get rid of them. You might try to edit:  ide/lazarus.pp and remove from the uses: LeakView, LazDebuggerFpLldb, LazDebuggerFp, show at picture below Still got error after remove from the uses: LeakView, LazDebuggerFpLldb, LazDebuggerFp ---------------------------------------------------------------------- Martin_fr · 2020-07-17 14:37 Really strange....  Few more things. Sorry, for this is just trial and error, but I am out of ideas why this error happens in first. (And Lazarus 2.0.0+dfsg-2 aarch64-linux-gtk2 is made by the maintainers of the linux repro, not by anyone from the Lazarus team. So no idea if they did any changes....) I am assuming you use "Tools > Build ..."? If you use "make" from the commandline, I do not know if or which of the below steps will work.... 1) Since it is Linux, some files are actually in your home folder ~/.lazarus  instead of the install dir. Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i find ~/.lazarus -name fpdebug.ppufind ~/.lazarus -name fpdbgclasses.ppugrep fpdebug ~/.lazarus/staticpackages.inc "fpdbgclasses" is to check for other units from the package. You can remove it from staticpackages, but as long as it is in the installed list, the IDE will put it back. If they are in staticpackages.inc, they should go if you uninstall those packages. Try uninstalling them, and "save config", instead of immediate rebuild. See if that remove the packages from staticpackages. In menu Packages > Package graph, you can see what all requires FpDebug. Any package needing it, must also be removed from the IDE.... (that should be "leakview", and any "LazDebugger*FP*" (with FP in the name). 2) In the other thread, there was a statement to run as root, open the package fpdebug, and compile it. 3) To get a clean (re)start: Delete the entire ~/.lazarus/ folder. But if you have settings of your own, backup ~/.lazarus/projectsessions , ~/.lazarus/onlinepackagemanager , ~/.lazarus/lazarus.dci and ~/.lazarus/*.xml 4) If you do find or manage to produce an fpdebug.ppu and still get the error, then in "Configure build Lazarus" forcefully add the path to it. -Fu/path_in_which_the_ppu_is e.g. -Fu/home/you/.lazarus/foo/lib/arch64-gtk/ ONLY use that, if there is no other fpdebug.ppu, but the one to which you point. Also, if the rebuild succeeds, test if it is needed for further rebuilds, or if the one rebuild fixed the issue and its no longer needed. Having such path options in your config, can lead to all sorts of issues, as the IDE does not expect them. So only keep, if needed. According to your picture, there is no "lib" folder in fpdebug. But it may be under ~/.lazarus/ The above step 1 will show. The compiler output is not what I expected.... In the dialog opened by menu "Tools" > "Configure Build Lazarus" is an input field (memo) "Options". In that field enter: -va After compile, the pop up menu of the "Messages" window has a sub menu "Copy", the bottom most entry is "Copy All/Original messages to clipboard" The text should contain thousands of lines like: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [1.172] (10000) Unitsearch: messages.pas[1.172] (10000) Unitsearch: C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\httpd22\messages.ppu[1.172] (10000) Unitsearch: C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\httpd22\messages.pp[1.172] (10000) Unitsearch: C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\httpd22\messages.pas[1.172] (10000) Unitsearch: C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\rtl\messages.ppu[1.172] (10001) PPU Loading C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\rtl\messages.ppu[1.172] (MESSAGES) (10002) PPU Name: C:\FPC\fpc_3.0.4\64\def\units\x86_64-win64\rtl\messages.ppu[1.172] (MESSAGES) (10005) PPU Time: 2019/01/27 00:46:52[1.172] (MESSAGES) (10003) PPU Flags: 143488[1.172] (MESSAGES) (10004) PPU Crc: 5AAEE313[1.172] (MESSAGES) (10004) PPU Crc: C0E0D75A (intfc)[1.172] (MESSAGES) (10004) PPU Crc: EEFDAD71 (indc) But actually this may not be needed. It depends, if the "find" from point 1 above, shows a fpdebug.ppu, then -va is needed, because it will tell why the compiler does not use it. If there is no fpdebug.ppu on your disk, then we do not need -va. Other possibility. - Keep the executable "lazarus" file (and maybe "lazbuild") - Keep the installed fpc - Download the sources for 2.0.10 from our site   Install the sources in your home folder (E.g. ~/lazarus  / But NOT inside the ~/.lazarus folder )   Copy the "lazarus" executable into the sources folder - delete ~/.lazarus - make the old Lazarus install folder inaccessible (rename it / later delete it, if the sources should work) Start lazarus, and rebuild. Or instead, run "make BIGIDE"from the command line (you may need to google, how to specify your architecture, if it gets it wrong) I would not expect it to be needed, but:    -You may again have to go and install/uninstall fpdebug related packages via packages > install packages. Try installing them first.    -Potentially also use "open package"  again.