Ubuntu 10.04 – GCC and CIFS errors
When attempting to use GCC with an include path that references a Samba share, gcc reports the following type of error:
cc1: error: /mnt/. . . samba share . . ./include: Value too large for defined data type
Apparently, GCC and some other applications can’t handle really larger inode numbers presented by the server. The workaround is to have the local system use its own temporary inode numbers on the share.
The workaround is to mount the samba share in your /etc/fstab using the nounix,noserverino mount options.
Example (all one line):
//Server/Share /mnt/sambashare cifs username=me,domain=thedomain,
nounix,noserverino,nocase,noperm,file_mode=0777,dir_mode=0777,
noauto 0 0
References:
- https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/455122
- http://ubuntuforums.org/showthread.php?t=1312192
- http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html
Categories: Linux
Thanks! Was fighting with this problem for a few days.
thanks very much.
This solved an issue with firefly not seeing the large inode numbers on a cifs share.
No matter what I tried I couldn’t get it to see the songs, but I just didn’t try using nounix WITH noserverino, duh!
It now sees the songs, but I still have a slight issue as the java fireflyclient just deletes the songs from the list as it tries toplay them. hey ho! I’m getting there
thanks.