On Tue, Apr 29, 2008 at 11:19 AM, Glen W. Mabey <Glen.Mabey@swri.org> wrote:
On Tue, Apr 29, 2008 at 11:24:56AM -0500, Charles R Harris wrote:
> Hmm, something must be mucking with the sources. You can run conv_template on the pure file from the src directory with
>
>  python ../../distutils/conv_template.py scalartypes.inc.src
>
> However, when called from within python the routine also processes the include files and I suspect that may be the problem. Try going into distutils/conv_template and find the line
>
> include_src_re = re.compile(r"(\n|\A)#include\s*['\"]"
>                             r"(?P<name>[\w\d./\\]+[.]src)['\"]", re.I)
>
>
> and replace it with
>
> include_src_re = re.compile(r"(\n|\A)\s*#include\s*['\"]"
>                             r"(?P<name>[\w\d./\\]+[.]src)['\"]", re.I)
>
> Which should knock off any whitespace before #include. This is not a fix, but it might help us find the problem.

Humm.  I couldn't see any difference in the behavior.  Is there
something that I should be looking for?

Not really, it was just a shot in the dark. The thing is, if conv_python is being run on the same source each time, it should give the same result. So I suspect that something is changing the sources and that is what I'm trying to track down. One of the build guys should know...

Hmmm..., I notice that there is a line break in line 18 of scalartypes.inc.src that doesn't belong there. Could you fix that?

And the line number of the loop is 497, which is the loop before the one with PREFIX defined. For some reason the parser is missing the  /**end repeat**/ on line 509. Hmmm, try putting a blank line before it.

Just fishing here... Why that should happen with icc and not with gnu is a mystery.

Chuck