[GHC] #14280: Aarch64 build is broken

#14280: Aarch64 build is broken -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: aarch64 | Type of failure: Compile-time | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Trying to bootstrap 7446c7f68bd5addd2f2db0d8d5910fb963869c47 on an aarch64 (Debian 8, LLVM 5) box results in a reproducibly segfaulting `ghc-stage2`, {{{ (gdb) run Starting program: /mnt/ext/arm/ghc/inplace/lib/bin/ghc-stage2 -B/mnt/ext/arm/ghc/inplace/lib -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -fPIC -dynamic -H32m -O -Wall -hide-all-packages -i -iutils/check-ppr/. -iutils/check-ppr/dist-install/build -Iutils/check-ppr/dist-install/build -iutils/check-ppr/dist-install/build/check-ppr/autogen -Iutils/check-ppr /dist-install/build/check-ppr/autogen -optP-include -optPutils/check-ppr /dist-install/build/check-ppr/autogen/cabal_macros.h -package-id base-4.11.0.0 -package-id bytestring-0.10.8.2 -package-id containers-0.5.10.2 -package-id Cabal-2.0.0.2 -package-id directory-1.3.1.2 -package-id filepath-1.4.1.2 -package-id ghc-8.3 -Wall -XHaskell2010 -no-user-package- db -rtsopts -Wnoncanonical-monad-instances -odir utils/check-ppr/dist- install/build -hidir utils/check-ppr/dist-install/build -stubdir utils /check-ppr/dist-install/build -c utils/check-ppr/./Main.hs -o utils/check- ppr/dist-install/build/Main.dyn_o [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux- gnu/libthread_db.so.1". [New Thread 0x3fafaff200 (LWP 29429)] Thread 1 "ghc-stage2" received signal SIGSEGV, Segmentation fault. 0x00000000005aa360 in stg_IND_STATIC_info () (gdb) bt #0 0x00000000005aa360 in stg_IND_STATIC_info () #1 0x0000007fb11b3450 in ccib_info$def () from /mnt/ext/arm/ghc/libraries/base/dist- install/build/libHSbase-4.11.0.0-ghc8.3.20170926.so Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14280 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14280: Aarch64 build is broken -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: aarch64 Type of failure: Compile-time | Test Case: crash or panic | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I suspect this is due to a linker bug since I noticed that for some reason `configure` didn't find `ld.gold` (and therefore I'm using `ld.bfd`, which I generally assume to be broken). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14280#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14280: Aarch64 build is broken -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: aarch64 Type of failure: Compile-time | Test Case: crash or panic | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed modifying `settings` and `make -Cghc re2`ing seems to fix the issue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14280#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14280: Aarch64 build is broken -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: aarch64 Type of failure: Compile-time | Test Case: crash or panic | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Ahh, I see what happened. I had `ld.lld` installed but `gcc` doesn't support `-fuse-ld=lld`, consequently it never tried `ld.gold.` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14280#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14280: Aarch64 build is broken
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone: 8.4.1
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: aarch64
Type of failure: Compile-time | Test Case:
crash or panic |
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#14280: Aarch64 build is broken -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: aarch64 Type of failure: Compile-time | Test Case: crash or panic | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14280#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC