[SOLVED] Incompatible editbtn.ppu lazarus / 31-LCL ---------------------------------------------------------------------- stephanie · 2017-08-07 14:32 Hello, I've upgrated Lazarus from 1.2.4 32-bit to 1.6.4 64-bit on Linux Debian Buster. The installation is ok, but if I open a big project (more 100 forms and 500.000 rows of code) and compile I get the error editbtn.ppu not compatible. I've tried to rebuild Lazarus, to clean and build, but the problem remains. The compiler stops in the uses of a module on Editbtn and show that it is not compatible the ppu. But if I make a new project with TDateEdit (thas uses EditBtn) all works. What can I do? Thanks for your help and sorry for my bad english. Stephanie ---------------------------------------------------------------------- Handoko · 2017-08-07 14:49 Maybe that was a memory issue. Try to do the same but on different hardware and/or OS. ---------------------------------------------------------------------- lainz · 2017-08-07 14:59 Try to rebuild Lazarus with Clean + Build All. ---------------------------------------------------------------------- stephanie · 2017-08-07 15:15 Thanks, I've already tried to clean up and rebuild Lazarus, but the problem still remains. I've also uninstalled and reinstalled Lazarus. I've seen this topic: http://forum.lazarus.freepascal.org/index.php?topic=34947.0 but I cannot understand what to do to solve. Thanks for any help. Best regards, Stephanie ---------------------------------------------------------------------- JuhaManninen · 2017-08-07 15:45 Search the whole system for editbtn.ppu. Do you have symlinks for any relevant directories? Did you add project search paths for library code? You shouldn't. Also, with such problems you should probably use Lazarus 1.8 which is still a release candidate but is very close to the final. ---------------------------------------------------------------------- stephanie · 2017-08-07 17:18 Thanks for yor reply, I had an editbtn.ppu also in /tmp (same Kb), I've deleted it, but the problem remains. I have no links to path for library code. Before I've tried with version 1.6.2 (in Debian Repositories), and I've found the problem, so I've downloaded the 1.6.4 from Lazarus site, but the problem remains and I don't understand why if I put a TDateEdit in a new project I can compile. Have I to wait the version 1.8 or is there something else to try before? Thank you very much and best regards, Stephanie ---------------------------------------------------------------------- howardpc · 2017-08-07 17:46 Perhaps somewhere in your 500,000 lines of code you have defined a slightly different TEditButton, but reused the same name as the LCL version? ---------------------------------------------------------------------- JuhaManninen · 2017-08-07 18:45 Quote from: stephanie on August 07, 2017, 07:18:56 pmHave I to wait the version 1.8 or is there something else to try before?   http://forum.lazarus.freepascal.org/index.php/topic,37392.0.html In case you have problems installing it, see also the recent post by Fred vS at the same thread:   http://forum.lazarus.freepascal.org/index.php/topic,37392.msg255515. html ---------------------------------------------------------------------- stephanie · 2017-08-07 19:28 Thanks, I've uninstalled fpc and Lazarus and installed the versione 1.8.0RC3, but unfortunately the problem remains as before. I've rebuild the lazarus IDE (clean up und rebuild) und tried to compile with clean all and compile, I got the same problem. EditBtn is used because I use TDateEdit, there are no other packages with the same name. Besides, I got an error when installing the 1.8.0.RC3 version, but also with the 1.6.4: in both cases at the end of the installation of the deb of fpc, the package fpc shows conflict with fpc, but there are no domaged packeges in Synaptic. Lazarus works correctly, I can create a new project with TDateEdit that become no errors. What colud I do? Thank you again for your help. Best regards, Stephanie ---------------------------------------------------------------------- Thaddy · 2017-08-07 19:50 What is your environment path? Does it contain an old Lazarus version? Edit the path and make sure the NEW Lazarus path is *before* the OLD Lazarus path. Open command prompt.... type path... check... A Lazarus uninstall doesn't clean up the path.... Silly, but true. This can only be caused if and when an OLD ppu is found before the NEW ppu .... You also need to clean out all the temp and tmp dirs, because Lazarus compiles to C:\users\currentuser\tmp etc. ---------------------------------------------------------------------- balazsszekely · 2017-08-07 20:08 @Stephanie Most likely you have an old 32 bit ppu somewhere. Remove everything again(FPC + Lazarus), then run the following "uninstall.sh" script. Hopefully you get rid of the "leftover". I would install Lazarus 1.8/FPC 3.0.4 instead of you, but it depends on your old project specifics. 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 bin=/usr/local/binshare=/usr/local/sharelib=/usr/local/lib rm -fv $bin/ppcppcrm -fv $bin/ppc386rm -fv $bin/bin2objrm -fv $bin/data2incrm -fv $bin/delprm -fv $bin/fd2pascalrm -fv $bin/fpcrm -fv $bin/fpcmakerm -fv $bin/fpcmkcfgrm -fv $bin/fpcsubstrm -fv $bin/fpdocrm -fv $bin/fprcprm -fv $bin/h2pasrm -fv $bin/h2paspprm -fv $bin/makeskelrm -fv $bin/mkxmlrpcrm -fv $bin/plexrm -fv $bin/postw32rm -fv $bin/ppdeprm -fv $bin/ppudumprm -fv $bin/ppufilesrm -fv $bin/ppumoverm -fv $bin/ptoprm -fv $bin/pyaccrm -fv $bin/rstconvrm -fv $bin/unitdiffrm -r $private/lazarusrm -r $bin/lazarusrm -r $share/lazarusrm -r $share/fpcsrcrm -r $share/doc/fpc-2.6.4rm -r $share/examples/fpc-2.6.4 rm -r $lib/fpc rm -fv /etc/fpc.cfgrm -fv ~/.lazarus ---------------------------------------------------------------------- stephanie · 2017-08-07 20:18 Thanks, I've checked with find of Mate environnement of Debian, and the only editbtn.ppu is in /usr/share/lazarus/1.8.0RC3/lcl/units/x86_64-linux. If I check in terminal with find / -name editbtn.ppu I can find: home/stephanie/.lazarus/lib/LCLBase/units/x86_64-linux/editbtn.ppu /home/stephanie/.local/share/Trash/files/.2.lazarus/lib/LCLBase/units/ x86_64-linux/editbtn.ppu /usr/share/lazarus/1.8.0RC3/lcl/units/x86_64-linux/editbtn.ppu So there is the same file also in the hidden lazarus directory in the home. The Kb are the same, I think it is the same ppu due to the rebuild of lazarus. The ppu in the Trash is 202,3 Kb and not 150,4 Kb as the ppu in the /usr/share and in the /.lazarus, so I've tried to rename it as old, now with find / -name editbtn.ppu I can find: /home/stephanie/.lazarus/lib/LCLBase/units/x86_64-linux/editbtn.ppu /usr/share/lazarus/1.8.0RC3/lcl/units/x86_64-linux/editbtn.ppu but the error when I compile unfortunatelly stil remains. About the error message at the installation, if I have understood fine, it seems it isn't a great problem: http://forum.lazarus.freepascal.org/index.php?topic=36211.0 So I think it is not the cause of the problem for the EditBtn. What might I do? Thank you again und best regards, Stéphanie ---------------------------------------------------------------------- stephanie · 2017-08-07 20:26 Quote from: GetMem on August 07, 2017, 10:08:43 pm@Stephanie Most likely you have an old 32 bit ppu somewhere. Remove everything again(FPC + Lazarus), then run the following "uninstall.sh" script. Hopefully you get rid of the "leftover". I would install Lazarus 1.8/FPC 3.0.4 instead of you, but it depends on your old project specifics. 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 bin=/usr/local/binshare=/usr/local/sharelib=/usr/local/lib rm -fv $bin/ppcppcrm -fv $bin/ppc386rm -fv $bin/bin2objrm -fv $bin/data2incrm -fv $bin/delprm -fv $bin/fd2pascalrm -fv $bin/fpcrm -fv $bin/fpcmakerm -fv $bin/fpcmkcfgrm -fv $bin/fpcsubstrm -fv $bin/fpdocrm -fv $bin/fprcprm -fv $bin/h2pasrm -fv $bin/h2paspprm -fv $bin/makeskelrm -fv $bin/mkxmlrpcrm -fv $bin/plexrm -fv $bin/postw32rm -fv $bin/ppdeprm -fv $bin/ppudumprm -fv $bin/ppufilesrm -fv $bin/ppumoverm -fv $bin/ptoprm -fv $bin/pyaccrm -fv $bin/rstconvrm -fv $bin/unitdiffrm -r $private/lazarusrm -r $bin/lazarusrm -r $share/lazarusrm -r $share/fpcsrcrm -r $share/doc/fpc-2.6.4rm -r $share/examples/fpc-2.6.4 rm -r $lib/fpc rm -fv /etc/fpc.cfgrm -fv ~/.lazarus Thank you, if necessary I do, but I've installed Lazarus on a new computer, This Computer had no 32 bit installation before. The first time I used Lazarus 1.6.2 (Debian package), then I deleted the ./lazarus und purged fpc / fpc-source / lazarus, I also removed the /usr/share/lazarus. The only 32 bit ppu can be in my home, in the directory where I stored the components, but there is no editbtn.ppu . Do you think it is however useful to uninstall again with the script? Where can I find FPC 3.0.4 (on Free Pascal site I find the 3.0.2)? Thank you again, best regards, Stephanie ---------------------------------------------------------------------- Jurassic Pork · 2017-08-07 21:11 hello, have you try to make a  test project with only one duplicated form of your big project where there is one or many TEditButton and to compile it. If it fails remove all the Teditbutton and replace them by a new. ---------------------------------------------------------------------- Josh · 2017-08-07 21:21 Hi It might be worth renaming the 'Lib' Folder in your project folder to say lib_old. Then in tools re-scan sources, then clean and rebuild your project. The Lib folder should be re-created a new for your current environment and cpu bitness. Worth a shot. Josh ---------------------------------------------------------------------- stephanie · 2017-08-07 22:51 Quote from: josh on August 07, 2017, 11:21:06 pmHi It might be worth renaming the 'Lib' Folder in your project folder to say lib_old. Then in tools re-scan sources, then clean and rebuild your project. The Lib folder should be re-created a new for your current environment and cpu bitness. Worth a shot. Josh Thanks, I've tried, the lib directory has been recreated, but I become the same error. I have copied all my files of the project into a new directory and compiled, now it works. Maybe there were something in the directory of the project that comes from 32 bit, but nothing with the EditBtn, so I cannot understand the error message. Best regards, Stephanie