Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • 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 »

wp

  • Hero Member
  • *****
  • Posts: 11855
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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • 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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • 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.

wp

  • Hero Member
  • *****
  • Posts: 11855
Re: [SOLVED] TAChart fails to build for aarch64
« Reply #4 on: December 19, 2020, 10:15:19 am »
Good news

 

TinyPortal © 2005-2018