Re: Change copyObject() to use typeof_unqual - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Change copyObject() to use typeof_unqual
Date
Msg-id 314254.1773715169@sss.pgh.pa.us
Whole thread Raw
In response to Re: Change copyObject() to use typeof_unqual  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: Change copyObject() to use typeof_unqual
Re: Change copyObject() to use typeof_unqual
List pgsql-hackers
Masahiko Sawada <sawada.mshk@gmail.com> writes:
> I'm still encountering the following error while building from source
> at commit f4af7849b3d when using autoconf:

> execParallel.c:154:9: error: call to undeclared function
> 'typeof_unqual'; ISO C99 and later do not support implicit function
> declarations [-Wimplicit-function-declaration]
>   154 |         plan = copyObject(plan);
>       |                ^

> I'm using Fedora 43 and gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7).

Ugh, yeah, reproduced here.  FTR, this platform has

$ gcc --version
gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)
$ clang --version
clang version 21.1.8 (Fedora 21.1.8-4.fc43)

While this version of clang doesn't like typeof_unqual, it does take
__typeof_unqual__.  So maybe we were premature to decide that we
could prefer the typeof_unqual spelling.  I can get it to build
if I use __typeof_unqual__.

> The issue doesn't happen when using meson+ninja.

Per upthread, we don't have bitcode compilation working in the
meson buildsystem, so we aren't trying to invoke clang in that
case.

            regards, tom lane



pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: Proposal for enabling auto-vectorization for checksum calculations
Next
From: Tom Lane
Date:
Subject: Re: Change copyObject() to use typeof_unqual