cmake error while running on a mounted directory-Collection of common programming errors

According to this link, the error Value too large for defined data type has to do with gcc executing stat() on Samba-mounted file systems. The inode returned is apparently rather large for those file systems.

The solution is to ensure your mount command has nounix,noserverino in the options column (in /etc/fstab or equivalent).

See the mount.cifs man page for further details.

Originally posted 2013-11-09 23:20:42.