Re: Coverage with make coverage-html is broken on latest Debian using lcov v2 - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Coverage with make coverage-html is broken on latest Debian using lcov v2
Date
Msg-id ajBA9Zuy3TZ73mxr@alvherre.pgsql
Whole thread
In response to Coverage with make coverage-html is broken on latest Debian using lcov v2  (Narek Galstyan <narek.galstyan@enterprisedb.com>)
List pgsql-hackers
Hi Narek,

On 2026-Apr-21, Narek Galstyan wrote:

> On Debian 13 (trixie), `make coverage-html` command triggers an lcov
> failure.
[...]
> Without applying any of the patches, with --enable-coverage and in-tree
> build (no vpath), make check && make coverage-html results in the following
> error:
> 
> ```
> /usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -i -d . -d . -o
> lcov_base.info
> lcov: ERROR: (usage) duplicate file ./src/backend/access/table/tableam.gcno
> in both . and .

Handling this part with your 0001 seems reasonable to me.  I think we
should backpatch that one.

I'm not sure sure about the 0002 patch though.  It builds in the
assumption that lcov is broken and that we're going to ignore these
warnings by default [forever].  Do we really want to bake those flags
into our build system?

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"El número de instalaciones de UNIX se ha elevado a 10,
y se espera que este número aumente" (UPM, 1972)



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: mxid_score can become Infinity in pg_stat_autovacuum_scores
Next
From: Jim Jones
Date:
Subject: Re: XMLDocument (SQL/XML X030)