Recent

Author Topic: [SOLVED] Incompatible editbtn.ppu  (Read 5754 times)

stephanie

  • New Member
  • *
  • Posts: 27
[SOLVED] Incompatible editbtn.ppu
« on: August 07, 2017, 04:32:35 pm »
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
« Last Edit: August 08, 2017, 12:51:37 am by stephanie »

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: Incompatible editbtn.ppu
« Reply #1 on: August 07, 2017, 04:49:44 pm »
Maybe that was a memory issue. Try to do the same but on different hardware and/or OS.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Incompatible editbtn.ppu
« Reply #2 on: August 07, 2017, 04:59:00 pm »
Try to rebuild Lazarus with Clean + Build All.

stephanie

  • New Member
  • *
  • Posts: 27
Re: Incompatible editbtn.ppu
« Reply #3 on: August 07, 2017, 05:15:04 pm »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Incompatible editbtn.ppu
« Reply #4 on: August 07, 2017, 05:45:23 pm »
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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

stephanie

  • New Member
  • *
  • Posts: 27
Re: Incompatible editbtn.ppu
« Reply #5 on: August 07, 2017, 07:18:56 pm »
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

  • Hero Member
  • *****
  • Posts: 4144
Re: Incompatible editbtn.ppu
« Reply #6 on: August 07, 2017, 07:46:35 pm »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Incompatible editbtn.ppu
« Reply #7 on: August 07, 2017, 08:45:55 pm »
Have 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
« Last Edit: August 07, 2017, 08:50:25 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

stephanie

  • New Member
  • *
  • Posts: 27
Re: Incompatible editbtn.ppu
« Reply #8 on: August 07, 2017, 09:28:02 pm »
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

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: Incompatible editbtn.ppu
« Reply #9 on: August 07, 2017, 09:50:06 pm »
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.
« Last Edit: August 07, 2017, 09:54:50 pm by Thaddy »
Specialize a type, not a var.

balazsszekely

  • Guest
Re: Incompatible editbtn.ppu
« Reply #10 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][+][-]
  1. bin=/usr/local/bin
  2. share=/usr/local/share
  3. lib=/usr/local/lib
  4.  
  5. rm -fv $bin/ppcppc
  6. rm -fv $bin/ppc386
  7. rm -fv $bin/bin2obj
  8. rm -fv $bin/data2inc
  9. rm -fv $bin/delp
  10. rm -fv $bin/fd2pascal
  11. rm -fv $bin/fpc
  12. rm -fv $bin/fpcmake
  13. rm -fv $bin/fpcmkcfg
  14. rm -fv $bin/fpcsubst
  15. rm -fv $bin/fpdoc
  16. rm -fv $bin/fprcp
  17. rm -fv $bin/h2pas
  18. rm -fv $bin/h2paspp
  19. rm -fv $bin/makeskel
  20. rm -fv $bin/mkxmlrpc
  21. rm -fv $bin/plex
  22. rm -fv $bin/postw32
  23. rm -fv $bin/ppdep
  24. rm -fv $bin/ppudump
  25. rm -fv $bin/ppufiles
  26. rm -fv $bin/ppumove
  27. rm -fv $bin/ptop
  28. rm -fv $bin/pyacc
  29. rm -fv $bin/rstconv
  30. rm -fv $bin/unitdiff
  31. rm -r $private/lazarus
  32. rm -r $bin/lazarus
  33. rm -r $share/lazarus
  34. rm -r $share/fpcsrc
  35. rm -r $share/doc/fpc-2.6.4
  36. rm -r $share/examples/fpc-2.6.4
  37. rm -r $lib/fpc
  38. rm -fv /etc/fpc.cfg
  39. rm -fv ~/.lazarus

stephanie

  • New Member
  • *
  • Posts: 27
Re: Incompatible editbtn.ppu
« Reply #11 on: August 07, 2017, 10:18:01 pm »
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

  • New Member
  • *
  • Posts: 27
Re: Incompatible editbtn.ppu
« Reply #12 on: August 07, 2017, 10:26:11 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][+][-]
  1. bin=/usr/local/bin
  2. share=/usr/local/share
  3. lib=/usr/local/lib
  4.  
  5. rm -fv $bin/ppcppc
  6. rm -fv $bin/ppc386
  7. rm -fv $bin/bin2obj
  8. rm -fv $bin/data2inc
  9. rm -fv $bin/delp
  10. rm -fv $bin/fd2pascal
  11. rm -fv $bin/fpc
  12. rm -fv $bin/fpcmake
  13. rm -fv $bin/fpcmkcfg
  14. rm -fv $bin/fpcsubst
  15. rm -fv $bin/fpdoc
  16. rm -fv $bin/fprcp
  17. rm -fv $bin/h2pas
  18. rm -fv $bin/h2paspp
  19. rm -fv $bin/makeskel
  20. rm -fv $bin/mkxmlrpc
  21. rm -fv $bin/plex
  22. rm -fv $bin/postw32
  23. rm -fv $bin/ppdep
  24. rm -fv $bin/ppudump
  25. rm -fv $bin/ppufiles
  26. rm -fv $bin/ppumove
  27. rm -fv $bin/ptop
  28. rm -fv $bin/pyacc
  29. rm -fv $bin/rstconv
  30. rm -fv $bin/unitdiff
  31. rm -r $private/lazarus
  32. rm -r $bin/lazarus
  33. rm -r $share/lazarus
  34. rm -r $share/fpcsrc
  35. rm -r $share/doc/fpc-2.6.4
  36. rm -r $share/examples/fpc-2.6.4
  37. rm -r $lib/fpc
  38. rm -fv /etc/fpc.cfg
  39. rm -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

  • Hero Member
  • *****
  • Posts: 1228
Re: Incompatible editbtn.ppu
« Reply #13 on: August 07, 2017, 11:11:23 pm »
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.
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Incompatible editbtn.ppu
« Reply #14 on: August 07, 2017, 11:21:06 pm »
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
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018