Lazarus

Programming => General => Topic started by: Bazzao on October 07, 2018, 12:05:29 am

Title: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 12:05:29 am
For the past year I have been successfully modifying and compiling an application.

This morning I get a fatal error:

xquery.pas(2948,24) Fatal: Cannot find xquery__regex used by xquery, incompatible ppu=C:\Lazarus\units\internettools\lib\x86_64-win64\xquery__regex.ppu, package internettools

A search of forums does not help. The following topics found:

1) is an install of Internettools - I had previously done this successfully.
Ref: https://forum.lazarus.freepascal.org/index.php/topic,39082.msg267149.html#msg267149

2) is an old message, which may be outdated:
https://forum.lazarus.freepascal.org/index.php/topic,32171.msg207048.html#msg207048

The last successful compile was last night.

The only major change since the last compile is overnight we started daylight saving, and the milk is souring  :D

TIA,
Bazza
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: jamie on October 07, 2018, 12:14:37 am
That looks to be like a missing DLL file (library)…

 Has windows done an update on you and removed that file?

 Are you having compiling linking issues are this happens at runtime ?
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 01:18:53 am
> Has windows done an update on you and removed that file?

No update since last compile. All previous updates has not caused this error to occur, and this application is being actively developed.

> Are you having compiling linking issues are this happens at runtime ?

Last successful compile was last night.

These are all the shown messages (I believe I did not hide any) ...

Compile Project, Mode: Development, Target: QuickNotes1.exe: Exit code 1, Errors: 1, Warnings: 1

Warning: Recompiling xquery__regex, checksum changed for xquery

xquery.pas(2948,24) Fatal: Cannot find xquery__regex used by xquery, incompatible ppu=C:\Lazarus\units\internettools\lib\x86_64-win64\xquery__regex.ppu, package internettools

Should I re-install Internet tools?.

Bazza
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Jurassic Pork on October 07, 2018, 01:44:52 am
hello,
have you tried  a clean up before compiling :
menu Run / Clean up and rebuild
Friendly, J.P
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 02:12:25 am
Hi Jurassic Pork,

Cleanup and Build results in heaps of warnings, but the same error messages for the Application compilation.

Compile Project, Mode: Development, Target: QuickNotes1.exe: Exit code 1, Errors: 1, Warnings: 1
Warning: Recompiling xquery__regex, checksum changed for xquery
xquery.pas(2948,24) Fatal: Cannot find xquery__regex used by xquery, incompatible ppu=C:\Lazarus\units\internettools\lib\x86_64-win64\xquery__regex.ppu, package internettools

Bazza
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 02:25:34 am
Is there a way to stop the offending external unit from recompiling? I can copy the unit from another PC. If so what files to look for?
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: lucamar on October 07, 2018, 02:49:59 am
Is there a way to stop the offending external unit from recompiling? I can copy the unit from another PC. If so what files to look for?

The files should be xquery_regex.ppu and xquery_regex.o but if I were you I would rather uninstall the package internettools, delete all the compiled units (which are probably in C:\Lazarus\units\internettools\lib\x86_64-win64\; just delete the directory) and reinstall the package.
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 02:53:25 am
Thanks lucamar,

I will uninstall & reinstall as you suggest.

A link to or notes of an uninstall procedure would be good. I can file it away for future problems.

Bazza


Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: lucamar on October 07, 2018, 03:02:02 am
A link to or notes of an uninstall procedure would be good. I can file it away for future problems.

Like this: Lazarus_Packages#Removing_Packages (http://wiki.freepascal.org/Lazarus_Packages#Removing_Packages)?

BTW: That directory ... is a little strange; make sure that the compiled units are really there. If they are not, then your problem is other.
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 03:26:25 am
Ta. Working on it now.

Bazza.
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 03:33:59 am
I cannot find internettools in either list of Install/Uninstall.

Did the fatal error void the installation?

Should I just remove the files and replace?

B
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: lucamar on October 07, 2018, 03:53:51 am
I cannot find internettools in either list of Install/Uninstall.

Did the fatal error void the installation?

Should I just remove the files and replace?

B

Hmm... How did you install it the first time? The process is well--if somewhat tersely--explained in Internet Tools docs, did you follow it?

ETA: It's 4:00 AM here so I won't follow up till tomorrow later :)
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 06:35:07 am
I actually cannot remember. I do scraping of websites in Pascal, so it must have been installed or otherwise working.

Anyway I'll remove the files and try to install.

B
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 07, 2018, 07:20:08 am
All done & fixed. Thanks everybody.

B

Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: jamie on October 07, 2018, 05:13:08 pm
is it possible you included one of the source files of that package in your project? If so
it could be recompiling it each time and changing the signature
Title: Re: Fatal Error Beyond my Comprehension: Cannot find xquery__regex
Post by: Bazzao on October 11, 2018, 08:43:25 am
A good bit of thinking jamie, however the package has not produced any issues until just now. And the application has been actively compiled using internet tools since April.

The fatal error just suddenly appeared when I didn't really have the time to try to fix it.

B
TinyPortal © 2005-2018