Compilation raised exception internally

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
kjteng
Senior Boarder
Senior Boarder
Posts: 54
Joined: 10.05.2015, 15:02

Compilation raised exception internally

Post by kjteng »

I was playing with zmemtable. This error suddenly appear when I try to compile (I did not touch the zabstractConnection.pas file):
ZAbstractConnection.pas(1338,36)Error: Compilation raised exception internally

From then onward, all my programs using Tzconnection fails to compile.

Reinstalling zComponent package does not help. Deleting the zcomponent folder and copy everything from the original downloaded file (zeoslib-8.0-patches.zip) however solve the above issue.
This has happened 3 times in the past few days. I need help on how to avoid this.

By the way, what does the following message means and how to correct it?
Warning: other unit files search path (aka unit path) of "zcomponent 8.0" contains "C:\fpcupdeluxe\lazarus\components\zeoslib_8\src\component", which belongs to package "zcomponentdesign"
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Compilation raised exception internally

Post by marsupilami »

Hello kjteng,
kjteng wrote: 06.11.2021, 04:02 I was playing with zmemtable. This error suddenly appear when I try to compile (I did not touch the zabstractConnection.pas file):
ZAbstractConnection.pas(1338,36)Error: Compilation raised exception internally
That looks strange. What compiler do you use for these tests? We do compile all revisions of Zeos with the currently stable FPC. To me this looks like some internal compiler problem.
kjteng wrote: 06.11.2021, 04:02 By the way, what does the following message means and how to correct it?
Warning: other unit files search path (aka unit path) of "zcomponent 8.0" contains "C:\fpcupdeluxe\lazarus\components\zeoslib_8\src\component", which belongs to package "zcomponentdesign"
It means that the zcomponent and zcomponentdesign packages share a unit diretory. We will have to take a closer look at this.

Best rgeards,

Jan
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Compilation raised exception internally

Post by marsupilami »

Addendum:
kjteng wrote: 06.11.2021, 04:02 Deleting the zcomponent folder and copy everything from the original downloaded file (zeoslib-8.0-patches.zip) however solve the above issue.
Could you please check out the latest Zeos 8.0 version using SVN or GIT to see what files get changed and how they get changed?
kjteng
Senior Boarder
Senior Boarder
Posts: 54
Joined: 10.05.2015, 15:02

Re: Compilation raised exception internally

Post by kjteng »

I am using the trunk version
Screenshot (32).png
.
Unfortunately I have replace the folder with the new one extracted from the zeoslib-8.0-patches.zip .
I shall compare the difference next time when this happens again.
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Compilation raised exception internally

Post by marsupilami »

Hello kjteng,

is there a specific reason for using the development version of FPC? Supporting FPC trunk in a timely manner currently is out of the scope of this project because currently there is nobody doing that work.

I worked on getting FPC trunk to compile in an automated fashion but currently that seems to not be working. Compiling using fpclazup works but the generated Lazarus doesn't work correctly or something like this.

So - until this gets sorted out, we cannot support trunk in a good way.

Best regards,

Jan
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 796
Joined: 18.11.2018, 17:37
Location: Hungary

Re: Compilation raised exception internally

Post by aehimself »

@kjteng,

If you install git you simply can clone the Zeos repository to your local drive. Every time you modify a file it will be shown up any any Git GUI (Git Extensions, Atlassian something, VS Code, etc). Furthermore, you can update it with one command only. No need to download and extract ZIP files anymore!
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
kjteng
Senior Boarder
Senior Boarder
Posts: 54
Joined: 10.05.2015, 15:02

Re: Compilation raised exception internally

Post by kjteng »

marsupilami wrote: 07.11.2021, 15:22 Hello kjteng,

is there a specific reason for using the development version of FPC? Supporting FPC trunk in a timely manner currently is out of the scope of this project because currently there is nobody doing that work.

I worked on getting FPC trunk to compile in an automated fashion but currently that seems to not be working. Compiling using fpclazup works but the generated Lazarus doesn't work correctly or something like this.

So - until this gets sorted out, we cannot support trunk in a good way.

Best regards,

Jan
The reason I use the development version is because I have problem with tbufdataset (see https://forum.lazarus.freepascal.org/in ... #msg423134) which has been fixed in the trunk version. I am trying to replace tbufdataset with zMemtable in my apps now.
In any case I still have the stable version (2.0.12) in my pc and I am testing zMemtable with the stable version too.
kjteng
Senior Boarder
Senior Boarder
Posts: 54
Joined: 10.05.2015, 15:02

Re: Compilation raised exception internally

Post by kjteng »

aehimself wrote: 07.11.2021, 21:11 @kjteng,

If you install git you simply can clone the Zeos repository to your local drive. Every time you modify a file it will be shown up any any Git GUI (Git Extensions, Atlassian something, VS Code, etc). Furthermore, you can update it with one command only. No need to download and extract ZIP files anymore!
Thanks for the advise. Will try.
Post Reply