Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error mode when ghc bootstrap fails during compile #1163

Open
hasufell opened this issue Nov 23, 2024 · 0 comments
Open

Bad error mode when ghc bootstrap fails during compile #1163

hasufell opened this issue Nov 23, 2024 · 0 comments

Comments

@hasufell
Copy link
Member

[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.

@hasufell hasufell changed the title Bad error mode when ghc bootstrap files during compile Bad error mode when ghc bootstrap fails during compile Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant