[osuosl-powerdev] something's wrong with $PATH and ccache at ibmcell.osuosl.org

Marian Such toxygen1 at gmail.com
Mon Aug 4 18:10:44 UTC 2008


Hello,
after trying to run gcc when logged in it hangs. After unsetting  
$PATH and setting it to "normal" it goes ok:

[toxygen at pecan ~]$ gcc
<nothing's hapenning>
^C
[toxygen at pecan ~]$ unset PATH
[toxygen at pecan ~]$ PATH=/usr/bin:/usr/local/bin
[toxygen at pecan ~]$ gcc
gcc: no input files
[toxygen at pecan ~]$

these are last lines from strace gcc when running through default  
symlink in /usr/lib/ccache (as set in default $PATH)

lstat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=231952, ...}) = 0
stat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=231952, ...}) = 0
open("/home/toxygen/.ccache/stats", O_RDWR) = 4
fcntl64(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}

and here it hangs.

lock is obtained as can be seen here:
[toxygen at pecan ccache]$ /usr/sbin/lsof  | grep stats
gcc        4331   toxygen    4u      REG   0,24        0 11681805 / 
home/toxygen/.ccache/stats (hazelnut:/home/toxygen)

so the problem only occurs when gcc is run by symlink /usr/lib/ccache/ 
gcc.
when gcc is called directly by specifying whole path everything works  
ok.

can anyone explain what's happening?

best regards

marian such


More information about the powerdev mailing list