develooper Front page | perl.perl5.porters | Postings from May 2018

[perl #133203] g++ 7.3 won't compile perl

Thread Next
James E Keenan via RT
May 16, 2018 14:30
[perl #133203] g++ 7.3 won't compile perl
Message ID:
On Wed, 16 May 2018 00:12:20 GMT, wrote:
> This is a bug report for perl from khw@khw-xps-8930.(none),
> generated with the help of perlbug 1.41 running under perl 5.28.0.
> -----------------------------------------------------------------
> inline.h:20:5: note: in expansion of macro
>               ^
>           inline.h: In function ‘STRLEN
> S_sv_or_pv_pos_u2b(PerlInterpreter*,
> SV*, const c har*, STRLEN, STRLEN*)’:
>          *proto.h:4565:2: error: invalid static_cast from type ‘SV*
> {aka sv*}’
> to type ‘c*har’
>            assert(sv); assert(pv)
> If I redefine assert() to get past this, it fails later with things
> like
> sv.h:334:24: error: expression cannot be used as a function
> #define SvFLAGS(sv) (sv)->sv_flags
> Since it continues to compile with gcc 7.3, this is not a 5.28
> blocker.

I can build blead on FreeBSD-11.1 using g++ 7.3.0.  'make test_harness' PASSes.  I get some warnings during 'make test_prep', but most of those are from cpan-upstream modules.   The warnings I get from blead-upstream code appear to be limited to the following:

$ zgrep  'warning:' | head -4
op.c:5469:34: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
sv.c:11813:1: warning: '%.*g' directive writing between 1 and 133 bytes into a region of size 127 [-Wformat-overflow=]
perl.h:6728:34: warning: option '-Wc++-compat' is valid for C/ObjC but not for C++ [-Wpragmas]
op.c:5469:34: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]

perl -V output attached. Thank you very much.
James E Keenan (

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About