gcc chokes under Karmic's smbfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Bug Description
I'm guessing that this is a gcc problem (both gcc-4.3 and gcc-4.4) that's exposed by the latest samba/cifs code in Karmic, but maybe this is a samba problem, or maybe something else.
I can't seem to run gcc in a samba-mounted directory under Karmic (up to date as of 2009-10-18), but this was okay in 9.04 Ubuntu....
rsm@hina:/c/Temp/y$ mount | grep cifs
//1USL13385/C on /c type cifs (rw,mand)
rsm@hina:/c/Temp/y$ cat grape.c
int main() { return 0; }
rsm@hina:/c/Temp/y$ gcc grape.c
cc1: error: grape.c: Value too large for defined data type
rsm@hina:/c/Temp/y$
The problem seems to happen in cc1. I tried this with strace in
- Karmic, local mount
- Karmic, cifs mount
- 9.04, cifs mount
and the only obvious difference I notice is the huge inode number in the Karmic/cifs combination...
# on local mount...
19665 open("grape.c", O_RDONLY|O_NOCTTY) = 3
19665 fstat64(3, {st_dev=makedev(8, 1), st_ino=15333, st_mode=
19665 read(3, "int main() { return 0; }\n", 25) = 25
19665 close(3) = 0
# on cifs mount...
19656 open("grape.c", O_RDONLY|O_NOCTTY) = 3
19656 fstat64(3, {st_dev=makedev(0, 23), st_ino=
19656 close(3) = 0
# on cifs mount under ubuntu 9.04 ...
27026 open("grape.c", O_RDONLY|O_NOCTTY) = 3
27026 fstat64(3, {st_dev=makedev(0, 25), st_ino=167150, st_mode=
27026 read(3, "int main() { return 0; }\n"..., 25) = 25
27026 close(3)
workaround, from <http://
When mounting the share add ,nounix,noserverino to the options, ie:
mount -t cifs -o user=me,
tags: | added: gcc samba |
Changed in gcc-defaults (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
My smbfs dependencies....
SourcePackage: samba ture: i386 gettext- perl 1.05-4build1 2ubuntu2 dfsg1-1ubuntu3 dfsg1-1ubuntu3 charwidth- perl 0.04-5build1 iconv-perl 1.7-1build1 wrapi18n- perl 0.06-7 2ubuntu2 3.dfsg- 13ubuntu3 ature: Ubuntu 2.6.31- 14.48-generic
Package: smbfs 2:3.4.0-3ubuntu5
PackageArchitec
ProblemType: Bug
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
Uname: Linux 2.6.31-14-generic i686
Dependencies:
coreutils 7.4-2ubuntu1
debconf 1.5.27ubuntu2
debconf-i18n 1.5.27ubuntu2
dpkg 1.15.4ubuntu2
findutils 4.4.2-1
gcc-4.4-base 4.4.1-4ubuntu8
libacl1 2.2.47-2
libattr1 1:2.4.43-3
libc-bin 2.10.1-0ubuntu15
libc6 2.10.1-0ubuntu15
libcap2 1:2.16-5ubuntu1
libcomerr2 1.41.9-1ubuntu2
libdb4.7 4.7.25-7ubuntu2
libgcc1 1:4.4.1-4ubuntu8
libgcrypt11 1.4.4-2ubuntu2
libgnutls26 2.8.3-2
libgpg-error0 1.6-1ubuntu1
libgssapi-krb5-2 1.7dfsg~beta3-1
libk5crypto3 1.7dfsg~beta3-1
libkeyutils1 1.2-10
libkrb5-3 1.7dfsg~beta3-1
libkrb5support0 1.7dfsg~beta3-1
libldap-2.4-2 2.4.18-0ubuntu1
liblocale-
libncurses5 5.7+20090803-
libsasl2-2 2.1.23.
libsasl2-modules 2.1.23.
libselinux1 2.0.85-2ubuntu1
libssl0.9.8 0.9.8g-16ubuntu3
libstdc++6 4.4.1-4ubuntu8
libtalloc1 1.4.0~git20090718-1
libtasn1-3 2.2-1
libtext-
libtext-
libtext-
libwbclient0 2:3.4.0-3ubuntu5
lsb-base 4.0-0ubuntu5
lzma 4.43-14ubuntu1
ncurses-bin 5.7+20090803-
netbase 4.35ubuntu2
perl-base 5.10.0-24ubuntu4
samba-common 2:3.4.0-3ubuntu5
sed 4.2.1-1
tzdata 2009n-2
ucf 3.0018ubuntu1
zlib1g 1:1.2.3.
Architecture: i386
Date: Sun Oct 18 23:36:39 2009
ProcVersionSign
DistroRelease: Ubuntu 9.10