Recent

Author Topic: PPU Source: variants.pp not available - compiler stops here  (Read 2075 times)

jshand2010

  • Full Member
  • ***
  • Posts: 236
PPU Source: variants.pp not available - compiler stops here
« on: December 15, 2018, 03:01:35 am »
during the last few days i have run into a problem when running the ./create_lazarus_rpm.sh from the tools/install directory.

i really have no idea on how to proceed from here

(1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
(10001) PPU Loading /usr/lib64/fpc/3.2.0/units/x86_64-linux/rtl-objpas/variants.ppu
(10011) PPU Source: variants.pp not available
(10028) Recompiling Variants, checksum changed for /usr/local/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu {impl}
/usr/lib64/fpc/3.2.0/units/x86_64-linux/rtl-objpas/variants.ppu:variants.pp(11,71) Fatal: (10022) Can't find unit Variants used by DB
Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:2892: fcllaz.ppu] Error 1
make[1]: Leaving directory '/home/jshand/rpm/BUILD/lazarus-2.0.0RC2/lazarus/packager/registration'
make: *** [Makefile:3341: registration] Error 2
error: Bad exit status from /home/jshand/rpm/tmp/rpm-tmp.fZvVY6 (%build)


RPM build errors:
    Bad exit status from /home/jshand/rpm/tmp/rpm-tmp.fZvVY6 (%build)

below are the versions of fpc and lazarus i am currently using.  any help would be appreciated

FPC Fixes Version 3.2.0:

Working Copy Root Path: /home/jshand/fpc
URL: https://svn.freepascal.org/svn/fpc/branches/fixes_3_2
Relative URL: ^/branches/fixes_3_2
Repository Root: https://svn.freepascal.org/svn/fpc
Repository UUID: 3ad0048d-3df7-0310-abae-a5850022a9f2
Revision: 40552
Node Kind: directory
Schedule: normal
Last Changed Author: yury
Last Changed Rev: 40545
Last Changed Date: 2018-12-14 07:32:23 +1300 (Fri, 14 Dec 2018)

LAZARUS Fixes Version 2.0.0rc2:

Working Copy Root Path: /home/jshand/lazarus
URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0
Relative URL: ^/branches/fixes_2_0
Repository Root: https://svn.freepascal.org/svn/lazarus
Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f
Revision: 59827
Node Kind: directory
Schedule: normal
Last Changed Author: mattias
Last Changed Rev: 59793
Last Changed Date: 2018-12-11 23:22:06 +1300 (Tue, 11 Dec 2018)
« Last Edit: December 15, 2018, 03:55:43 am by jshand2010 »
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: PPU Source: variants.pp not available - compiler stops here
« Reply #1 on: December 15, 2018, 01:14:42 pm »
Make sure your repositories are 100% clean, and there are no stale .ppu's lying around

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: PPU Source: variants.pp not available - compiler stops here
« Reply #2 on: December 15, 2018, 02:05:29 pm »
Sorry, when I checked the issue last night I missed that this was using the release build script. So the Issue is might be ok, and can stay open on mantis for now (but discussions/exploration of what happens should stay here).

That said, I am not maintaining that script, and I don't know when the person in charge will have time do look at it. Apparently it works for released fpc versions (as it must have been used for the Lazarus 2.0RC2), and it only needs fixing if it does not work with the fpc release 3.2. It is not required to work with any fpc svn between in between, as then the fpc version may be broken too...

I can't test it myself at the moment, since all my linux systems only have self-build fpc, and rely on *not* having an installed version.
The build script you use however (from reading the readme) requires an install.

I am assuming you did build your own fpc-3-2-fixes.rpm, with the help of the scripts in lazarus? And you installed it?

The error indicates that something went wrong with this 3.2-fixes build or install.
So it could be that the issue is either:
- in the script (the one used to build the fpc installer)
- that the current fpc fixes branch has an issue.
- the setup you have when you run the fpc installer build script (still that is the likely issue)

I did test if fpc 3.2 r40556 works, when build on its own (simple make / according to buildfaq.pdf). And the result seems to work.

Conclusion:
I believe something is wrong/went wrong with the build of fpc rpm. I am not sure what exactly.


I cant promise that I can help, but in any case you might want to give some details on how you build (or where you got from) the fpc installer, and if you did anything special when installing it.

------------------
If you do not need the rpm, but just some working fpc/lazarus you may want to try fpcup deluxe.

Or I can get you a copy of how I build fpc (my own script). It allows to have several diff fpc, but no cross building fpc.


 

TinyPortal © 2005-2018