Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot47A-0004Xr-If for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Nov 2022 09:44:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ot479-0007aF-2K for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Nov 2022 09:44:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot478-0007ZN-Ga for pgsql-bugs@lists.postgresql.org; Thu, 10 Nov 2022 09:44:50 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot475-0000OT-3s for pgsql-bugs@lists.postgresql.org; Thu, 10 Nov 2022 09:44:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Reply-To: Message-ID:Subject:To:Sender:From:Date:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OcWB+pslz/ftMAIB6GgrPYwKg4Yjiet/7POkwXFQqfk=; b=sHz3u4W92Vom8h4LCsQg8Z408e TxkA24QiCno6qNStizuIEGTTwdnyCCtusp7525J/MQQWYriTblweSpGUice2uJvENC9xdUYkCywrI DgPHKekxRT+hu6dIO5CoImxOuDQ+p9qtrncuGNfR+4+h2HgMudwc8R1/XTE+qOH8GWDw=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1ot471-00DOhV-RX for pgsql-bugs@lists.postgresql.org; Thu, 10 Nov 2022 10:44:43 +0100 Date: Thu, 10 Nov 2022 10:44:43 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: PostgreSQL mailing lists Subject: Warnings about perl when compiling current HEAD Message-ID: Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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