Zstd: No space left on device (cannot write compressed block) while installing davinci resolve

I have ~ 180gb left on my sdd, but I am getting this error when trying to install davinci-resolve from the aur. Not sure what is wrong & googling zstd didn’t bring any usable results

[twiggeh@twiggeh-linux ~]$ yaourt -S davinci-resolve 

==> Downloading davinci-resolve PKGBUILD from AUR...
x davinci-resolve.install
matbonn commented on <a href="#comment-769528" class="date">2020-10-09 07:32</a>                         

grumpy.guy commented on <a href="#comment-769538" class="date">2020-10-09 09:31</a>                      

T0rtillas commented on <a href="#comment-769671" class="date">2020-10-10 09:14</a>                       

Jae commented on <a href="#comment-772407" class="date">2020-10-24 22:07</a>                     

mkono87 commented on <a href="#comment-774291" class="date">2020-11-06 17:36</a>                         

davinci-resolve 16.2.7-1  (2020-09-30 17:15)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> davinci-resolve dependencies:
 - glu (already installed)
 - gtk2 (already installed)
 - gstreamer (already installed)
 - libpng12 (already installed)
 - lib32-libpng12 (already installed)
 - ocl-icd (already installed)
 - openssl-1.0 (already installed)
 - opencl-driver (already installed)
 - qt5-base (already installed)
 - qt5-svg (already installed)
 - qt5-webkit (already installed)
 - qt5-webengine (already installed)
 - qt5-websockets (already installed)
 - libarchive (already installed) [makedepend]
 - xdg-user-dirs (already installed) [makedepend]

==> Edit davinci-resolve.install ? [Y/n] ("A" to abort)
==> ---------------------------------------------------
==> n

==> Continue building davinci-resolve ? [Y/n]
==> -----------------------------------------
==> y

==> Building and installing package
==> Making package: davinci-resolve 16.2.7-1 (Do 12 Nov 2020 15:07:56 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading DaVinci_Resolve_16.2.7_Linux.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1604M  100 1604M    0     0  6363k      0  0:04:18  0:04:18 --:--:-- 6209kf
==> Validating source files with sha256sums...
    DaVinci_Resolve_16.2.7_Linux.zip ... Passed
==> Extracting sources...
  -> Extracting DaVinci_Resolve_16.2.7_Linux.zip with bsdtar
==> Starting prepare()...
  -> The file(s) 75-sdx.rules, 75-davincipanel.rules already exist in your filesystem.
  -> This can lead to a conflict and the installation will fail.
  -> Please restart the installation with the --overwrite option.
==> Entering fakeroot environment...
==> Starting package()...
  -> Creating missing folders...
  -> Extracting from bundle...
==> Please wait, this take a while...
  -> Add lib symlinks...
  -> Install launchers and configs...
  -> Creating and installing udev rules...
  -> Installing Application icons...
  -> Setting the right permissions...
  -> Done!
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "davinci-resolve"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
zstd: error 25 : Write error : No space left on device (cannot write compressed block) 
bsdtar: Write error
==> ERROR: Failed to create package file.
==> ERROR: Makepkg was unable to build davinci-resolve.
==> Restart building davinci-resolve ? [y/N]

The problem isn’t caused by zstd ─ which is a compression algorithm, now used as the default compression method for Manjaro and Arch packages ─ but with the fact that there’s not enough free space left on the filesystem that yaourt is using for building the package.

yaourt was already no longer supported when I first installed Manjaro in April 2019, and so I’ve never used it. But I do know that yay builds its packages in your $HOME and that trizen builds them in /tmp, which in Manjaro is on a tmpfs.

So, you’re going to have to see what takes up all the space on whatever device yaourt is writing to. :man_shrugging:

I suspect that yaourt is using /tmp, which is half your RAM, by default.

So check if your /tmp is getting full with df -h. Davinci Resolve is a huge package after all.

1 Like

Seems that it is using 1%
tmpfs 7,9G 50M 7,8G 1% /tmp

Filesystem      Size  Used Avail Use% Mounted on
dev             7,8G     0  7,8G   0% /dev
run             7,9G  1,6M  7,9G   1% /run
/dev/sda8       256G   61G  182G  25% /
tmpfs           7,9G  222M  7,7G   3% /dev/shm
tmpfs           4,0M     0  4,0M   0% /sys/fs/cgroup
tmpfs           7,9G   50M  7,8G   1% /tmp
/dev/sda6       512M  8,6M  504M   2% /boot/efi
/dev/sdb2       931G  448G  484G  49% /run/media/twiggeh/Storage
tmpfs           1,6G  112K  1,6G   1% /run/user/1000
/dev/sda4       197G  125G   72G  64% /run/media/twiggeh/F01A3D101A3CD4F6

Even when it’s building/compressing the package?

1 Like

You are correct! It runs out of space during the build ;-;
What would be the fix for this :D?

Download the tarball containing the PKGBUILD file. Unpack it and run makepkg -scri inside the folder containing the PKGBUILD.


It seems to work nicely now :smiley:
Thanks for your help!
I assume that I can remove the stuff left over in the folder that I was running makepkg in

Yes. Only the sources should be left behind.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.