That language suggests to me directory corruption in /var/lib/ somewhere preventing temp files from being placed there. I’d try the hits from "unable to open" "Structure needs cleaning" - Google Suche but not the one I looked at: RESOLVED - Linux Mint Forums, which was an I give up, not a solution.
If you wish a workaround that ignores the likely filesystem damage, download cmake-full manually and install with rpm from some other local directory tree.
Hi @mrmazda
First I tried the workaround, as it would buy me more time:
> sudo rpm -iU cmake3-full-3.17.0-lp152.2.1.x86_64.rpm
sudo: unable to open /var/lib/sudo/ts/johannes: Structure needs cleaning
[sudo] password for root:
error: unpacking of archive failed on file /usr/bin/ccmake;6444e98b: cpio: open failed - No such file or directory
error: cmake3-full-3.17.0-lp152.2.1.x86_64: install failed
> sudo rpm -i bison-3.0.4-lp152.4.3.1.x86_64.rpm
sudo: unable to open /var/lib/sudo/ts/johannes: Structure needs cleaning
[sudo] password for root:
error: unpacking of archive failed on file /usr/bin/bison;6444e997: cpio: open failed - No such file or directory
error: bison-3.0.4-lp152.4.3.1.x86_64: install failed
> sudo rpm -i flex-2.6.4-lp152.4.105.x86_64.rpm
sudo: unable to open /var/lib/sudo/ts/johannes: Structure needs cleaning
[sudo] password for root:
error: unpacking of archive failed on file /usr/bin/flex;6444e9a3: cpio: open failed - No such file or directory
error: flex-2.6.4-lp152.4.105.x86_64: install failed
>
No go… 
Then, I decided to move on to try to fsck the system (in this case xfsrepair), just to notice that it can’t do anything on a mounted filesystem… 
# xfs_repair /dev/sda3
xfs_repair: /dev/sda3 contains a mounted filesystem
xfs_repair: /dev/sda3 contains a mounted and writable filesystem
fatal error -- couldn't initialize XFS library
#
So, I need either a live disk with xfsprogs in it to boot from or to physically open and have two, not one, machines interrupted (the machine with issues is not off, it just cannot be used to do some other stuff we need it to do).
Am I wrong or that is my foreaseable future now?
I’ve never had an xfs formatted filesystem, so I can only suppose so. All my PCs are multiboot, so I can always boot something else without hunting bootable removable media.