Install xmake
in aur
https://aur.archlinux.org/packages/xmake/
$ cat /etc/fstab
...
tmpfs /var/tmp tmpfs rw,noatime,nodiratime,nodev,noexec,nosuid,nr_inodes=5K,size=4G,mode=1700 0 0
...
$ sudo du -hs /var/tmp
0 /var/tmp
$ makepkg
...
==> Entering fakeroot environment...
==> Starting package()...
installing to /var/tmp/pamac-build-alg/xmake/pkg/xmake//usr ...
plat: linux
arch: x86_64
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/#target#.vcxproj.filters': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.obj(fileobj)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/Include.natvis(incnatvis)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.ui(fileui)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.cu(filecu)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/File.c(filec)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/Include.c(incc)': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/vcxproj.filters/Filter(dir)': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/sln': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/Xmake.Custom.items': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/Xmake.Custom.targets': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/Xmake.Custom.props': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/templates/Xmake.Custom.items.filters': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/Xmake.props': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/Xmake.xml': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/Xmake.targets': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/getinfo.lua': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/vsxmake.lua': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vsxmake/render.lua': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/clang': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/cmake': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/vstudio': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/ninja': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/make': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/xmake.lua': No space left on device
cp: cannot create regular file '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/project/main.lua': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/macro': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/doxygen': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/service': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/plugins/repo': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/repository': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/rules': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/scripts': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/templates': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/themes': No space left on device
cp: cannot create directory '/var/tmp/pamac-build-alg/xmake/pkg/xmake//usr/share/xmake/toolchains': No space left on device
make: *** [makefile:114: install] Error 1
==> ERROR: A failure occurred in package().
Aborting...
...
If do it in ~
, which is not ext4 instead of tmpfs, it succeeds.
Why it failed on tmpfs? How to solve?