Error: gcc: Failed to download resource "isl" #2958
-
|
Hi there! ~$ brew doctor
Your system is ready to brew.$ brew config
HOMEBREW_VERSION: 3.3.15-25-g6198e5d
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6198e5df3d7c4e01b1f76c80fdecbbbf2b97def4
Last commit: 3 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8ea163bcb1fc43e77387c499c7d8e80f1a61d6c2
Core tap last commit: 68 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: dodeca-core 64-bit westmere
Clang: N/A
Git: 2.25.1 => /bin/git
Curl: 7.68.0 => /bin/curl
Kernel: Linux 5.10.93.2-microsoft-standard-WSL2 x86_64 GNU/Linux
OS: Ubuntu 20.04.3 LTS (focal)
Host glibc: 2.31
/usr/bin/gcc: 9.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@5: N/A
xorg: N/Abrew --version
Homebrew 3.3.15-25-g6198e5d
Homebrew/homebrew-core (git revision 8ea163bcb1f; last commit 2022-02-15)~$ uname -ar
Linux * 5.10.93.2-microsoft-standard-WSL2 #1 SMP Wed Jan 26 22:38:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linuxbrew postinstall --debug gcc
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc.rb
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/git --version
==> Postinstalling gcc
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall gcc
==> An exception occurred within a child process:
ErrorDuringExecution: Failure while executing; `/home/linuxbrew/.linuxbrew/Cellar/gcc/11.2.0_3/bin/gcc-11 -print-libgcc-file-name` exited with 127. Here's the output:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:12:in `popen_read'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:16:in `safe_popen_read'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc.rb:180:in `post_install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1131:in `block (2 levels) in run_post_install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:948:in `with_logging'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1130:in `block in run_post_install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:588:in `with_env'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1119:in `run_post_install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/postinstall.rb:22:in `<main>' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
So, after some investigation I've decided to reset WSL and upgrade distro to 21.10. Installed brew one more time and it's finally working! 😎 |
Beta Was this translation helpful? Give feedback.
-
|
FWIW, if others find this, I was on 22 and it failed. My brew commands went from failing after 40+ minutes to actually completing within 10 minutes or so. I updated the dns nameservers in wsl and it's working well, so far. |
Beta Was this translation helpful? Give feedback.
So, after some investigation I've decided to reset WSL and upgrade distro to 21.10. Installed brew one more time and it's finally working! 😎