Skip to content

Bad error mode when ghc bootstrap fails during compile #1163

@hasufell

Description

@hasufell
[root@GHC ~]# ghcup --keep=errors compile ghc --patch https://gitlab.haskell.org/maerwald/ghc/-/commit/20befebf3e57f0ad1f0d45cec60b230717d0c95b.patch -b 9.4.8 -g ghc-9.6 -o 9.6.6 -- --with-gmp-includes=/usr/local/include --with-gmp-libraries=/usr/local/lib --with-iconv-includes=/usr/local/include --with-iconv-libraries=/usr/local/lib
[ Info  ] Fetching git repo https://gitlab.haskell.org/ghc/ghc.git at ref ghc-9.6 (this may take a while)
[ Info  ] downloading: https://gitlab.haskell.org/maerwald/ghc/-/commit/20befebf3e57f0ad1f0d45cec60b230717d0c95b.patch as file /root/.ghcup/tmp/ghcup-7da63ea1c6e88aee/20befebf3e57f0ad1f0d45cec60b230717d0c95b.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4075    0  4075    0     0  11019      0 --:--:-- --:--:-- --:--:-- 11013
[ Info  ] Applying patch /root/.ghcup/tmp/ghcup-7da63ea1c6e88aee/20befebf3e57f0ad1f0d45cec60b230717d0c95b.patch
[ ghc-bootstrap ] ghcup: python3: executeFile: does not exist (No such file or directory)





[ Info  ] Examining git ref ghc-9.6
[ ...   ]   GHC version (from Makefile): Nothing
[ ...   ]   commit hash: 3a18c0fa2edcd61b0c3b470661791b09501c4c2b
[ Info  ] Detected Hadrian
[ Info  ] configuring build
[ ghc-conf ] sh: cannot open ./configure: No such file or directory





[ Error ] [GHCup-00841] Process "sh" with arguments ["./configure",
[ ...   ]                              "GHC=/root/.ghcup/bin/ghc-9.4.8",
[ ...   ]                              "--prefix=/root/.ghcup/ghc/9.6.6",
[ ...   ]                              "--with-gmp-includes=/usr/local/include",
[ ...   ]                              "--with-gmp-libraries=/usr/local/lib",
[ ...   ]                              "--with-iconv-includes=/usr/local/include",
[ ...   ]                              "--with-iconv-libraries=/usr/local/lib"] failed with exit code 127.

It should fail right when we try to execute python3.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions