<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
having problem with gcce compiler from CSL Arm Toolchain using distcc,
command arguments parsing problem, description bellow...<br>
<br>
<h3>According to distcc FAQ:<br>
</h3>
<blockquote>
  <h3><small>Compiler command line parsing problems?</small></h3>
  <p><small> distcc parses the compiler command line to work out what
operation is being invoked, and what are the input and output files.
The semantics of <tt>gcc</tt> command lines is fairly complex, and has
changed slightly over time. There may be some valid command lines that
distcc understands differently to gcc, though none are known at the
moment. These ought to cause the command to be run locally, but it is
possible that it would cause a failure. Either case should be reported
as a bug. </small></p>
</blockquote>
Using:<br>
- Cygwin<br>
- <tt>distcc 2.18.3 i686-pc-cygwin (protocols 1 and 2) (default port
3632)<br>
  built Apr 25 2005 11:10:45<br>
  Copyright (C) 2002, 2003, 2004 by Martin Pool.<br>
  Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes
Oberhumer.</tt><br>
As I see there is no newer version for cygwin, and on
<a class="moz-txt-link-freetext" href="http://distcc.samba.org/download.html">http://distcc.samba.org/download.html</a> the same is available as source<br>
<br>
Using: CSL Arm Toolchain with gcce compiler for ARM, building binaries
for Symbian OS<br>
<tt>arm-none-symbianelf-g++.exe (GCC) 3.4.3 (release) (CodeSourcery ARM
Q1C 2005)<br>
Copyright (C) 2004 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is
NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.<br>
</tt><br>
<b>Problem 1:</b><br>
This compiler has option to tell which compiler to use, c or cpp,
option is:<br>
  -x &lt;language&gt;            Specify the language of the following
input files<br>
                           Permissible languages include: c c++
assembler none<br>
                           'none' means revert to the default behavior
of<br>
                           guessing the language based on the file's
extension<br>
If I pass -x c to <br>
<tt>  distcc.exe arm-none-symbianelf-g++.exe ... <b>-x c</b> ...<br>
I get<br>
arm-none-symbianelf-g++.exe: warning: `-x c' after last input file has
no effect<br>
arm-none-symbianelf-g++.exe: no input files<br>
</tt><br>
With <b>-x c++</b> there is no warning, but I am not sure if it handle
that.<br>
<br>
<b>Problem 2:</b><br>
There is compiler flag <b>-nostdinc</b> which does not cause problems
to distcc.exe calling preprocessor, but this option is not passed to
distccd server. It seems that distcc.exe does not recognize it, so it
ignores this.<br>
<br>
Best regards<br>
Thanks,<br>
 Tihomir Heidelberg<br>
<br>
<br>
</body>
</html>