Forum > Options

Upgrade Lazarus, nothing compiles

(1/3) > >>

Bazzao:
Hi I upgraded Lazarus, and nothing compiles.

Here is an example:

Messages, Hints: 20
Note: Duplicate unit "translations" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\translations.ppu", source="C:\Lazarus\components\lazutils\translations.pas"
Note: Duplicate unit "translations" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\translations.ppu", source="C:\Lazarus\lcl\translations.pas"
Note: Duplicate unit "textstrings" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\textstrings.ppu", source="C:\Lazarus\components\lazutils\textstrings.pas"
Note: Duplicate unit "textstrings" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\textstrings.ppu", source="C:\Lazarus\lcl\textstrings.pas"
Note: Duplicate unit "stringhashlist" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\stringhashlist.ppu", source="C:\Lazarus\components\lazutils\stringhashlist.pas"
Note: Duplicate unit "stringhashlist" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\stringhashlist.ppu", source="C:\Lazarus\lcl\stringhashlist.pas"
Note: Duplicate unit "maps" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\maps.ppu", source="C:\Lazarus\components\lazutils\maps.pp"
Note: Duplicate unit "maps" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\maps.ppu", source="C:\Lazarus\lcl\maps.pp"
Note: Duplicate unit "lazlinkedlist" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\lazlinkedlist.ppu", source="C:\Lazarus\components\lazutils\lazlinkedlist.pas"
Note: Duplicate unit "lazlinkedlist" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\lazlinkedlist.ppu", source="C:\Lazarus\lcl\lazlinkedlist.pas"
Note: Duplicate unit "graphtype" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\graphtype.ppu", source="C:\Lazarus\components\lazutils\graphtype.pp"
Note: Duplicate unit "graphtype" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\graphtype.ppu", source="C:\Lazarus\lcl\graphtype.pp"
Note: Duplicate unit "extendedstrings" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\extendedstrings.ppu", source="C:\Lazarus\components\lazutils\extendedstrings.pas"
Note: Duplicate unit "extendedstrings" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\extendedstrings.ppu", source="C:\Lazarus\lcl\extendedstrings.pas"
Note: Duplicate unit "dynqueue" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\dynqueue.ppu", source="C:\Lazarus\components\lazutils\dynqueue.pas"
Note: Duplicate unit "dynqueue" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\dynqueue.ppu", source="C:\Lazarus\lcl\dynqueue.pas"
Note: Duplicate unit "dynhasharray" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\dynhasharray.ppu", source="C:\Lazarus\components\lazutils\dynhasharray.pp"
Note: Duplicate unit "dynhasharray" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\dynhasharray.ppu", source="C:\Lazarus\lcl\dynhasharray.pp"
Note: Duplicate unit "dynamicarray" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\dynamicarray.ppu", source="C:\Lazarus\components\lazutils\dynamicarray.pas"
Note: Duplicate unit "dynamicarray" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\dynamicarray.ppu", source="C:\Lazarus\lcl\dynamicarray.pas"
Hint: (11030) Start of reading config file C:\Lazarus\fpc\3.0.2\bin\x86_64-win64\fpc.cfg
Hint: (11031) End of reading config file C:\Lazarus\fpc\3.0.2\bin\x86_64-win64\fpc.cfg
Free Pascal Compiler version 3.0.2 [2017/02/27] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Win64 for x64
(3104) Compiling Colours2.lpr
(10001) PPU Loading C:\Lazarus\lcl\units\x86_64-win64\forms.ppu
(10008) PPU Invalid Version 207
D:\Lazarus\Build\Colours2\Colours2.lpr(6,3) Fatal: (10022) Can't find unit Forms used by Colours2
Fatal: (1018) Compilation aborted
Error: C:\Lazarus\fpc\3.0.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode

trev:
Your tagline indicates "Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64"

Your failed compilation indicates that you're using Lazarus 2.0.10 and FPC 3.0.2, so I'm not surprised it doesn't work.

I don't use Windows, but I believe you can fix the FPC version by specifying it in Tools > Options > Files - Compiler executable and a matching Tools > Options > Files - FPC source directory.

Bazzao:
$(LazarusDir)fpc\$(FPCVer)\source

Where do I decode or set $(FPCVer)?

trev:
Mine are hardcoded - for example:

FPC Executable (one of):
* /usr/local/lib/fpc/3.3.1/ppc386
* /usr/local/lib/fpc/3.3.1/ppcx64

* /usr/local/lib/fpc/3.2.0/ppc386
* /usr/local/lib/fpc/3.2.0/ppcx64

FPC Source (one of):
* /usr/local/share/fpcsrc/fpc-3.3.1/

* /usr/local/share/fpcsrc/fpc-3.2.0/

It would depend on where you have your files.

Bazzao:
OK,

* I moved the 3.0.2 directory & rescanned FPC source.
* hardcoded the paths like you.
* I've edited the fpc.cfg to add my unit paths.

Now all that remains is the duplicates ...


--- Quote ---Note: Duplicate unit "translations" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\translations.ppu", source="C:\Lazarus\components\lazutils\translations.pas"
Note: Duplicate unit "translations" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\translations.ppu", source="C:\Lazarus\lcl\translations.pas"

Note: Duplicate unit "textstrings" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\textstrings.ppu", source="C:\Lazarus\components\lazutils\textstrings.pas"
Note: Duplicate unit "textstrings" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\textstrings.ppu", source="C:\Lazarus\lcl\textstrings.pas"

Note: Duplicate unit "stringhashlist" in "LazUtils 1.0", ppu="C:\Lazarus\components\lazutils\lib\x86_64-win64\stringhashlist.ppu", source="C:\Lazarus\components\lazutils\stringhashlist.pas"
Note: Duplicate unit "stringhashlist" in "LCLBase 2.0.10", ppu="C:\Lazarus\lcl\units\x86_64-win64\stringhashlist.ppu", source="C:\Lazarus\lcl\stringhashlist.pas"

etc

--- End quote ---

Which one should be removed?. Lazutils has 2020 dated files.




Navigation

[0] Message Index

[#] Next page

Go to full version