Recent

Author Topic: Fpcupdeluxe  (Read 794353 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Fpcupdeluxe
« Reply #1170 on: February 22, 2019, 08:35:04 am »
I install trunk fpc and trunk lazarua. And run correctly with cocoa.
Installing FPC fixes 3.2 and Lazarus fixes 2.0 fails on macOS 10.14.3.

Not quite sure what's going on here, it was building OK a couple of weeks ago. There doesn't seem to be any relevant SVN changes, but building for Cocoa now fails with:


(1002) Target OS: Darwin for x86_64
(3104) Compiling lazopenglcontext.pas
(3104) Compiling openglcontext.pas
(3104) Compiling glcocoanscontext.pas
/Users/user148747/fpcupdeluxe/lazarus/components/opengl/glcocoanscontext.pas(81,14) Error: (3058) There is no method in an ancestor class to be overridden: "lclIsHandle:Boolean;"
(3104) Compiling synedittypes.pp
(3104) Compiling synedittextbase.pas
(3104) Compiling syneditmiscprocs.pp
(3104) Compiling syneditkeycmds.pp
(3104) Compiling syneditstrconst.pp
(1010) Writing Resource String Table file: syneditstrconst.rsj
/Users/user148747/fpcupdeluxe/lazarus/components/opengl/glcocoanscontext.pas(81,14) Error: (3266) Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
/Users/user148747/fpcupdeluxe/lazarus/components/opengl/glcocoanscontext.pas(112,1) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /Users/user148747/fpcupdeluxe/fpc/bin/x86_64-darwin/ppcx64 returned an error exitcode
Error: (lazarus) Compile package LazOpenGLContext 0.0.1: stopped with exit code 1
(3104) Compiling dividerbevel.pas
Error: (lazarus) Compile package lhelpcontrolpkg 0.2: terminated
Error: (lazarus) Compile package SynEdit 1.0: terminated
Error: (lazarus) Coazcontrols/dividerbevel.pas(55,31) Hint: (5024) Parameter "WithThemeSpace" not used
Error: (lazarus) Compile package lhelpcontrolpkg 0.2: terminated
Error: (lazarus) Compile package SynEdit 1.0: terminated
mpile package LazControls 1.0.1: terminated
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazarus) Building IDE: Compile AutoInstall Packages failed.
make: *** [useride] Error 2
fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: UserIDE): make returned error code #512



Could a recent macOS update cause this? Appreciate any help.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Wallaby

  • Jr. Member
  • **
  • Posts: 78
Re: Fpcupdeluxe
« Reply #1171 on: February 22, 2019, 11:13:31 am »
This is a Lazarus bug.
You can report it in the Lazarus bug-tracker.
Temp-workaround: just remove this function from the Lazarus sources.

Thanks, removing this declaration and its implementation allows everything to compile.

Here is a link to the bug report.

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1172 on: February 22, 2019, 03:04:05 pm »
Quote

Use trunk or 3.2.x (fixes_3_2 branch). Release 3.0.4 doesn't support aarch64-linux target.

Thanks!

The strange part is I can install fpc 3.0.4 package via apt (?)

Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for aarch64

Will try changing fpc version and tell you.

Best regards
« Last Edit: February 22, 2019, 03:06:34 pm by DonaldShimoda »

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1173 on: February 22, 2019, 03:17:58 pm »
Still fails

