You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Marvin Humphrey (JIRA)" <ji...@apache.org> on 2014/09/04 00:06:51 UTC

[lucy-issues] [jira] [Created] (CLOWNFISH-3) Charmonizer bombs out trying to set warnings as errors with Strawberry Perl

Marvin Humphrey created CLOWNFISH-3:
---------------------------------------

             Summary: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl
                 Key: CLOWNFISH-3
                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-3
             Project: Apache Lucy-Clownfish
          Issue Type: Bug
         Environment: Strawberry Perl (Windows)
            Reporter: Marvin Humphrey


Some CPAN testers runs for CFC abort because Charmonizer dies in `chaz_CFlags_set_warnings_as_errors`:

http://www.cpantesters.org/cpan/report/b260fc88-6bf3-1014-ba8d-dc39c8a2b2b0
http://www.cpantesters.org/cpan/report/96afb5dd-6bf4-1014-9814-d0fa468acc79
http://www.cpantesters.org/cpan/report/2e9cfbe4-7f82-1014-9bf4-d1052b825c07




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [lucy-dev] Re: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Thu, Sep 4, 2014 at 5:09 AM, Nick Wellnhofer <we...@aevum.de> wrote:
> On 04/09/2014 01:06, Marvin Humphrey wrote:
>>
>> Got any ideas?  At least it seems to be reproducible on those systems, but
>> between you and me we've made Strawberry Perl work fine in three different
>> Windows environments.
>
> I have no idea. It seems to affect multiple Strawberry Perl versions and at
> least Windows XP and Windows Server 2008. I just tried to reproduce the
> problem on XP but everything built and tested fine.

Maybe we can contact one of the affected testers (CHORNY, DSOLIMANO on
CPAN) and get them to run a custom tarball for us.

I'm thinking create a bare CPAN-style project on Github which
basically does nothing except compile and run charmonize.c, which we
would modify to dial debugging verbosity up to 11 in the relevant
sections.  The tester could then get a tarball via a URL similar to
<https://github.com/apache/lucy-clownfish/archive/master.tar.gz>.

Marvin Humphrey

Re: [lucy-dev] Re: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl

Posted by Nick Wellnhofer <we...@aevum.de>.
On 04/09/2014 01:06, Marvin Humphrey wrote:
> Got any ideas?  At least it seems to be reproducible on those systems, but
> between you and me we've made Strawberry Perl work fine in three different
> Windows environments.

I have no idea. It seems to affect multiple Strawberry Perl versions and at 
least Windows XP and Windows Server 2008. I just tried to reproduce the 
problem on XP but everything built and tested fine.

Nick


Re: [lucy-dev] Re: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Wed, Sep 3, 2014 at 3:24 PM, Nick Wellnhofer <we...@aevum.de> wrote:
> It seems that chaz_CC.cflags_style doesn’t get set to CHAZ_CFLAGS_STYLE_GNU
> which would mean that chaz_CC_detect_known_compilers doesn’t work like
> should.

I don't see anything obviously wrong with `chaz_CC_detect_known_compilers`.
And the probes got plenty far along so most stuff was working.

Got any ideas?  At least it seems to be reproducible on those systems, but
between you and me we've made Strawberry Perl work fine in three different
Windows environments.

> Then there are a couple of failures on OS X:
>
>     http://www.cpantesters.org/cpan/report/4f843ef2-3378-11e4-9edc-fa674cc0d69e
>     http://www.cpantesters.org/cpan/report/aac1c602-3361-11e4-9c8b-efd94cc0d69e
>
> Here the reason is easy to spot. $Config{cc} contains leading whitespace:
>
>     cc=' cc’
>     cc=' clang’

Sheesh.

I'll open a ticket.  Accounting for that is straightforward enough -- just
strip leading (and trailing) whitespace from the compiler command in
chaz_CC_init.

Marvin Humphrey

[lucy-dev] Re: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl

Posted by Nick Wellnhofer <we...@aevum.de>.
On Sep 4, 2014, at 00:06 , Marvin Humphrey (JIRA) <ji...@apache.org> wrote:

> Marvin Humphrey created CLOWNFISH-3:
> ---------------------------------------
> 
>             Summary: Charmonizer bombs out trying to set warnings as errors with Strawberry Perl
>                 Key: CLOWNFISH-3
>                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-3
>             Project: Apache Lucy-Clownfish
>          Issue Type: Bug
>         Environment: Strawberry Perl (Windows)
>            Reporter: Marvin Humphrey
> 
> 
> Some CPAN testers runs for CFC abort because Charmonizer dies in `chaz_CFlags_set_warnings_as_errors`:
> 
> http://www.cpantesters.org/cpan/report/b260fc88-6bf3-1014-ba8d-dc39c8a2b2b0
> http://www.cpantesters.org/cpan/report/96afb5dd-6bf4-1014-9814-d0fa468acc79
> http://www.cpantesters.org/cpan/report/2e9cfbe4-7f82-1014-9bf4-d1052b825c07

Strange, the error message is:

    Don't know how to set warnings as errors with ‘gcc'

It seems that chaz_CC.cflags_style doesn’t get set to CHAZ_CFLAGS_STYLE_GNU which would mean that chaz_CC_detect_known_compilers doesn’t work like should.

Then there are a couple of failures on OS X:

    http://www.cpantesters.org/cpan/report/4f843ef2-3378-11e4-9edc-fa674cc0d69e
    http://www.cpantesters.org/cpan/report/aac1c602-3361-11e4-9c8b-efd94cc0d69e

Here the reason is easy to spot. $Config{cc} contains leading whitespace:

    cc=' cc’
    cc=' clang’

Nick