pyscripter / python4delphi

Free components that wrap up Python into Delphi and Lazarus (FPC)
MIT License
895 stars 307 forks source link

[dcc64 fatal error] PythonVcl.dpk: F2084 Internal Error on RAD Studio 12.1 #468

Closed oyefer closed 3 months ago

oyefer commented 3 months ago

The compilation was normal under 12.0 with patch1, but 12.1 encountered the following error: p4d_error

pyscripter commented 3 months ago

Rad Studio 12.1 has not yet been released. Are you using a beta? Which version of P4D are you using? (Getit, this repo or the Embarcadero repo)

oyefer commented 3 months ago

RAD Studio 12.1 29.0.51961.7529 Update 1 https://altd.embarcadero.com/download/radstudio/12.0/RADStudio_12_1_61_7529.iso

pyscripter commented 3 months ago

Cannot reproduced with Delphi 12.1. Following the installation instructions, I opened the group project, selected "Build All" and it all compiled without issues. Please make sure you are using the latest sources from this repo.

oyefer commented 3 months ago

By default, the target platform is win32, and there are really no errors at compile time. When the target platform is set to win64, there is no error in compiling Python290.bpl, which occurs when compiling PythonVcl290.bpl. image

pyscripter commented 3 months ago

I see. I can also replicate the error. It does compile fine in Delphi 11. Clearly this is a Delphi compiler bug and not a P4D one.

Reported as https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-446.

pyscripter commented 2 months ago

This is fixed in https://blogs.embarcadero.com/rad-studio-12-1-athens-patch-1-available/