iquiw | 29 Jul 08:41 2012
Picon

Building GHC on NetBSD/amd64

Hi,

I am trying to build GHC on NetBSD/amd64.

First, I built GHC-6.12.3 by porting from OpenBSD/amd64.
After that, trying to build several versions (6.12.3, 7.0.4, 7.4.2) of
GHC by the stage2 compiler.

Build itself succeeded and compiling by the ghc seems no problem so far.
However, ghci (all versions) crashes always by segmentation fault.

---------------------------------------------------------------------
$ ghci
GHCi, version 7.4.2: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
zsh: segmentation fault (core dumped)  /usr/local/ghc-7.4.2/bin/ghci
---------------------------------------------------------------------

backtrace by gdb shows only "s2xW_info ()".

ktrace (kernel trace) output is as follows.
---------------------------------------------------------------------
  4494      1 ghc      CALL  __sigprocmask14(3,0x7f7fffff49e0,0)
  4494      1 ghc      RET   __sigprocmask14 0
  4494      1 ghc      CALL  _lwp_self
  4494      1 ghc      RET   _lwp_self 1
  4494      1 ghc      CALL  __sigprocmask14(1,0x7f7fffff4970,0x7f7fffff49e0)
  4494      1 ghc      RET   __sigprocmask14 0
(Continue reading)

Simon Marlow | 30 Jul 12:25 2012
Picon

Re: Building GHC on NetBSD/amd64

On 29/07/2012 07:41, iquiw wrote:
> I am trying to build GHC on NetBSD/amd64.
>
> First, I built GHC-6.12.3 by porting from OpenBSD/amd64.
> After that, trying to build several versions (6.12.3, 7.0.4, 7.4.2) of
> GHC by the stage2 compiler.
>
> Build itself succeeded and compiling by the ghc seems no problem so far.
> However, ghci (all versions) crashes always by segmentation fault.
>
> ---------------------------------------------------------------------
> $ ghci
> GHCi, version 7.4.2: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> zsh: segmentation fault (core dumped)  /usr/local/ghc-7.4.2/bin/ghci
> ---------------------------------------------------------------------
>
> backtrace by gdb shows only "s2xW_info ()".
>
> ktrace (kernel trace) output is as follows.
> ---------------------------------------------------------------------
>    4494      1 ghc      CALL  __sigprocmask14(3,0x7f7fffff49e0,0)
>    4494      1 ghc      RET   __sigprocmask14 0
>    4494      1 ghc      CALL  _lwp_self
>    4494      1 ghc      RET   _lwp_self 1
>    4494      1 ghc      CALL  __sigprocmask14(1,0x7f7fffff4970,0x7f7fffff49e0)
>    4494      1 ghc      RET   __sigprocmask14 0
>    4494      1 ghc      CALL  __sigprocmask14(3,0x7f7fffff49e0,0)
(Continue reading)


Gmane