Skip to content

Mysterious segmentation fault installing ghc 7.10.3 #319

Closed
@hasufell

Description

@hasufell

In GitLab by @andreabedini on Feb 1, 2022, 20:43

Hi there,

I am loving ghcup but I just ran into this on my Ubuntu 21.10. Any idea what can cause it or how I can troubleshoot it further?

[~] ghcup install ghc 7.10.3
[ Info  ] downloading: https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-deb8-linux.tar.bz2 as file /tmp/ghcup-23d985e6f421568b/ghc-7.10.3-x86_64-deb8-linux.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  133M  100  133M    0     0  3057k      0  0:00:44  0:00:44 --:--:-- 3068k
[ Info  ] verifying digest of: ghc-7.10.3-x86_64-deb8-linux.tar.bz2
[ Info  ] Unpacking: ghc-7.10.3-x86_64-deb8-linux.tar.bz2 to /tmp/ghcup-a338226b2f4807c4
[ Info  ] Installing GHC (this may take a while)
[ ghc-make ] for i in  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc7.10.3.so...
[ ghc-make ] "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/ghc-prim dist-install "str...
[ ghc-make ] Installing library in
[ ghc-make ] /home/andrea/.ghcup/ghc/7.10.3/lib/ghc-7.10.3/ghcpr_8TmvWUcS1U1IKHT0levwg3
[ ghc-make ] gmake[1]: *** [ghc.mk:924: install_packages] Segmentation fault (core dumped)
[ ghc-make ] gmake: *** [Makefile:24: install] Error 2
[ Error ] Process "gmake" with arguments ["install"] failed with exit code 2.
[ Error ] Also check the logs in /home/andrea/.ghcup/logs

EDIT: I can reproduce in a clean Ubuntu 21.10 container.

EDIT2: Reproducible "one-liner"

docker run -it --rm -e BOOTSTRAP_HASKELL_GHC_VERSION=7.10.3 -e BOOTSTRAP_HASKELL_NONINTERACTIVE=1 docker.io/library/ubuntu:21.10 sh -c 'apt update && apt install --yes build-essential curl libffi-dev libffi8ubuntu1 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 && (curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh)'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions