Warnings about perl when compiling current HEAD

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Warnings about perl when compiling current HEAD
Дата
Msg-id Y2zIC6rM2cgvfxGw@depesz.com
обсуждение исходный текст
Ответы Re: Warnings about perl when compiling current HEAD
Список pgsql-bugs
Hi,
I'm rebuilding my test Pg like weekly, maybe a bit less, and my process
looks like:

export PYTHON="$( which python3 )"
./configure \
    --quiet \
    --prefix=/home/pgdba/work \
    --enable-debug \
    --with-pgport=5430 \
    --with-tcl \
    --with-perl \
    --with-python \
    --enable-integer-datetimes \
    --without-pam \
    --without-bonjour \
    --with-openssl \
    --with-uuid=ossp \
    --with-readline \
    --with-libxml \
    --with-systemd \
    --with-zlib \
    --with-lz4 \
    --with-llvm \
    --with-gnu-ld \
    --enable-debug --enable-depend --enable-cassert
jobs_count="$( nproc )"
time make -s -j "${jobs_count}"
time make -s -j "${jobs_count}" install
cd contrib
time make -s -j "${jobs_count}"
time make -s -j "${jobs_count}" install

Normally the process is silent, but today I got bunch of warnings. These
are from `make` in top directory, but building contrib generates
warnings too.

Given that it's all about perl and llvm, not sure what has changed to
cause this.

Versions of things that I though are relevant:
=$ dpkg -l  | awk '$1=="ii" && $2 ~ /perl|llvm|gcc/' | grep -vP '^ii\s+lib\S+-perl(:amd64)?\s'
ii  gcc                                           4:12.2.0-1                        amd64        GNU C compiler
ii  gcc-10-base:amd64                             10.4.0-5                          amd64        GCC, the GNU Compiler
Collection(base package)
 
ii  gcc-12                                        12.2.0-9                          amd64        GNU C compiler
ii  gcc-12-base:amd64                             12.2.0-9                          amd64        GCC, the GNU Compiler
Collection(base package)
 
ii  gcc-9-base:amd64                              9.3.0-22                          amd64        GCC, the GNU Compiler
Collection(base package)
 
ii  lib32gcc-s1                                   12.2.0-9                          amd64        GCC support library
(32bit Version)
 
ii  libgcc-12-dev:amd64                           12.2.0-9                          amd64        GCC support library
(developmentfiles)
 
ii  libgcc-s1:amd64                               12.2.0-9                          amd64        GCC support library
ii  libllvm14:amd64                               1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies, runtime library
 
ii  libperl-dev:amd64                             5.36.0-4                          amd64        Perl library:
developmentfiles
 
ii  libperl5.36:amd64                             5.36.0-4                          amd64        shared Perl library
ii  libuno-cppuhelpergcc3-3                       1:7.4.2-2                         amd64        LibreOffice UNO
runtimeenvironment -- CPPU helper library
 
ii  libuno-purpenvhelpergcc3-3                    1:7.4.2-2                         amd64        LibreOffice UNO
runtimeenvironment -- "purpose environment" helper
 
ii  libuno-salhelpergcc3-3                        1:7.4.2-2                         amd64        LibreOffice UNO
runtimeenvironment -- SAL helpers for C++ library
 
ii  llvm                                          1:14.0-55.2+b1                    amd64        Low-Level Virtual
Machine(LLVM)
 
ii  llvm-14                                       1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies
 
ii  llvm-14-dev                                   1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies, libraries and headers
 
ii  llvm-14-linker-tools                          1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies - Plugins
 
ii  llvm-14-runtime                               1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies, IR interpreter
 
ii  llvm-14-tools                                 1:14.0.6-2                        amd64        Modular compiler and
toolchaintechnologies, tools
 
ii  llvm-runtime:amd64                            1:14.0-55.2+b1                    amd64        Low-Level Virtual
Machine(LLVM), bytecode interpreter
 
ii  perl                                          5.36.0-4                          amd64        Larry Wall's Practical
Extractionand Report Language
 
ii  perl-base                                     5.36.0-4                          amd64        minimal Perl system
ii  perl-doc                                      5.36.0-4                          all          Perl documentation
ii  perl-modules-5.36                             5.36.0-4                          all          Core Perl modules
ii  perl-openssl-defaults:amd64                   7+b1                              amd64        version compatibility
baselinefor Perl OpenSSL packages
 
ii  perl-tk                                       1:804.036-1+b1                    amd64        Perl module providing
theTk graphics library
 

warning log from make:

In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:7242,
                 from plperl.h:82,
                 from SPI.xs:15:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h: In function ‘Perl_cop_file_avn’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h:3489:5: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
 3489 |     const char *file = CopFILE(cop);
      |     ^~~~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:4155:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h: In function ‘Perl_newSV_type’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: warning: declaration of ‘p_’ shadows a previous local
[-Wshadow=compatible-local]
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
  107 | #define MUTABLE_SV(p)   ((SV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:346:59: note: in expansion of macro ‘MUTABLE_SV’
  346 | #define SvREFCNT_inc(sv)                Perl_SvREFCNT_inc(MUTABLE_SV(sv))
      |                                                           ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:40: note: in expansion of macro ‘SvREFCNT_inc’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                                        ^~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: note: shadowed declaration is here
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:7242,
                 from plperl.h:82,
                 from Util.xs:22:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h: In function ‘Perl_cop_file_avn’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h:3489:5: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
 3489 |     const char *file = CopFILE(cop);
      |     ^~~~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:4155:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h: In function ‘Perl_newSV_type’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: warning: declaration of ‘p_’ shadows a previous local
[-Wshadow=compatible-local]
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
  107 | #define MUTABLE_SV(p)   ((SV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:346:59: note: in expansion of macro ‘MUTABLE_SV’
  346 | #define SvREFCNT_inc(sv)                Perl_SvREFCNT_inc(MUTABLE_SV(sv))
      |                                                           ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:40: note: in expansion of macro ‘SvREFCNT_inc’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                                        ^~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: note: shadowed declaration is here
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:7242,
                 from plperl.h:82,
                 from plperl.c:48:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h: In function ‘Perl_cop_file_avn’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/inline.h:3489:5: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
 3489 |     const char *file = CopFILE(cop);
      |     ^~~~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.36/CORE/perl.h:4155:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h: In function ‘Perl_newSV_type’:
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: warning: declaration of ‘p_’ shadows a previous local
[-Wshadow=compatible-local]
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:107:32: note: in expansion of macro ‘MUTABLE_PTR’
  107 | #define MUTABLE_SV(p)   ((SV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:346:59: note: in expansion of macro ‘MUTABLE_SV’
  346 | #define SvREFCNT_inc(sv)                Perl_SvREFCNT_inc(MUTABLE_SV(sv))
      |                                                           ^~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:40: note: in expansion of macro ‘SvREFCNT_inc’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                                        ^~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:97:35: note: shadowed declaration is here
   97 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |                                   ^~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv.h:1394:54: note: in definition of macro ‘SvSTASH_set’
 1394 |                 (((XPVMG*)  SvANY(sv))->xmg_stash = (val)); } STMT_END
      |                                                      ^~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/handy.h:105:32: note: in expansion of macro ‘MUTABLE_PTR’
  105 | #define MUTABLE_HV(p)   ((HV *)MUTABLE_PTR(p))
      |                                ^~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.36/CORE/sv_inline.h:487:29: note: in expansion of macro ‘MUTABLE_HV’
  487 |             SvSTASH_set(io, MUTABLE_HV(SvREFCNT_inc(GvHV(iogv))));
      |                             ^~~~~~~~~~
In file included from /usr/lib/llvm-14/include/llvm/Analysis/ModuleSummaryAnalysis.h:17,
                 from llvmjit_inline.cpp:51:
/usr/lib/llvm-14/include/llvm/IR/ModuleSummaryIndex.h: In constructor
‘llvm::ModuleSummaryIndex::ModuleSummaryIndex(bool,bool)’:
 
/usr/lib/llvm-14/include/llvm/IR/ModuleSummaryIndex.h:1175:73: warning: member ‘llvm::ModuleSummaryIndex::Alloc’ is
useduninitialized [-Wuninitialized]
 
 1175 |       : HaveGVs(HaveGVs), EnableSplitLTOUnit(EnableSplitLTOUnit), Saver(Alloc),
      |                                                                         ^~~~~

Best regards,

depesz




В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Daisuke Higuchi (Fujitsu)"
Дата:
Сообщение: RE: BUG #17681: Building the REL_12_13 source in Visual Studio 2013 fails.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17681: Building the REL_12_13 source in Visual Studio 2013 fails.