WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

Resolved. Running with strace revealed that what was actually taking a long time was searching PATH for the gcc-15 binary (which happened even when specifying an absolute path to the binary, seemingly as part of the dynamic linking process?). And the reason this was taking so long for me specifically is because my Homebrew binaries were after several /mnt/c directories in my PATH, which take longer to search.

This was resolved by moving "$HOMEBREW_PREFIX/bin and $HOMEBREW_PREFIX/sbin to earlier in my PATH (specifically putting them right above the mnt/c directories by doing export PATH="${PATH/"/mnt/c/"/"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:/mnt/c/"}")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by notable-equivalent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
1 participant