[
https://issues.apache.org/jira/browse/LUCY-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437339#comment-13437339
]
Nick Wellnhofer commented on LUCY-245:
--------------------------------------
If you haver a closer look at the output of the "3.4.5 (mingw-vista special
r3)" test, you'll notice that TestDirManip.c compiles fine just before the
error in TestFuncMacro.c. It also includes charmony.h, so why doesn't it fail
with the same error? The reason might be that TestDirManip.c (and also the
charmonizer probes via _charm.h) include stdio.h before charmony.h. This
shouldn't affect the availability of "long long", though.
I guess that all this has nothing to do with 64-bit integers. I have seen
spurious errors with repeated and fast creation and deletion of files with the
same name on Windows before. I remember fixing a very similar problem by
switching to random file names. IIRC, the DeleteFile call exited succesfully
but recreating the file immediately could sometimes fail.
This could make probes fail randomly and produce all kinds of weird results. In
the "3.4.5 (mingw-vista special r3)" case, the "long long" probe could have
failed randomly, then the "__int64" probe could have succeeded, because __int64
might be pulled in by stdio.h on MingW. Then compiling TestFuncMacro.c would
fail, because it doesn't include stdio.h before charmony.h.
> Charmonizer fails to detect syntax for 64-bit integer literals
> --------------------------------------------------------------
>
> Key: LUCY-245
> URL: https://issues.apache.org/jira/browse/LUCY-245
> Project: Lucy
> Issue Type: Bug
> Components: Charmonizer
> Affects Versions: 0.3.0 (incubating), 0.3.2
> Reporter: Marvin Humphrey
> Priority: Minor
> Attachments: 0001-LUCY-245-Simplify-i64-literal-detection.patch
>
>
> On some Windows systems running Strawberry Perl and GCC 4.4.3,
> Charmonizer fails to find the syntax for 64-bit integer literals.
> [http://cpantesters.org/cpan/report/69b25746-6cfa-1014-850b-e0170163837e]
> [http://cpantesters.org/cpan/report/d4d48c84-6cef-1014-bdbd-2502895448ee]
> [http://cpantesters.org/cpan/report/ffcaade6-6cc9-1014-8d81-4edd8ede4cb4]
> In addition, we have received one failure report where Charmonizer could
> not detect any 64-bit integer type at all with GCC
> "3.4.5 (mingw-vista special r3)".
> [http://cpantesters.org/cpan/report/3006586a-6ed6-1014-9e5f-68193373d4b5]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira