Patrick Fischer wrote:
Hello, this is my first post on this list, so please be indulgent with me.

I know the problematic nature of different gcc Versions.
I have ~15 PCs with Debian, most Sarge but some Etch.
So some people have gcc-3.3 an some gcc-4.x
I think about a wrapper skript which translate a call of gcc to the real gcc-{Version} and
gcc-{Version} will point to distcc.

So distcc will only use the same gcc Version then my Host.


ls /../distcc/bin/
gcc -> gcc-wrapper
gcc-3.3 -> distcc
gcc-wrapper

gcc-wrapper  analyse the gcc Version an will call gcc-3.3 or gcc-4.0,....

In my case gcc-3.3 and gcc-3.3 are the same, because both are from debian sarge.

My question is now: Is there any problem by doing this?
My current solution is:

/tool/distcc/bin$ ls -l
total 8
lrwxrwxrwx  1 pf src  11 Oct 17 13:32 g++ -> g++-wrapper
lrwxrwxrwx  1 pf src  15 Oct 17 10:39 g++-3.3 -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 17 10:39 g++-4.0 -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 17 10:39 g++-4.1 -> /usr/bin/distcc
-rwxr-xr-x  1 pf src  76 Oct 17 10:38 g++-wrapper
lrwxrwxrwx  1 pf src  11 Oct 17 13:32 gcc -> gcc-wrapper
lrwxrwxrwx  1 pf src  15 Oct 17 10:35 gcc-3.3 -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 17 10:35 gcc-4.0 -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 17 10:35 gcc-4.1 -> /usr/bin/distcc
-rwxr-xr-x  1 pf src 133 Oct 17 11:22 gcc-wrapper
lrwxrwxrwx  1 pf src  15 Oct 12 12:06 mipsel-linux-c++ -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 12 12:06 mipsel-linux-cc -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 12 12:06 mipsel-linux-g++ -> /usr/bin/distcc
lrwxrwxrwx  1 pf src  15 Oct 17 13:30 mipsel-linux-gcc -> /usr/bin/distcc
pf@/tool/distcc/bin$ cat gcc-wrapper
#!/bin/bash

REALGCC=`ls -l /usr/bin/gcc | cut -d " " -f 13`

echo $REALGCC $@
$REALGCC $@
exit $?



In some cases it seems to work, but autoconf sometimes don't like it.
But it needs some improvements!!

Best Regards
Patrick
__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc

Reply via email to