Opened 19 months ago

Last modified 6 weeks ago

#7316 new bug

GHC segfaults on ARM

Reported by: laney Owned by: bgamari
Priority: normal Milestone: 7.6.2
Component: Compiler Version: 7.4.2
Keywords: Cc: bgamari, cjwatson@…
Operating System: Unknown/Multiple Architecture: arm
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By: #3658
Blocking: #7623 Related Tickets:


Sorry for the lack of detail. I thought I'd file this upstream. We've been seeing this in Ubuntu with 7.4.2. Some cabal packages, like chell, fail to build with a segfault in ghc.

[3 of 4] Compiling Test.Chell.Main  ( lib/Test/Chell/Main.hs, dist-ghc/build/Test/Chell/Main.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array- ... linking ... done.
Loading package deepseq- ... linking ... done.
Loading package old-locale- ... linking ... done.
Loading package time-1.4 ... linking ... done.
Loading package random- ... linking ... done.
Loading package containers- ... linking ... done.
Loading package patience-0.1.1 ... linking ... done.
Loading package bytestring- ... linking ... done.
Loading package transformers- ... linking ... done.
Loading package monads-tf- ... linking ... done.
Loading package text- ... linking ... done.
Loading package system-filepath-0.4.6 ... linking ... done.
Loading package pretty- ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package options-0.1.1 ... linking ... done.
make: *** [build-ghc-stamp] Error 11

Full build log attached. I'll try to reduce the example and/or reproduce with 7.6 soon. (I can also provide you with SSH access to hardware if you need it).

Attachments (1)

buildlog_ubuntu-quantal-armhf.haskell-chell_0.3-1build1_FAILEDTOBUILD.txt.gz (7.9 KB) - added by laney 19 months ago.
Log of chell building on Ubuntu Quantal (GHC 7.4.2)

Download all attachments as: .zip

Change History (9)

comment:1 Changed 19 months ago by laney

  • Summary changed from GHC segfaults on hardfloat ARM to GHC segfaults on ARM

Changed 19 months ago by laney

Log of chell building on Ubuntu Quantal (GHC 7.4.2)

comment:2 follow-up: Changed 18 months ago by simonmar

  • Cc bgamari added
  • Difficulty set to Unknown
  • Milestone set to 7.6.2
  • Priority changed from normal to high

@bgamari smells like a problem with the ARM linker, any chance you could investigate?

comment:3 in reply to: ↑ 2 Changed 18 months ago by bgamari

Replying to simonmar:

@bgamari smells like a problem with the ARM linker, any chance you could investigate?

Of course. I've recently been having a hard time getting GHC to build on my test machine apparently due to inconsistent compiler options being used by by LLVM and GCC. Nevertheless, I'll take a look at this as soon as the compiler issue is sorted out.

comment:4 Changed 15 months ago by dterei

  • Blocking 7623 added

comment:5 Changed 13 months ago by cjwatson

  • Cc cjwatson@… added

I'm far from certain, but it's possible that my patch in will help with this.

comment:6 Changed 12 months ago by igloo

  • Blocked By 3658 added

This should be fixed by using dynamic libraries to implement GHCi.

comment:7 Changed 7 months ago by bgamari

  • Owner set to bgamari

comment:8 Changed 6 weeks ago by bgamari

  • Priority changed from high to normal

At this point it seems like dynamic linking works pretty well with the LLVM backend on ARM. We can keep this bug open as the bug likely still lurks in GHC's linker, but it's not nearly as critical now.

Note: See TracTickets for help on using tickets.