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

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

Thread Next
From:
James E Keenan via RT
Date:
May 16, 2018 14:30
Subject:
[perl #133203] g++ 7.3 won't compile perl
Message ID:
rt-4.0.24-2035-1526481047-271.133203-15-0@perl.org
On Wed, 16 May 2018 00:12:20 GMT, public@khwilliamson.com 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
> ‘PERL_ARGS_ASSERT_AV_TOP_INDEX’
>               PERL_ARGS_ASSERT_AV_TOP_INDEX;
>               ^
>           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:' gpp.7.3.build.log.txt.gz | 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 (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133203

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About