Recent

Author Topic: [SOLVED] TAChart fails to build for aarch64  (Read 688 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1431
  • Former Delphi 1-7, 10.2 user
[SOLVED] TAChart fails to build for aarch64
« on: November 28, 2020, 12:21:33 am »
There's an issue building TAChart as part of Lazarus trunk's bigide option on macOS aarch64 (Apple Silicon ARM):

Code: Text  [Select][+][-]
  1. /Users/trev/laz_trunk/components/tachart/tatextelements.pas(688,3) Warning: (6060) Case statement does not handle all possible cases
  2. (9009) Assembling tatextelements
  3. lib/aarch64-darwin/cocoa/tatextelements.s:543:9: error: invalid operand for instruction
  4.         add     x0,w0,w0,lsr #63
  5.                    ^
  6. lib/aarch64-darwin/cocoa/tatextelements.s:544:9: error: invalid operand for instruction
  7.         asr     w0,x0,#1
  8.                    ^
  9. lib/aarch64-darwin/cocoa/tatextelements.s:546:9: error: invalid operand for instruction
  10.         add     x1,w1,w1,lsr #63
  11.                    ^
  12. lib/aarch64-darwin/cocoa/tatextelements.s:547:9: error: invalid operand for instruction
  13.         asr     w1,x1,#1
  14. lib/aarch64-darwin/cocoa/tatextelements.s:3832:9: error: invalid operand for instruction
  15.         add     x0,w0,w0,lsr #63
  16.                    ^
  17. lib/aarch64-darwin/cocoa/tatextelements.s:3833:9: error: invalid operand for instruction
  18.         asr     w1,x0,#1
  19.                    ^
  20. lib/aarch64-darwin/cocoa/tatextelements.s:3835:9: error: invalid operand for instruction
  21.         add     x0,w0,w0,lsr #63
  22.                    ^
  23. lib/aarch64-darwin/cocoa/tatextelements.s:3836:9: error: invalid operand for instruction
  24.         asr     w0,x0,#1
  25.                    ^
  26. lib/aarch64-darwin/cocoa/tatextelements.s:3934:9: error: invalid operand for instruction
  27.         add     x0,w0,w0,lsr #63
  28.                    ^
  29. lib/aarch64-darwin/cocoa/tatextelements.s:3935:9: error: invalid operand for instruction
  30.         asr     w1,x0,#1
  31.                    ^
  32. lib/aarch64-darwin/cocoa/tatextelements.s:3937:9: error: invalid operand for instruction
  33.         add     x0,w0,w0,lsr #63
  34.                    ^
  35. lib/aarch64-darwin/cocoa/tatextelements.s:3938:9: error: invalid operand for instruction
  36.         asr     w0,x0,#1
  37.                    ^
  38. tatextelements.pas(944) Error: (9007) Error while assembling exitcode 1
  39. tatextelements.pas(944) Fatal: (10026) There were 2 errors compiling module, stopping
  40. Fatal: (1018) Compilation aborted
  41. make[2]: *** [tachartlazaruspkg.ppu] Error 1
  42. make[1]: *** [bigide] Error 2
  43. make: *** [bigidecomponents] Error 2
« Last Edit: December 19, 2020, 07:23:48 am by trev »
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

wp

  • Hero Member
  • *****
  • Posts: 8392
Re: TAChart fails to build for aarch64
« Reply #1 on: November 28, 2020, 02:05:44 pm »
Sorry, I don't have access to such a system and cannot test the issue.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1431
  • Former Delphi 1-7, 10.2 user
Re: TAChart fails to build for aarch64
« Reply #2 on: November 28, 2020, 10:07:49 pm »
I can provide remote command line access via ssh (to a FreeBSD Mac mini, then to the Apple Silicon Mac mini) if that helps.
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1431
  • Former Delphi 1-7, 10.2 user
Re: TAChart fails to build for aarch64
« Reply #3 on: December 19, 2020, 07:22:39 am »
Fixed in FPC trunk r47812 - see the Bug Tracker.
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

wp

  • Hero Member
  • *****
  • Posts: 8392
Re: [SOLVED] TAChart fails to build for aarch64
« Reply #4 on: December 19, 2020, 10:15:19 am »
Good news
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018