Trying to install XMonad via Stack because it wouldn't start up using Portage. Ive had more success using Stack in the past, but now I've run into this error upon running stack install from this guide: https://xmonad.org/INSTALL.html
<no location info>: error:
Warning: Couldn't figure out linker information!
Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc.
collect2: fatal error: cannot find ‘ld’
compilation terminated.
`gcc' failed in phase `Linker'. (Exit code: 1)
Error: [S-6374]
While building simple Setup.hs (scroll up to its section to see the error) using:
/home/vox/.stack/programs/x86_64-linux/ghc-tinfo6-9.2.7/bin/ghc-9.2.7 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.6.3.0 /home/vox/.stack/setup-exe-src/setup-6HauvNHV.hs /home/vox/.stack/setup-exe-src/setup-shim-6HauvNHV.hs -o /home/vox/.stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_6HauvNHV_3.6.3.0_ghc-9.2.7
Process exited with code: ExitFailure 1```
I've tried searching what S-6374 could mean, and I do not know why it would not be able to find ``ld``, as ``which ld`` outputs ``/usr/bin/ld``. Any help would be appreciated, I miss using XMonad 
