Home > Linux > Ubuntu 10.04 – GCC and CIFS errors

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:

Categories: Linux
  1. Satyajeet Hoskote
    June 16, 2011 at 8:19 pm | #1

    Thanks! Was fighting with this problem for a few days.

  2. David
    April 19, 2012 at 5:53 pm | #2

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.