Discussion:
[rt.cpan.org #84588] OSX: incorrect detection of gcc (unsupported option '-static-libgcc') --> Ref #[17Sq4471uf69r2f]
(too old to reply)
password via RT
2013-04-12 06:09:43 UTC
Permalink
Fri Apr 12 02:09:43 2013: Request 84588 was acted upon.
Transaction: Correspondence added by ***@support.juno.com
Queue: PAR-Packer
Subject: Re: [rt.cpan.org #84588] OSX: incorrect detection of gcc (unsupported option '-static-libgcc') --> Ref #[17Sq4471uf69r2f]
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@gmail.com
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >


Hello,

Thank you for contacting Juno.

This is an automated response sent to email messages suspected to be spam by our spam filters. This process will help us filter spam messages and respond to genuine customer concerns quickly.

We apologize if your email is mistakenly identified as spam. Please reply to this message and one of our support agents will get back to you.

Sincerely,

Juno Customer Care
http://mcandre.myopenid.com/ via RT
2013-11-10 05:50:41 UTC
Permalink
Sun Nov 10 00:50:41 2013: Request 84588 was acted upon.
Transaction: Correspondence added by http://mcandre.myopenid.com/
Queue: PAR-Packer
Subject: OSX: incorrect detection of gcc (unsupported option '-static-libgcc')
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@gmail.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >


Not this crap again. These are BUG REPORTS, not spam.
Post by password via RT
Hello,
Thank you for contacting Juno.
This is an automated response sent to email messages suspected to be
spam by our spam filters. This process will help us filter spam
messages and respond to genuine customer concerns quickly.
We apologize if your email is mistakenly identified as spam. Please
reply to this message and one of our support agents will get back to
you.
Sincerely,
Juno Customer Care
Roderich Schupp via RT
2013-12-01 15:16:58 UTC
Permalink
Sun Dec 01 10:16:57 2013: Request 84588 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR-Packer
Subject: OSX: incorrect detection of gcc (unsupported option '-static-libgcc')
Broken in: (no value)
Severity: (no value)
Owner: RSCHUPP
Requestors: ***@gmail.com, ***@szabgab.com, ***@gmail.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >


OSX's clang pretends to be gcc, but fails to implement gcc's option '-static-libgcc' :(
Fortunately this option is probably only needed in Windows (when using the MingW toolchain).

Please try the following patch:

Index: myldr/Makefile.PL
===================================================================
--- myldr/Makefile.PL (revision 1432)
+++ myldr/Makefile.PL (working copy)
@@ -121,7 +121,7 @@
...
}
$mt_cmd = '-$(NOOP)';
- $boot_ldflags = '-static-libgcc ';
+ $boot_ldflags .= '-static-libgcc ' if $^O eq 'MSWin32';
} else {
$out = '-o ';
$ccdebug = '';


Cheers, Roderich
Gabor Szabo via RT
2013-12-01 15:38:32 UTC
Permalink
Sun Dec 01 10:38:32 2013: Request 84588 was acted upon.
Transaction: Correspondence added by ***@szabgab.com
Queue: PAR-Packer
Subject: Re: [rt.cpan.org #84588] OSX: incorrect detection of gcc (unsupported option '-static-libgcc')
Broken in: (no value)
Severity: (no value)
Owner: RSCHUPP
Requestors: ***@gmail.com, ***@szabgab.com, ***@gmail.com
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >


I still get some nasty warnings (below), but the "make test" passes.
thanks
Gabor

$ perl Makefile.PL

Checking if your kit is complete...

Looks good

Prototype mismatch: sub main::prompt: none vs ($;$) at
/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/ExtUtils/MakeMaker.pm
line 220.

Generating a GNU-style Makefile

Writing Makefile for par

Writing MYMETA.yml and MYMETA.json

Generating a GNU-style Makefile

Writing Makefile for PAR::Packer

Writing MYMETA.yml and MYMETA.json

bash-3.2$ make

cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm

cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm

cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm

cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm

cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm

cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm

cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm

cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm

cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm

cp lib/pp.pm blib/lib/pp.pm

Makefile:756: warning: overriding commands for target `.c.o'

Makefile:333: warning: ignoring old commands for target `.c.o'

/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/bin/perl par_pl2c.pl
my_par_pl < ../script/par.pl > my_par_pl.c

/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/bin/perl sha1.c.PL

cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include
-I/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/darwin-2level/CORE
-DPARL_EXE=\"parl\" -O3 main.c

In file included from main.c:52:

In file included from ./mktmpdir.c:1:

In file included from ./mktmpdir.h:84:

In file included from ./utils.c:25:

./env.c:105:27: warning: passing 'unsigned int *' to parameter of type
'int *' converts between pointers to integer types with different sign
[-Wpointer-sign]

if ((c = __findenv(name, &offset))) { /* find if already exists */

^~~~~~~

In file included from main.c:52:

./mktmpdir.c:63:23: warning: using the result of an assignment as a
condition without parentheses [-Wparentheses]

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

~~~~^~~~~~~~~~~~~~~~~

./mktmpdir.c:63:23: note: place parentheses around the assignment to
silence this warning

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

^

( )

./mktmpdir.c:63:23: note: use '==' to turn this assignment into an
equality comparison

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

^

==

./mktmpdir.c:65:29: warning: passing 'const char *' to parameter of
type 'char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]

par_setenv(key, stmpdir);

^~~~~~~

main.c:121:23: warning: assigning to 'char *' from 'const char *'
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

fakeargv[argno++] = my_par_pl;

^ ~~~~~~~~~

4 warnings generated.

env MACOSX_DEPLOYMENT_TARGET=10.3 cc main.o -fstack-protector
-L/usr/local/lib
-L/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/darwin-2level/CORE
-lperl -ldl -lm -lutil -lc -o ./par

true

/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/bin/perl
encode_append.pl Dynamic.in ./par Dynamic.pm

/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/bin/perl ./file2c.pl -c
30000 ./par /Users/gabor/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/darwin-2level/CORE/libperl.a
boot_embedded_files.c
cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include
-I/Users/gabor/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/darwin-2level/CORE
-DPARL_EXE=\"parl\" -O3 boot.c

In file included from boot.c:10:

In file included from ./mktmpdir.c:1:

In file included from ./mktmpdir.h:84:

In file included from ./utils.c:25:

./env.c:105:27: warning: passing 'unsigned int *' to parameter of type
'int *' converts between pointers to integer types with different sign
[-Wpointer-sign]

if ((c = __findenv(name, &offset))) { /* find if already exists */

^~~~~~~

In file included from boot.c:10:

./mktmpdir.c:63:23: warning: using the result of an assignment as a
condition without parentheses [-Wparentheses]

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

~~~~^~~~~~~~~~~~~~~~~

./mktmpdir.c:63:23: note: place parentheses around the assignment to
silence this warning

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

^

( )

./mktmpdir.c:63:23: note: use '==' to turn this assignment into an
equality comparison

for ( i = 0 ; key = ld_path_keys[i]; i++ ) {

^

==

./mktmpdir.c:65:29: warning: passing 'const char *' to parameter of
type 'char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]

par_setenv(key, stmpdir);

^~~~~~~

3 warnings generated.
Roderich Schupp via RT
2013-12-02 09:34:58 UTC
Permalink
Mon Dec 02 04:34:57 2013: Request 84588 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR-Packer
Subject: OSX: incorrect detection of gcc (unsupported option '-static-libgcc')
Broken in: (no value)
Severity: (no value)
Owner: RSCHUPP
Requestors: ***@gmail.com, ***@szabgab.com, ***@gmail.com
Status: patched
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84588 >
Post by Gabor Szabo via RT
I still get some nasty warnings (below), but the "make test" passes.
Thanks for testing.
The only "nasty" thing here is clang's insistence
on treating me like a twelve year old :)

The fix will be in the next release of PAR::Packer (probably tonite).

Cheers, Roderich

Loading...