pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Warnings about perl when compiling current HEAD
3+ messages / 2 participants
[nested] [flat]

* Warnings about perl when compiling current HEAD
@ 2022-11-10 09:44 hubert depesz lubaczewski <depesz@depesz.com>
  2022-11-10 15:47 ` Re: Warnings about perl when compiling current HEAD Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: hubert depesz lubaczewski @ 2022-11-10 09:44 UTC (permalink / raw)
  To: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

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 (32 bit Version)
ii  libgcc-12-dev:amd64                           12.2.0-9                          amd64        GCC support library (development files)
ii  libgcc-s1:amd64                               12.2.0-9                          amd64        GCC support library
ii  libllvm14:amd64                               1:14.0.6-2                        amd64        Modular compiler and toolchain technologies, runtime library
ii  libperl-dev:amd64                             5.36.0-4                          amd64        Perl library: development files
ii  libperl5.36:amd64                             5.36.0-4                          amd64        shared Perl library
ii  libuno-cppuhelpergcc3-3                       1:7.4.2-2                         amd64        LibreOffice UNO runtime environment -- CPPU helper library
ii  libuno-purpenvhelpergcc3-3                    1:7.4.2-2                         amd64        LibreOffice UNO runtime environment -- "purpose environment" helper
ii  libuno-salhelpergcc3-3                        1:7.4.2-2                         amd64        LibreOffice UNO runtime environment -- 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 toolchain technologies
ii  llvm-14-dev                                   1:14.0.6-2                        amd64        Modular compiler and toolchain technologies, libraries and headers
ii  llvm-14-linker-tools                          1:14.0.6-2                        amd64        Modular compiler and toolchain technologies - Plugins
ii  llvm-14-runtime                               1:14.0.6-2                        amd64        Modular compiler and toolchain technologies, IR interpreter
ii  llvm-14-tools                                 1:14.0.6-2                        amd64        Modular compiler and toolchain technologies, 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 Extraction and 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 baseline for Perl OpenSSL packages
ii  perl-tk                                       1:804.036-1+b1                    amd64        Perl module providing the Tk 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 used uninitialized [-Wuninitialized]
 1175 |       : HaveGVs(HaveGVs), EnableSplitLTOUnit(EnableSplitLTOUnit), Saver(Alloc),
      |                                                                         ^~~~~

Best regards,

depesz






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Warnings about perl when compiling current HEAD
  2022-11-10 09:44 Warnings about perl when compiling current HEAD hubert depesz lubaczewski <depesz@depesz.com>
@ 2022-11-10 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
  2022-11-10 15:51   ` Re: Warnings about perl when compiling current HEAD hubert depesz lubaczewski <depesz@depesz.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2022-11-10 15:47 UTC (permalink / raw)
  To: depesz@depesz.com; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

hubert depesz lubaczewski <depesz@depesz.com> writes:
> 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.

Probably a perl update?  See

https://www.postgresql.org/message-id/flat/20221101180158.l4zg6ljah5ow2vvo%40awork3.anarazel.de

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Warnings about perl when compiling current HEAD
  2022-11-10 09:44 Warnings about perl when compiling current HEAD hubert depesz lubaczewski <depesz@depesz.com>
  2022-11-10 15:47 ` Re: Warnings about perl when compiling current HEAD Tom Lane <tgl@sss.pgh.pa.us>
@ 2022-11-10 15:51   ` hubert depesz lubaczewski <depesz@depesz.com>
  0 siblings, 0 replies; 3+ messages in thread

From: hubert depesz lubaczewski @ 2022-11-10 15:51 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

On Thu, Nov 10, 2022 at 10:47:50AM -0500, Tom Lane wrote:
> hubert depesz lubaczewski <depesz@depesz.com> writes:
> > 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.
> 
> Probably a perl update?  See
> 
> https://www.postgresql.org/message-id/flat/20221101180158.l4zg6ljah5ow2vvo%40awork3.anarazel.de

Very likely. Thanks, and sorry for noise.

Best regards,

depesz






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2022-11-10 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 09:44 Warnings about perl when compiling current HEAD hubert depesz lubaczewski <depesz@depesz.com>
2022-11-10 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-11-10 15:51   ` hubert depesz lubaczewski <depesz@depesz.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox