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

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

Thread Previous | Thread Next
From:
karl williamson
Date:
May 16, 2018 00:12
Subject:
[perl #133203] g++ 7.3 won't compile perl
Message ID:
rt-4.0.24-18749-1526429540-1698.133203-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #133203]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133203 >



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.
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=medium
---
Site configuration information for perl 5.28.0:

Configured by khw at Tue May 15 16:11:21 MDT 2018.

Summary of my perl5 (revision 5 version 28 subversion 0) configuration:
   Commit id: 64a9c780950becebc7326a31d067801ec9b187a2
   Platform:
     osname=linux
     osvers=4.15.0-20-generic
     archname=x86_64-linux-thread-multi-ld
     uname='linux khw-xps-8930 4.15.0-20-generic #21-ubuntu smp tue apr 
24 06:16:15 utc 2018 x86_64 x86_64 x86_64 gnulinux '
     config_args='-des -Dprefix=/home/khw/fastbleadperl -Dusedevel 
-Accflags='-Wno-deprecated' -Dman1dir=none -Dman3dir=none -Dcc=gcc 
-Dusemorebits -Dusecbacktrace -Dusethreads'
     hint=recommended
     useposix=true
     d_sigaction=define
     useithreads=define
     usemultiplicity=define
     use64bitint=define
     use64bitall=define
     uselongdouble=define
     usemymalloc=n
     default_inc_excludes_dot=define
     bincompat5005=undef
   Compiler:
     cc='gcc'
     ccflags ='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv 
-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include 
-DUSE_C_BACKTRACE -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
     optimize='-O2'
     cppflags='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv 
-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
     ccversion=''
     gccversion='7.3.0'
     gccosandvers=''
     intsize=4
     longsize=8
     ptrsize=8
     doublesize=8
     byteorder=12345678
     doublekind=3
     d_longlong=define
     longlongsize=8
     d_longdbl=define
     longdblsize=16
     longdblkind=3
     ivtype='long'
     ivsize=8
     nvtype='long double'
     nvsize=16
     Off_t='off_t'
     lseeksize=8
     alignbytes=16
     prototype=define
   Linker and Libraries:
     ld='gcc'
     ldflags =' -fstack-protector-strong -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed 
/usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib 
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
     libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
     perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
     libc=libc-2.27.so
     so=so
     useshrplib=false
     libperl=libperl.a
     gnulibc_version='2.27'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs
     dlext=so
     d_dlsymun=undef
     ccdlflags='-Wl,-E'
     cccdlflags='-fPIC'
     lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


---
@INC for perl 5.28.0:
     lib
 
/home/khw/fastbleadperl/lib/site_perl/5.28.0/x86_64-linux-thread-multi-ld
     /home/khw/fastbleadperl/lib/site_perl/5.28.0
     /home/khw/fastbleadperl/lib/5.28.0/x86_64-linux-thread-multi-ld
     /home/khw/fastbleadperl/lib/5.28.0
     /home/khw/fastbleadperl/lib/site_perl

---
Environment for perl 5.28.0:
     HOME=/home/khw
     LANG=en_US.UTF-8
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
 
PATH=/home/khw/bin:/home/khw/perl5/perlbrew/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/snap/bin:/home/khw/iands/www:/home/khw/cxoffice/bin
     PERL5OPT=-w
     PERL_BADLANG (unset)
     PERL_DIFF_TOOL=wgdiff
     PERL_POD_PEDANTIC=1
     SHELL=/bin/ksh


Thread Previous | 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