Recent

Author Topic: Fpcupdeluxe  (Read 813264 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #930 on: August 20, 2018, 09:18:39 am »
Then something went wrong !
You have a few options.

1: run fpcupdeluxe again to enable it to get the right bootstrapper.
2: get the bootstrapper yourself

Add 2:
Get the right bootstrapper from:
https://github.com/newpascal/fpcupdeluxe/releases/download/bootstrappers_v1.0/fpcup-3_0_4-x86_64-win64-ppcx64.exe
Move it into the right directory and rename it into ppcx64.exe

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #931 on: August 20, 2018, 09:43:23 am »
Option 1 did not change anything.
Option 2 works for me. It can do the bootstap now. Now, well done.

It looks for me at the offical ftp, the is no 64 bit bootstrapcompiler. My problem was i have a 64 bit compiler, but in Version 3.0.5 so it was not accpeted, an i have found no option to override this.

Can fpcupdeluxe be more verbose with the downloadpath. It will be a better diagnostic, hen i see what it will search for or try to download (In extra verbose mode).

Thx 4 your help and the lot of hours you spend for fpcupdeluxe and the other tools.
regards
Andreas

hayanninja

  • New Member
  • *
  • Posts: 45
Re: Fpcupdeluxe
« Reply #932 on: August 20, 2018, 11:22:04 am »
What Lazarus version should I use with FPC fixes3.2? It doesn't seem to be able to compile either fixes1.8 or trunk? I get an error about needing to recompile Controls because the checksum changed or something (I'll get the exact message if it fails again, trying some different combinations), then an error that Controls can't be found.

Just in case it matters, I'm running Windows 10 64-bit, with fpcupdeluxe 64-bit 1.6.1j. I tried completely clearing out the Lazarus folder and checking it out again, just in case. Didn't make a difference.

EDIT: Yes, trunk/trunk gives this error too.
Quote
(10011) PPU Source: dragobject.inc not available
(10011) PPU Source: dragimagelist.inc not available
(10028) Recompiling Controls, checksum changed for C:\Lazarus\lazarus\components\lazutils\lib\x86_64-win64\graphtype.ppu
C:\Lazarus\lazarus\components\lazcontrols\checkboxthemed.pas(20,3) Fatal: (10022) Can't find unit Controls used by CheckBoxThemed
Fatal: (1018) Compilation aborted
Error: C:\Lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
make.exe[1]: *** [lazcontrols.ppu] Error 1
make.exe[1]: Leaving directory `C:/Lazarus/lazarus/components/lazcontrols'
C:\Lazarus\fpcbootstrap\make.exe: *** [lazbuild] Error 2
C:\Lazarus\fpcbootstrap\make.exe: Leaving directory `C:/Lazarus/lazarus'
fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: lazbuild): make.exe returned error code #2

