[GHC] #9935: Can't compile rts/StgCRun.c for aarch64-linux
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------+---------------------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: Linux Architecture: Other | Type of failure: Building GHC failed Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------+---------------------------------------------- When cross-compiling from x86_64-linux to aarch64-linux I get: {{{ rts/StgCRun.c: In function ‘StgRun’: rts/StgCRun.c:756:5: error: unknown register name ‘%lr’ in ‘asm’ __asm__ volatile ( }}} It seems the asm code here is for iOS and does not work for Linux. Have a patch in progress. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+---------------------------------- Changes (by erikd): * architecture: Other => aarch64 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: D599 ----------------------------------------+---------------------------------- Changes (by erikd): * differential: => D599 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: D599 ----------------------------------------+---------------------------------- Description changed by erikd: Old description:
When cross-compiling from x86_64-linux to aarch64-linux I get:
{{{ rts/StgCRun.c: In function ‘StgRun’:
rts/StgCRun.c:756:5: error: unknown register name ‘%lr’ in ‘asm’ __asm__ volatile ( }}}
It seems the asm code here is for iOS and does not work for Linux. Have a patch in progress.
New description: When building an x86_64-linux to aarch64-linux cross-compiling I get: {{{ rts/StgCRun.c: In function ‘StgRun’: rts/StgCRun.c:756:5: error: unknown register name ‘%lr’ in ‘asm’ __asm__ volatile ( }}} It seems the asm code here is for iOS and does not work for Linux. Have a patch in progress. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: D599 ----------------------------------------+---------------------------------- Comment (by Erik de Castro Lopo <erikd@…>): In [changeset:"b9063703301f0d902b4bb2eb28ac27e9bc050ea0/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="b9063703301f0d902b4bb2eb28ac27e9bc050ea0" RTS : Fix StgRun for aarch64-linux (#9935). Summary: The GCC assembler doesn't seem to recognise the 'fp' and 'lr' register names which are aliases for 'x29' and 'x30' respectively. Depends on D598. Test Plan: validate Reviewers: lukexi, bgamari, austin Reviewed By: austin Subscribers: carter, thomie Differential Revision: https://phabricator.haskell.org/D599 GHC Trac Issues: #9935 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: D599 ----------------------------------------+---------------------------------- Changes (by erikd): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9935: Can't compile rts/StgCRun.c for aarch64-linux ----------------------------------------+---------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Linux | Architecture: aarch64 Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: D599 ----------------------------------------+---------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged to `ghc-7.10` (via 5f2af6646067a6a66afa450c42482b5723172593). -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9935#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC