[distcc] Problem: reuse of ccache files regardless of creating with/without distcc

Heiko_Elger at arburg.com Heiko_Elger at arburg.com
Tue Oct 21 13:19:20 GMT 2003


Hello,

I have the following problem - I want to reuse the cached file regardless they
are created with or without distcc.

I'm using distcc 2.11, Windows XP Professional, latest cygwin version.


I call make with ccache but without distcc - so the cache is full.
Delete the outputs and call again with ccache will - the objects are fetched
from the cache.

Delete the outputs and call again with ccache and distcc - the objects are not
fetched from the cache but recreated.

Comparing the object files - I figured that the debug-information is not the
same - so I assume that native call to the compiler gcc is not the same
regardless of the output to stdout which semme to be the same.

Here is a short test case for reproducing the error using distcc distribution
files 2.11)

The follwing environment are set, cause we need these variables.

set CCACHE_CPP2=1
set CCACHE_DIR=c:/ccache



1.) compile with native gcc compiler
make -B -j10 CC="c:/programme/cygwin/bin/gcc" src/backoff.o & objdump -g
src/backoff.o | head -n5
c:/programme/cygwin/bin/gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src -DSYSCONFDIR="
\"/usr/etc\"" -DPKGD
ATADIR="\"/usr/share/distcc\"" -I./lzo -g -O2 -W -Wall -Wimplicit -Wshadow
-Wpointer-arith -Wcast-al
ign -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -o
src/backoff.o -c src/backoff.c

src/backoff.o:     file format pe-i386

/usr/src/distcc-2.11.1/src/backoff.c:
typedef int32 int;

2.) compile with native gcc compiler using CCACHE
make -B -j10 CC="ccache c:/programme/cygwin/bin/gcc" src/backoff.o & objdump -g
src/backoff.o | head -n5
ccache c:/programme/cygwin/bin/gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src
-DSYSCONFDIR="\"/usr/etc\""
 -DPKGDATADIR="\"/usr/share/distcc\"" -I./lzo -g -O2 -W -Wall -Wimplicit
-Wshadow -Wpointer-arith -W
cast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-exte
rns -o src/backoff.o -c src/backoff.c

src/backoff.o:     file format pe-i386

/usr/src/distcc-2.11.1/src/backoff.c:
typedef int32 int;

3.) compile with native gcc compiler using CCACHE and DISTCC (CCACHE_PREFIX)
make -B -j10 CC="ccache c:/programme/cygwin/bin/gcc" src/backoff.o
CCACHE_PREFIX=distcc & objdump -g src/backoff.o | head -n5
ccache c:/programme/cygwin/bin/gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src
-DSYSCONFDIR="\"/usr/etc\""
 -DPKGDATADIR="\"/usr/share/distcc\"" -I./lzo -g -O2 -W -Wall -Wimplicit
-Wshadow -Wpointer-arith -W
cast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wnested-exte
rns -o src/backoff.o -c src/backoff.c

src/backoff.o:     file format pe-i386

/src/backoff.c:
typedef int32 int;



As you see the output of the debug information (I think it's the path of the
source) is not the same!

I'm not sure what's going wrong.

Can you please help me ....
Any hints are welcome ...



best regards

   Heiko Elger



********************

ARBURG GmbH + Co
Heiko Elger
- Softwareentwicklung - / - Research and Development -
Arthur-Hehl-Strasse
D-72290 Lossburg
Tel.: +49 (0) 7446 33-3659
Fax.: +49 (0) 7446 33-3365
mailto:heiko_elgerNOSPAM at arburg.com
http://www.arburg.com

Bitte entfernen Sie "NOSPAM" von der  Email-Adresse
Please remove "NOSPAM" from the email address







More information about the distcc mailing list