Perl warnings when building contrib on RHEL 9 beta

Started by Daniel Westermann (DWE)about 4 years ago2 messages
#1Daniel Westermann (DWE)
daniel.westermann@dbi-services.com
1 attachment(s)

Hi list,

just compiled PostgreSQL head on RedHat 9 beta. Generally seems to be fine but when building contrib, a lot of these warnings pop up:

/usr/lib64/perl5/CORE/inline.h:2635:5: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
ENV_UNLOCK;
^~~~~~~~~~
/usr/lib64/perl5/CORE/perl.h:2925:31: note: expanded from macro 'ENV_UNLOCK'
# define ENV_UNLOCK MUTEX_UNLOCK(&PL_env_mutex)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib64/perl5/CORE/thread.h:227:5: note: expanded from macro 'MUTEX_UNLOCK'
} STMT_END
^
/usr/lib64/perl5/CORE/inline.h:2635:5: note: ')' token is here
ENV_UNLOCK;
^~~~~~~~~~

Full log attached.

Note: I had to install two different packages compared to RHEL 7 and 8:
perl-FindBin and perl-Opcode

Regards
Daniel

Attachments:

make_install_contrib.logtext/x-log; name=make_install_contrib.logDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Daniel Westermann (DWE) (#1)
Re: Perl warnings when building contrib on RHEL 9 beta

"Daniel Westermann (DWE)" <daniel.westermann@dbi-services.com> writes:

just compiled PostgreSQL head on RedHat 9 beta. Generally seems to be fine but when building contrib, a lot of these warnings pop up:

/usr/lib64/perl5/CORE/inline.h:2635:5: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]

Yeah, I've been seeing that on macOS as well, with the latest Xcode;
and several other buildfarm members are showing it too.

I think this is a new clang warning that the Perl headers haven't
caught up with yet. I'm not sure there is anything we can do about
it other than add -Wno-compound-token-split-by-macro.

regards, tom lane