EDIT: Would appear this is yet another case of an SVN-related issue. Tried trunkgit/trunkgit and it compiled just fine.
« Last Edit: August 20, 2018, 12:59:04 pm by hayanninja »

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #933 on: August 20, 2018, 12:04:54 pm »
It looks fpc fixes32 and Lazarus fixes18 are createable only under win32 fpcupdeluxe. With the win64 version i am not able to compile. Lazbuild will compiled, but is not workable.
First i fixed an 217 error  in line 8878 of codetools/definetemplates with
Quote
if (UnitPaths<>nil) and (UnitPaths.Count=0) then begin
but now i got a funny error
Quote
:\Data\lazdev\fixes32_fixes18_win64\fpcbootstrap\make.exe: Leaving directory `C:/Data/lazdev/fixes32_fixes18_win64/lazarus'
fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: USERIDE): Running lazbuild to get IDE with user-specified packages
fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: USERIDE): C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazbuild.exe. Params: --quiet,--pcp=C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus,--cpu=x86_64,--os=win64,"--build-ide=-dKeepInstalledPackages -gw -gl -O1 -Co -Cr -Ci -Sa"
Executing: C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazbuild.exe "--quiet" "--pcp=C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus" "--cpu=x86_64" "--os=win64" "--build-ide=-dKeepInstalledPackages -gw -gl -O1 -Co -Cr -Ci -Sa" (working dir: C:\Data\lazdev\fixes32_fixes18_win64\lazarus)
using config file C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazarus.cfg
SetPrimaryConfigPath NewValue="C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus" -> "C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus"
Hint: (lazarus) [RunTool] C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe "-iWTOTP" "-FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg"
Hint: (lazarus) [RunTool] C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe "-va" "-FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg" "compilertest.pas"
Warning: RunFPCVerbose failed: C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe -va -FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg compilertest.pas
Hint: (lazarus) [RunTool] C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe "-iWTOTP" "-Px86_64" "-Twin64" "-FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg"
Hint: (lazarus) [RunTool] C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe "-va" "-Px86_64" "-Twin64" "-FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg" "compilertest.pas"
Warning: RunFPCVerbose failed: C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe -va -Px86_64 -Twin64 -FrC:\Data\lazdev\fixes32_fixes18_win64\lazarus\components\codetools\fpc.errore.msg compilertest.pas

  $00000001001B953B  DEBUGLNSTACK,  line 731 of lazloggerbase.pas
  $000000010000265B  ONIDEMESSAGEDIALOG,  line 339 of lazbuild.lpr
  $000000010016884F  PPUFILESANDCOMPILERMATCH,  line 800 of buildmanager.pas
  $000000010016843E  RESCANCOMPILERDEFINES,  line 1017 of buildmanager.pas
  $0000000100171D19  SETBUILDTARGET,  line 2720 of buildmanager.pas
  $00000001001720BE  SETBUILDTARGETIDE,  line 2754 of buildmanager.pas
  $00000001000035CC  BUILDLAZARUSIDE,  line 573 of lazbuild.lpr
  $000000010000827E  RUN,  line 1494 of lazbuild.lpr
  $000000010000AA16  main,  line 1870 of lazbuild.lpr
Error: (lazbuild) Error
Compiler "C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe" does not support target x86_64-win64
lazbuild is non interactive, aborting now.

fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: USERIDE): lazbuild.exe returned error code 2
Details:

ERROR: Fpcupdeluxe fatal error !
There is a problem with the targetname ?!?.
 
Quote
Free Pascal Compiler version 3.2.0-beta-r39643 [2018/08/20] for x86_64
Copyright (c) 1993-2018 by Florian Klaempfl and others
The compiler is still x86_64 but the -win64 is missing.
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11446
  • FPC developer.
Re: Fpcupdeluxe
« Reply #934 on: August 20, 2018, 12:13:08 pm »
Targets (OS and CPU) and other parameters are queriable with -i parameters like e.g.

fpc -iTO -iTP

and shouldn't be parsed from the general msg
« Last Edit: August 20, 2018, 12:44:32 pm by marcov »

hayanninja

  • New Member
  • *
  • Posts: 45
Re: Fpcupdeluxe
« Reply #935 on: August 20, 2018, 12:14:12 pm »
I can install (with win64) FPC fixes3.0 / Lazarus fixes1.8. Just not FPC fixes3.2 with, well, any Lazarus.

Though a while back - maybe a week or so before the creation of fixes3.2 - I was able to install trunk/trunk just fine. So this would appear to be a very recent bug.

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Fpcupdeluxe
« Reply #936 on: August 20, 2018, 12:36:34 pm »
Targets are queriable with

fpc -iTO -iTP
Yes, it is the same as with version queried
Quote
C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64>fpc -iTO -iTP
win64 x86_64
-win64 is missing :-)

So it is my question - is the buildtarget naming of fpc not corrrect or is fpcbuild searching for a wrong target ?

Edit: Tested with
Quote
C:\Data\lazdev\fixes32_fixes18_win64\lazarus>C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazbuild.exe "--quiet" "--pcp=C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus" "--cpu=x86_64" "--build-ide=-dKeepInstalledPackages -gw -gl -O1 -Co -Cr -Ci -Sa"
and
Quote
C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazbuild.exe "--quiet" "--pcp=C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus" "--cpu=x86_64" "--os=win64" "--build-ide=-dKeepInstalledPackages -gw -gl -O1 -Co -Cr -Ci -Sa"
und win10/64 pro
Result always
Quote
using config file C:\Data\lazdev\fixes32_fixes18_win64\lazarus\lazarus.cfg
SetPrimaryConfigPath NewValue="C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus" -> "C:\Data\lazdev\fixes32_fixes18_win64\config_lazarus"

  $00000001001B953B  DEBUGLNSTACK,  line 731 of lazloggerbase.pas
  $000000010000265B  ONIDEMESSAGEDIALOG,  line 339 of lazbuild.lpr
  $000000010016884F  PPUFILESANDCOMPILERMATCH,  line 800 of buildmanager.pas
  $000000010016843E  RESCANCOMPILERDEFINES,  line 1017 of buildmanager.pas
  $0000000100171D19  SETBUILDTARGET,  line 2720 of buildmanager.pas
  $00000001001720BE  SETBUILDTARGETIDE,  line 2754 of buildmanager.pas
  $00000001000035CC  BUILDLAZARUSIDE,  line 573 of lazbuild.lpr
  $000000010000827E  RUN,  line 1494 of lazbuild.lpr
  $000000010000AA16  main,  line 1870 of lazbuild.lpr
Error: (lazbuild) Error
Compiler "C:\Data\lazdev\fixes32_fixes18_win64\fpc\bin\x86_64-win64\fpc.exe" does not support target x86_64-win64
lazbuild is non interactive, aborting now.
« Last Edit: August 20, 2018, 12:41:23 pm by af0815 »
regards
Andreas

magikfingerz

  • Newbie
  • Posts: 5
Re: Fpcupdeluxe
« Reply #937 on: August 21, 2018, 05:57:56 pm »
I had similar problems (error 2) over windows, and running fpcupdeluxe with administration privileges fixed it (right click and "Run as Administrator")  :)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #938 on: August 21, 2018, 06:12:33 pm »
Quote
Warning: RunFPCVerbose failed:
This fails due to the fact that RunTool does not work anymore.
Bug-report: https://bugs.freepascal.org/view.php?id=34152

Quote
if (UnitPaths<>nil) and (UnitPaths.Count=0) then begin
UnitPaths is nil due to the fact that RunTool does not work anymore.

So, installing Lazarus fixes 1.8 will fail with 3.2 or trunk !!
You have to wait until this Laz-bugger has been taken care of.
(all has to do with new TProcess)

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Fpcupdeluxe
« Reply #939 on: August 28, 2018, 06:24:13 pm »
@DonAlfredo

To avoid the "scary" Windows warning about installing fcpupdeluxe, have you considered signing the binary with code signature?    It's not that expensive, and you'd only have to get one code certificate for all your apps...
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

hayanninja

  • New Member
  • *
  • Posts: 45
Re: Fpcupdeluxe
« Reply #940 on: August 30, 2018, 01:35:33 pm »
@DonAlfredo

To avoid the "scary" Windows warning about installing fcpupdeluxe, have you considered signing the binary with code signature?    It's not that expensive, and you'd only have to get one code certificate for all your apps...

To be fair, I'd say that anyone using Lazarus at all, let alone via fpcupdeluxe, probably knows enough about those kind of warnings to not be very scared by them, and would know how to verify hashes if they're paranoid.

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Fpcupdeluxe
« Reply #941 on: September 02, 2018, 12:24:33 am »
Error in installing cross compiler for wince in XUBUNTU 16.04 64bit
Code: Pascal  [Select][+][-]
  1.  
  2. Following is log :
  3.  
  4. The current wince binutils need /lib/ld-linux-x86-64.so.2 !
  5. If so, add this symlink and point it towards /lib/x86_64-linux-gnu/ld-2.24.so
  6. sudo ln -s /lib/x86_64-linux-gnu/ld-2.24.so /lib/ld-linux-x86-64.so.2
  7. Building compiler for wince-arm (OPT: -dFPC_ARMHF ).
  8. fpcupdeluxe: info: FPC arm-wince cross-builder: Detected source version FPC (compiler): 3.3.1
  9. fpcupdeluxe: info: TLinux386_wince-arm: Found correct binary utilities in directory /home/jiten/fpc-trunk/cross/bin/arm-wince
  10. fpcupdeluxe: info: FPC arm-wince cross-builder: Using cross-compiler with version: 3.3.1
  11. fpcupdeluxe: info: Lazarus arm-wince cross-builder: Detected source version Lazarus: 1.9.0
  12. fpcupdeluxe: info: Lazarus arm-wince cross-builder: Using FPC compiler with version: 3.3.1
  13. fpcupdeluxe: Start of compile error summary.
  14. /home/jiten/fpc-trunk/lazarus/lcl/interfaces/./wince/wincewsmenus.pp(1130,1) Error: (9030) Can't call the resource compiler "/home/jiten/fpc-trunk/cross/bin/arm-wince/arm-cegcc-windres", switching to external mode
  15. fpcupdeluxe: Most likely, there is not enough RAM (swap) to finish this operation.
  16. fpcupdeluxe: Please add some RAM or swap-space (+1GB) and re-run fpcupdeluxe.
  17. fpcupdeluxe: Start of compile error summary.
  18. /home/jiten/fpc-trunk/lazarus/lcl/interfaces/./wince/wincewsmenus.pp(1130,1) Fatal: (10026) There were 1 errors compiling module, stopping
  19. /home/jiten/fpc-trunk/lazarus/lcl/interfaces/./wince/wincewsmenus.pp(1130,1) Error: (9030) Can't call the resource compiler "/home/jiten/fpc-trunk/cross/bin/arm-wince/arm-cegcc-windres", switching to external mode
  20. fpcupdeluxe: Start of compile error summary.
  21. Fatal: (1018) Compilation aborted
  22. /home/jiten/fpc-trunk/lazarus/lcl/interfaces/./wince/wincewsmenus.pp(1130,1) Fatal: (10026) There were 1 errors compiling module, stopping
  23. fpcupdeluxe: Start of compile error summary.
  24. Error: /home/jiten/fpc-trunk/fpc/bin/x86_64-linux/ppcrossarm returned an error exitcode
  25. fpcupdeluxe: Start of compile error summary.
  26. Error: (lazarus) Compile package LCL 1.9: stopped with exit code 256
  27. fpcupdeluxe: Start of compile error summary.
  28. Error: (lazbuild) LCL 1.9 compilation failed
  29. fpcupdeluxe: Start of compile error summary.
  30. fpcupdeluxe: ERROR: LazarusCrossInstaller (BuildModuleCustom: LCL): Error compiling LCL for arm-wince wince
  31. fpcupdeluxe: Start of compile error summary.
  32. fpcupdeluxe: ERROR: LazarusCrossInstaller (BuildModuleCustom: LCL): Cross compiling LCL for arm-wince failed.
  33.  
« Last Edit: September 03, 2018, 04:04:53 pm by jshah »

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: Fpcupdeluxe
« Reply #942 on: September 04, 2018, 12:44:47 am »
Thank you for your good work on Fpcupdeluxe.  It is a great tool to manage isolated installs of Lazarus and FPC.

For launching the Lazarus GUI, a script is created (in home directory) and launcher (on desktop) which opens Lazarus with the correct config path & environment.  For example, on Linux if I install to "/home/user/trunk", it creates:

/home/user/Desktop/Lazarus_trunk.desktop (launcher)
/home/user/Lazarus_trunk  (shell script)

But when working from the command line, there is no assistance to setup the correct environment for fpc.  As a suggestion, can you create two more files for launching a terminal with the correct fpc environment?:

/home/user/Desktop/fpc_trunk.desktop (launcher)
/home/user/fpc_trunk (shell script)

For Linux FPC/lazbuild command line work, this seems to work for the shell script (assumes a bash shell):

Code: [Select]
#!/bin/sh
# fpcupdeluxe: FPC home startlink script
export PATH="/home/user/trunk/fpc/bin/x86_64-linux:/home/user/trunk/lazarus:${PATH}"
export PPC_CONFIG_PATH="/home/user/trunk/fpc/bin/x86_64-linux"
exec /bin/bash
(using example install dir of  "/home/user/trunk")

Windows equivalent batch file for setting up environment for working from command line after installing fpc/laz using fpcupdeluxe:
Code: [Select]
REM fpcupdeluxe: FPC home startlink script
SET PATH=F:\trunk\fpc\bin\x86_64-win64;F:\trunk\lazarus;%PATH%
SET PPC_CONFIG_PATH=F:\trunk\fpc\bin\x86_64-win64
cmd.exe
(using example install dir of "f:\trunk")

Note:  Setting the paths this way is not global and only effects the current terminal shell and child shells.

Thanks

« Last Edit: September 05, 2018, 02:59:15 pm by WayneSherman »

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Fpcupdeluxe
« Reply #943 on: September 04, 2018, 09:30:27 pm »
With reference to signing downloads, I have used 'Let' Encrypt' from https://letsencrypt.org/. It works very well and is free.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11446
  • FPC developer.
Re: Fpcupdeluxe
« Reply #944 on: September 05, 2018, 01:41:46 pm »
For Windows I use paths like this (but the principle is also possible with *nix I think):

It stores the original path in a separate variable, so you can revert to it.

Code: Pascal  [Select][+][-]
  1. @echo off
  2.  
  3. Rem we save oldpath only once, so we can always revert to it.
  4.  
  5. if "%OLDPATH%" neq "" goto :nosave
  6. set OLDPATH=%PATH%
  7. :nosave
  8. SET PATH=%OLDPATH%
  9. PATH c:\pp32\bin\i386-win32;%PATH%
  10.  

This also means that if you run the script multiple times, it won't  keep adding dirs.

I use similar scripts for mingw, latex and cygwin that have multiple exclusive directories, and for several FPC versions (trunk, fixes 32/64)

 

TinyPortal © 2005-2018