google-research / dex-lang

Research language for array processing in the Haskell/ML family
BSD 3-Clause "New" or "Revised" License
1.58k stars 106 forks source link

Error installing dex on Ubuntu 22.04 #1300

Closed general-rishkin closed 1 year ago

general-rishkin commented 1 year ago

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.

   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 
general-rishkin commented 1 year ago

I did a git pull just now and closed a few applications as the installation was using a lot of memory, and the installation completed successfully.