Recent

Author Topic: Incompatible ppu  (Read 9680 times)

XinHong

  • Newbie
  • Posts: 3
Incompatible ppu
« on: May 08, 2016, 06:00:59 pm »
Hello all,

I made a clean install of Lazarus 1.6 + fpc 3.0 (the official installer package) on Windows 10 x64.

When I want to build a projects I always have the error :
"unit2.pas(8,22) Error: Cannot find FileUtil used by Unit2, incompatible ppu=D:\Lazarus\components\lazutils\lib\x86_64-win64\fileutil.ppu, package LazUtils"

Even if I create a very basic program (put a button on a form) I have this error.

And if I remove FileUtil from the project I have :
"unit2.pas(8,22) Error: Cannot find Forms used by Unit2, incompatible ppu=D:\Lazarus\lcl\units\x86_64-win64\forms.ppu, package LCLBase"

Did I missed something ?

Thanks

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9870
  • Debugger - SynEdit - and more
    • wiki
Re: Incompatible ppu
« Reply #1 on: May 08, 2016, 06:08:10 pm »
check in the options what fpc is used, and that it indeed points to fpc3.0.0

XinHong

  • Newbie
  • Posts: 3
Re: Incompatible ppu
« Reply #2 on: May 08, 2016, 07:02:28 pm »
In the Lazarus options I put the "real" path of make.exe. Now the error message is:
"unit1.pas(8,22) Error: Cannot find FileUtil used by Unit1. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=D:\Lazarus\components\lazutils\lib\x86_64-win64\fileutil.ppu. Clean up package "LazUtils"..

I checked all the path but they seems to be correct.

Lazarus general options:
Lazarus directory:      D:\Lazarus\
Compiler executable: D:\Lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exe
FPC Source Directory: D:\Lazarus\fpc\3.0.0\source
Make executable:       D:\Lazarus\fpc\3.0.0\bin\x86_64-win64\make.exe
Directory for building test projects: C:\Users\xxx\AppData\Local\Temp\

Project option paths:
Other unit files: empty
Include files: $(ProjOutDir)
Libraries: empty
Unit output directory: lib\$(TargetCPU)-$(TargetOS)
Target filename: project1
Other sources: empty
Debugger path addition: empty

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Incompatible ppu
« Reply #3 on: May 08, 2016, 07:23:29 pm »
Use ppudump to analyze that file, -vh option will show its header, make sure compiler version, target processor and target operating system matches your fpc installation and project option.

XinHong

  • Newbie
  • Posts: 3
Re: Incompatible ppu
« Reply #4 on: May 08, 2016, 08:00:31 pm »
ppudump gives me an error with the Symtable options, I don't know what it is. I have the same error with forms.ppu:

PPU-Analyser Version 3.0.0
Copyright (c) 1998-2013 by the Free Pascal Development Team

Analyzing D:\Lazarus\components\lazutils\lib\x86_64-win64\fileutil.ppu (v172)

Header
-------
Compiler version        : 3.0.0
Target processor        : x86_64
Target operating system : Win64-x64
Unit flags              : init, final, static_linked, little_endian, has_debug_info, dwarf_debug_info, local_symtable
FileSize (w/o header)   : 99028
Checksum                : 758CCF06
Interface Checksum      : F359A19D
Indirect Checksum       : 3AAC3683
Definitions stored      : 428
Symbols stored          : 1013

Interface symtable
----------------------
Symtable options: Needs init final table
!! Error in PPU

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Incompatible ppu
« Reply #5 on: May 09, 2016, 06:47:53 am »
Looks good to me. It must be something else, either your fpc.cfg or the project.

 

TinyPortal © 2005-2018