Обсуждение: Perl warnings when building contrib on RHEL 9 beta

Поиск
Список
Период
Сортировка

Perl warnings when building contrib on RHEL 9 beta

От
"Daniel Westermann (DWE)"
Дата:
Hi list,

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

/usr/lib64/perl5/CORE/inline.h:2635:5: warning: '}' and ')' tokens terminating statement expression appear in different
macroexpansion 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
Вложения

Re: Perl warnings when building contrib on RHEL 9 beta

От
Tom Lane
Дата:
"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
warningspop up: 

> /usr/lib64/perl5/CORE/inline.h:2635:5: warning: '}' and ')' tokens terminating statement expression appear in
differentmacro 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