Re: pgsql: tests: Add a test C++ extension module

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: tests: Add a test C++ extension module
Date: 2026-01-21 21:00:39
Message-ID: CAGECzQTujhsQ8amxgoABotQ9xQL62SJpuq=wfEzozTk+6zmAYw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, 21 Jan 2026 at 21:25, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> On Tue, Jan 20, 2026 at 10:43 AM Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
> > tests: Add a test C++ extension module
>
> This patch caused my usual build process to fail. I have been setting
> CC='ccache clang' in my environment, and I was able to fix make it
> work again by also setting CXX='ccache clang'. Before that, I was
> getting my macPorts version of clang (21.1.2) for C source files but
> the OS version of clang (15.0.0) for c++ files. But I still don't
> really understand how that caused this failure, which doesn't look
> like it has anything to do with mixing compilers:

Seems like the same error as Peter Smith. So I guess clang 15 doesn't
use C++11 by default. Did you try if my proposed patch solves it?
Another way of fixing your problem would have been:
CXX='/path/to/os-version/clang -std=gnu++11'

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-01-21 21:13:14 Re: pgsql: tests: Add a test C++ extension module
Previous Message Robert Haas 2026-01-21 20:25:00 Re: pgsql: tests: Add a test C++ extension module

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-01-21 21:07:51 Re: Fix crash during recovery when redo segment is missing
Previous Message Corey Huinker 2026-01-21 20:51:23 Re: Import Statistics in postgres_fdw before resorting to sampling.