Code: Pascal  [Select][+][-]
  1. /bin/echo "'41315'" > revision.inc
  2. /home/petrobox/fpcupdeluxe/fpcbootstrap/ppca64 -Ur -Xs -O2 -n -Fuaarch64 -Fusystems -Fu/home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux -Fiaarch64 -FE. -FUaarch64/units/aarch64-linux -dRELEASE -Sg -vw-n-h-l-d-u-t-p-c-   -dREVINC -daarch64 -dGDB -dBROWSERLOG -Sew version.pas
  3. /home/petrobox/fpcupdeluxe/fpcbootstrap/ppca64 -Ur -Xs -O2 -n -Fuaarch64 -Fusystems -Fu/home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux -Fiaarch64 -FE. -FUaarch64/units/aarch64-linux -dRELEASE -Sg -vw-n-h-l-d-u-t-p-c-   -dREVINC -daarch64 -dGDB -dBROWSERLOG -Sew pp.pas
  4. make echotime
  5. Start now 14:13:09
  6. make 'FPC=/home/petrobox/fpcupdeluxe/fpcsrc/compiler/ppc1' 'OLDFPC=' next CYCLELEVEL=2
  7. An unhandled exception occurred at $000000000041AD84:
  8. EAccessViolation: Access violation
  9.   $000000000041AD84
  10.   $000000000047BBA8
  11.   $000000000041C224
  12.   $00000000004003CC
  13.   $0000000000400168
  14.  
  15. [..]
  16.  
  17. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/prt0.o aarch64/prt0.as
  18. as   -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/dllprt0.o aarch64/dllprt0.as
  19. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/cprt0.o aarch64/cprt0.as
  20. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/gprt0.o aarch64/gprt0.as
  21. Makefile:3808: recipe for target 'system.ppu' failed
  22. make[7]: *** [system.ppu] Error 217
  23. make[7]: *** Waiting for unfinished jobs....
  24. Makefile:2033: recipe for target 'linux_all' failed
  25. make[6]: *** [linux_all] Error 2
  26. Makefile:4410: recipe for target 'rtl' failed
  27. make[5]: *** [rtl] Error 2
  28. Makefile:4283: recipe for target 'next' failed
  29. make[4]: *** [next] Error 2
  30. Makefile:4292: recipe for target 'ppc2' failed
  31. make[3]: *** [ppc2] Error 2
  32. Makefile:4300: recipe for target 'cycle' failed
  33. make[2]: *** [cycle] Error 2
  34. Makefile:2788: recipe for target 'compiler_cycle' failed
  35. make[1]: *** [compiler_cycle] Error 2
  36. Makefile:2820: recipe for target 'build-stamp.aarch64-linux' failed
  37. make: *** [build-stamp.aarch64-linux] Error 2
  38.  
  39. fpcupdeluxe: ERROR: FPCNativeInstaller (BuildModuleCustom: FPC): Error running make for FPC failed with exit code 512
  40. . Details:
  41.  
  42.  
  43. ERROR: Fpcupdeluxe fatal error !

No luck. :(


Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Fpcupdeluxe
« Reply #1174 on: February 22, 2019, 04:22:28 pm »
Still fails

Code: Pascal  [Select][+][-]
  1. /bin/echo "'41315'" > revision.inc
  2. /home/petrobox/fpcupdeluxe/fpcbootstrap/ppca64 -Ur -Xs -O2 -n -Fuaarch64 -Fusystems -Fu/home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux -Fiaarch64 -FE. -FUaarch64/units/aarch64-linux -dRELEASE -Sg -vw-n-h-l-d-u-t-p-c-   -dREVINC -daarch64 -dGDB -dBROWSERLOG -Sew version.pas
  3. /home/petrobox/fpcupdeluxe/fpcbootstrap/ppca64 -Ur -Xs -O2 -n -Fuaarch64 -Fusystems -Fu/home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux -Fiaarch64 -FE. -FUaarch64/units/aarch64-linux -dRELEASE -Sg -vw-n-h-l-d-u-t-p-c-   -dREVINC -daarch64 -dGDB -dBROWSERLOG -Sew pp.pas
  4. make echotime
  5. Start now 14:13:09
  6. make 'FPC=/home/petrobox/fpcupdeluxe/fpcsrc/compiler/ppc1' 'OLDFPC=' next CYCLELEVEL=2
  7. An unhandled exception occurred at $000000000041AD84:
  8. EAccessViolation: Access violation
  9.   $000000000041AD84
  10.   $000000000047BBA8
  11.   $000000000041C224
  12.   $00000000004003CC
  13.   $0000000000400168
  14.  
  15. [..]
  16.  
  17. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/prt0.o aarch64/prt0.as
  18. as   -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/dllprt0.o aarch64/dllprt0.as
  19. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/cprt0.o aarch64/cprt0.as
  20. as  -o /home/petrobox/fpcupdeluxe/fpcsrc/rtl/units/aarch64-linux/gprt0.o aarch64/gprt0.as
  21. Makefile:3808: recipe for target 'system.ppu' failed
  22. make[7]: *** [system.ppu] Error 217
  23. make[7]: *** Waiting for unfinished jobs....
  24. Makefile:2033: recipe for target 'linux_all' failed
  25. make[6]: *** [linux_all] Error 2
  26. Makefile:4410: recipe for target 'rtl' failed
  27. make[5]: *** [rtl] Error 2
  28. Makefile:4283: recipe for target 'next' failed
  29. make[4]: *** [next] Error 2
  30. Makefile:4292: recipe for target 'ppc2' failed
  31. make[3]: *** [ppc2] Error 2
  32. Makefile:4300: recipe for target 'cycle' failed
  33. make[2]: *** [cycle] Error 2
  34. Makefile:2788: recipe for target 'compiler_cycle' failed
  35. make[1]: *** [compiler_cycle] Error 2
  36. Makefile:2820: recipe for target 'build-stamp.aarch64-linux' failed
  37. make: *** [build-stamp.aarch64-linux] Error 2
  38.  
  39. fpcupdeluxe: ERROR: FPCNativeInstaller (BuildModuleCustom: FPC): Error running make for FPC failed with exit code 512
  40. . Details:
  41.  
  42.  
  43. ERROR: Fpcupdeluxe fatal error !

No luck. :(

Please enable debug information by adding these options : -gw2 -godwarfsets -godwarfmethodclassprefix -gl -O-

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1175 on: February 22, 2019, 04:30:41 pm »
Here the result

https://pastebin.com/TUS94gHJ

Best regards

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1176 on: February 22, 2019, 04:43:30 pm »
This looks like an alignment error on aarch64.

However. Would you mind trying this:

1: Delete ppca64 from the bootstrap directory.
2: Use this prerelase; https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.6.2p

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1177 on: February 22, 2019, 05:12:06 pm »
Thanks, seems like is compiling ok right now. Still compiling. I will let you know when finish.

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Fpcupdeluxe
« Reply #1178 on: February 22, 2019, 11:35:09 pm »
-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)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1179 on: February 23, 2019, 09:41:18 am »
This is a strange error.

I have uploaded a new version for win64, that gives a bit more info about make. Please use it and report back.

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.6.2p/fpcupdeluxe-x86_64-win64.exe

Personally, I always disable virus-checking fr the install-directory. This also speeds things up !

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Fpcupdeluxe
« Reply #1180 on: February 24, 2019, 01:31:25 am »
Thanks...  testing.


Hmmm... Antivirus...
-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)

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Fpcupdeluxe
« Reply #1181 on: February 24, 2019, 03:02:55 am »
This is a strange error.

