/usr/bin/ld.gold: error: cannot open .stack-work-opt/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/Types/Core.dyn_o: No such file or directory collect2: error: ld returned 1 exit status gcc' failed in phase `Linker'. (Exit code: 1)
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
[S-7011]
While building package dex-0.1.0.0 (scroll up to its section to see the error) using:
/home/grishkin/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_6HauvNHV_3.2.1.0_ghc-8.10.7 --verbose=1 --builddir=.stack-work-opt/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build lib:dex exe:dex --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
I get this error after
make install
:/usr/bin/ld.gold: error: cannot open .stack-work-opt/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/Types/Core.dyn_o: No such file or directory collect2: error: ld returned 1 exit status
gcc' failed in phase `Linker'. (Exit code: 1)Error: [S-7282] Stack failed to execute the build plan.