Recent

Author Topic: [solved] fpcupdeluxe: Can't find unit clocale used by Lazarus  (Read 1022 times)

soerensen3

  • Full Member
  • ***
  • Posts: 161
[solved] fpcupdeluxe: Can't find unit clocale used by Lazarus
« on: August 08, 2018, 08:12:53 pm »
I have problems compiling Lazarus with fpcupdeluxe.
Whatever combination of compiler and Lazarus version I try to compile it always gives me this error when building Lazarus. FPC compiles just fine!
/home/johannes/fpcupdeluxe/lazarus/ide/lazarus.pp(54,3) Fatal: (10022) Can't find unit clocale used by Lazarus

Linux johannes-pc 4.9.111-1-MANJARO #1 SMP PREEMPT Tue Jul 3 17:36:44 UTC 2018 x86_64 GNU/Linux
FPCUPdeluxe V1.6.1g for x86_64-linux-gtk2

Steps to reproduce:
Select Lazarus-git and fpc-git
Install / Update FPC + Laz

This is the (shortened because it would exceed the maximum characters) log.
Quote
FPCUPdeluxe V1.6.1g for x86_64-linux-gtk2

Going to install/update FPC and Lazarus with given options.
FPCUP(deluxe) is starting up.

Bootstrap dir:      /home/johannes/fpcupdeluxe/fpcbootstrap
FPC URL:               https://github.com/graemeg/freepascal.git
FPC options:           
FPC source directory:  /home/johannes/fpcupdeluxe/fpcsrc
FPC install directory: /home/johannes/fpcupdeluxe/fpc
Lazarus URL:        https://github.com/graemeg/lazarus.git
Lazarus options:   
Lazarus directory:  /home/johannes/fpcupdeluxe/lazarus
Please stand back and enjoy !

fpcupdeluxe: info: 8-8-18 19:47:54: fpcupdeluxe: V060 (20180712) started.
fpcupdeluxe: info: FPCNativeInstaller (GetModule: FPC): Start checkout/update of FPC sources.
Executing: /usr/bin/git "clone" "--recurse-submodules" "-b" "master" "https://github.com/graemeg/freepascal.git/" "/home/johannes/fpcupdeluxe/fpcsrc" (working dir: )
Cloning into '/home/johannes/fpcupdeluxe/fpcsrc'...
[...]
fpcupdeluxe: info: LazarusNativeInstaller (GetModule: lazarus): Start checkout/update of lazarus sources.
Executing: /usr/bin/git "clone" "--recurse-submodules" "-b" "upstream" "https://github.com/graemeg/lazarus.git/" "/home/johannes/fpcupdeluxe/lazarus" (working dir: )
Cloning into '/home/johannes/fpcupdeluxe/lazarus'...
[...]
(3104) Compiling lr_chbox.pas
(3104) Compiling lr_crosstab.pas
(3104) Compiling lr_crossarray.pas
(3104) Compiling lr_crosstabeditor.pas
/home/johannes/fpcupdeluxe/lazarus/components/lazreport/source/lr_crosstab.pas(843,3) Warning: (4040) Class types "TfrMemoView" and "TlrHackObject" are not related
(3104) Compiling fr3tolrf.pas
(1008) 46387 lines compiled, 4.9 sec
(1021) 147 warning(s) issued
(1022) 446 hint(s) issued
(1023) 311 note(s) issued
/usr/bin/make -C ide idepkg
../tools/svn2revisioninc .. revision.inc
Created /home/johannes/fpcupdeluxe/lazarus/ide/revision.inc for revision: 58686
/usr/bin/make --assume-new=lazarus.pp lazarus OPT=' @/home/johannes/fpcupdeluxe/config_lazarus/idemake.cfg'
/home/johannes/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.sh -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fu/usr/lib/fpc/3.1.1/units/x86_64-linux/rtl -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/johannes/fpcupdeluxe/config_lazarus/idemake.cfg -dx86_64 lazarus.pp
(1002) Target OS: Linux for x86-64
(3104) Compiling lazarus.pp
(10001) PPU Loading /home/johannes/fpcupdeluxe/fpc/units/x86_64-linux/rtl-extra/clocale.ppu
(10011) PPU Source: clocale.pp not available
make[1]: *** [Makefile:4572: idepkg] Error 2
make: *** [Makefile:3276: idepkg] Error 2
(10028) Recompiling clocale, checksum changed for /usr/lib/fpc/3.1.1/units/x86_64-linux/rtl/sysutils.ppu {impl}
/home/johannes/fpcupdeluxe/lazarus/ide/lazarus.pp(54,3) Fatal: (10022) Can't find unit clocale used by Lazarus
Fatal: (1018) Compilation aborted
Error: /home/johannes/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Error: (lazarus) Build IDE: stopped with exit code 512

fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: suggestedpackages): Failure trying to rebuild Lazarus.
Details:


ERROR: Fpcupdeluxe fatal error !
« Last Edit: August 08, 2018, 09:38:17 pm by soerensen3 »
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)

af0815

  • Full Member
  • ***
  • Posts: 172
Re: fpcupdeluxe: Can't find unit clocale used by Lazarus
« Reply #1 on: August 08, 2018, 09:07:54 pm »
/home/johannes/fpcupdeluxe/fpc
/usr/lib/fpc/3.1.1/units/x86_64-linux/rtl/sysutils.ppu
/home/johannes/fpcupdeluxe/lazarus
/home/johannes/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64

It looks for like a mixed system. /usr/lib  /.. looks like an install from the system package system mixed with fpcupdeluxe. Or a selfcompiled and installed fpc 3.1.1
« Last Edit: August 08, 2018, 09:11:28 pm by af0815 »
regards
Andreas

soerensen3

  • Full Member
  • ***
  • Posts: 161
Re: fpcupdeluxe: Can't find unit clocale used by Lazarus
« Reply #2 on: August 08, 2018, 09:12:16 pm »
Oops I forgot to mention I have fpc and Lazarus installed from the repos ( fpc-git from aur and lazarus stable).
But I thought fpcupdeluxe is independent from other installations!
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)

af0815

  • Full Member
  • ***
  • Posts: 172
Re: fpcupdeluxe: Can't find unit clocale used by Lazarus
« Reply #3 on: August 08, 2018, 09:17:04 pm »
Normally (often) yes, but sometimes not.

I use no package from the distro, only fpcupdeluxe and have up to 5 version combination of fpc/lazarus on my pc. 
regards
Andreas

soerensen3

  • Full Member
  • ***
  • Posts: 161
Re: fpcupdeluxe: Can't find unit clocale used by Lazarus
« Reply #4 on: August 08, 2018, 09:37:56 pm »
Ok now it seems to work but on the other hand it could be considered a bug.

Anyways I don't have a launcher anymore now and the article about fpcupdeluxe mentions something about an install script (http://wiki.freepascal.org/fpcupdeluxe):
Quote
In order to have the installation working you MUST use the generated link to start the install !

That launcher link contains a line like:

Exec=/P/s/lazarus/lazarus --pcp="/P/s/config_lazarus"

But I can't find it. There is a desktop file however in lazarus/install/ but it does not contain the pcp line. I can solve this manually but I'm interested if there is an option to automatically do this in case I compile different versions or have to reinstall it.
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)

soerensen3

  • Full Member
  • ***
  • Posts: 161
Re: [solved] fpcupdeluxe: Can't find unit clocale used by Lazarus
« Reply #5 on: August 08, 2018, 09:49:42 pm »
Oh I should have read the output, that it does create a link in your home directory. Would be nice if it was a desktop file though but anyway I will write a script for that.

Edit: It did also do that :) it was just put onto the desktop instead of ~/.local/share/applications/
« Last Edit: August 08, 2018, 09:55:08 pm by soerensen3 »
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)