Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-12

Can't find unit varutils used by variants

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen
to silvioprog
silvioprog wrote
Could anybody compile a project using Lazarus from trunk?

I tested with many projects. They all compile OK.

Warning: Recompiling varutils, checksum changed for System varutils.pp(11,35) Fatal: Can't find unit varutils used by variants

Those are not Lazarus units. Sounds like an FPC issue.

Juha

Reply by email

silvioprog
to Juha Manninen

On Sun, Dec 18, 2016 at 7:22 AM, Juha Manninen via Lazarus <

Show quoted text 14 lines
wrote: On Sun, Dec 18, 2016 at 3:25 AM, silvioprog via Lazarus wrote: > Could anybody compile a project using Lazarus from trunk? I tested with many projects. They all compile OK. > Warning: Recompiling varutils, checksum changed for System > varutils.pp(11,35) Fatal: Can't find unit varutils used by variants Those are not Lazarus units. Sounds like an FPC issue. Juha

Indeed. It seems FPC is looking for a Windows unit however on Linux. When I try to compile any project, it raises that exception and open the file "~/freepascal/packages/rtl-objpas/src/win/varutils.pp" in the IDE.

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161218/2c3162c1/attachment.html>

Reply by email

Juha Manninen
to silvioprog
silvioprog wrote
Indeed. It seems FPC is looking for a Windows unit however on Linux. When I try to compile any project, it raises that exception and open the file "~/freepascal/packages/rtl-objpas/src/win/varutils.pp" in the IDE.

Did r53711 from yesterday affect it?

Juha

Reply by email

Mattias Gaertner
to silvioprog: Could anybody compile a project using Lazarus from trunk? When I try to compile any…
Show quoted text 8 lines
Hello all, Could anybody compile a project using Lazarus from trunk? When I try to compile any project: ... Warning: Recompiling varutils, checksum changed for System varutils.pp(11,35) Fatal: Can't find unit varutils used by variants

Normally the FPC units are compiled with -Ur, so any checksum change is ignored.
Either you have a broken FPC install or you have a unit with the same name as a FPC unit.

Mattias

Reply by email

silvioprog
to Juha Manninen: On Sun, Dec 18, 2016 at 5:17 PM, silvioprog via Lazarus Did r53711 from yesterday affect…

On Sun, Dec 18, 2016 at 12:32 PM, Juha Manninen via Lazarus <

Show quoted text 10 lines
wrote: On Sun, Dec 18, 2016 at 5:17 PM, silvioprog via Lazarus wrote: > Indeed. It seems FPC is looking for a Windows unit however on Linux. When I > try to compile any project, it raises that exception and open the file > "~/freepascal/packages/rtl-objpas/src/win/varutils.pp" in the IDE. Did r53711 from yesterday affect it?

Oops, sorry, my fault. The problem was fixed: after save the default project1 it finally compiles properly. It seems Lazarus can't compile the default project1 when it is not saved yet.

Now, after reinstalling Lazarus from scratch, I got the following error at its startup:

"The package "DateTimeCtrlsDsgn" is installed, but no valid package file (.lpk) was found.
A broken dummy package was created."

However I'm going to fix it by uninstalling the `DateTimeCtrlsDsgn` package. :-)

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161219/12246a82/attachment.html>

Reply by email

silvioprog
to Mattias Gaertner: On Sat, 17 Dec 2016 22:25:50 -0300 Normally the FPC units are compiled with -Ur, so any…

On Sun, Dec 18, 2016 at 1:15 PM, Mattias Gaertner via Lazarus <

Show quoted text 17 lines
wrote: On Sat, 17 Dec 2016 22:25:50 -0300 silvioprog via Lazarus wrote: > Hello all, > > Could anybody compile a project using Lazarus from trunk? When I try to > compile any project: > > ... > Warning: Recompiling varutils, checksum changed for System > varutils.pp(11,35) Fatal: Can't find unit varutils used by variants Normally the FPC units are compiled with -Ur, so any checksum change is ignored.

I didn't know this option existed, thanks.

Either you have a broken FPC install or you have a unit with the same name as a FPC unit. Mattias

So it seems Lazarus can't compile its default project when it still unsaved, after saving that I can't see the error again.

(my new environment: Lazarus 1.7 r53723 FPC 3.1.1 x86_64-linux-gtk 2 - it's working again ^^ )

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161219/b12b8b4d/attachment.html>

Reply by email

Mattias Gaertner
to silvioprog
Show quoted text 6 lines
[...] > Either you have a broken FPC install or you have a unit with the same > name as a FPC unit. So it seems Lazarus can't compile its default project when it still unsaved, after saving that I can't see the error again.

Then please check the files in your temporary building directory (Tools / Options / Environment / Files / Directory for building test projects)

Maybe there is name clashing unit.

(my new environment: Lazarus 1.7 r53723 FPC 3.1.1 x86_64-linux-gtk 2 - it's working again ^^ )

Mattias

Reply by email