I have uploaded a new version for win64, that gives a bit more info about make. Please use it and report back.

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.6.2p/fpcupdeluxe-x86_64-win64.exe

Personally, I always disable virus-checking fr the install-directory. This also speeds things up !




Thanks, thanks and thanks.   Totally AV related.   See below:



Machines #1, 3 and 4 are using the same AV software.
The AV on machine #1 is using a profile that already excludes certain folders, including the FPCupDeluxe folders
Machine 2 is using a different AV with a less aggressive setting.
The AV on machines 3 and 4, were set with *almost* the same config as machine 1, but for some reason, they only had the stand-alone Lazarus folders exempted.  On that profile (which I thought was the same as my primary machine), they weren't setup for the FPCupDeluxe folder.   


So, after some undetermined time, make.exe (and one or two others) would get nabbed.


That kind of issue gets logged, but does not raise an alert.   I never even thought to check the central AV console...    :-X


But all is working properly now.    Sorry for the false alarm.


Machine #2 being different (from an AV perspective) totally clouded the issue for me. 
-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)

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1182 on: February 25, 2019, 04:45:18 pm »
Thanks, seems like is compiling ok right now. Still compiling. I will let you know when finish.

Dont build with fpc trunk and  lazarus stable.

https://pastebin.com/mbZsi2Xu

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #1183 on: February 25, 2019, 05:03:12 pm »
Thanks, seems like is compiling ok right now. Still compiling. I will let you know when finish.

Dont build with fpc trunk and  lazarus stable.

https://pastebin.com/mbZsi2Xu

Lazarus trunk build but get this error at start:

Error: the Fppkg configuration is corrupt.

Warning: empty Free Pascal compiler prefix.



Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Fpcupdeluxe
« Reply #1184 on: February 25, 2019, 05:08:38 pm »
Thanks, seems like is compiling ok right now. Still compiling. I will let you know when finish.

Dont build with fpc trunk and  lazarus stable.

https://pastebin.com/mbZsi2Xu

Lazarus trunk build but get this error at start:

Error: the Fppkg configuration is corrupt.

Warning: empty Free Pascal compiler prefix.




To solve the fppkg problem, find the hidden .fppkg directory under at the users directory and inside that directory delete default file under config directory. Then at the dialog screen, which pops up when starting the Lazarus IDE first time or there is problem with not founding the FPC source directory or other things etc, tell fppkg to create a new configuration file.

 

TinyPortal © 2005-2018