Re: make coverage-html would fail within build directory separate from source tree

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: walker <failaway(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: make coverage-html would fail within build directory separate from source tree
Date: 2021-03-04 13:35:10
Message-ID: 20210304133510.GA28650@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021-Mar-04, Alvaro Herrera wrote:

> On 2021-Mar-04, walker wrote:
>
> > Hi, hackers
> >
> > During installation from source code, I created a build directory separate from the source tree, and execute the following command in the build directory:
> > /home/postgres/postgresql-13.2/configure -- enable-coverage
> > make
> > make check
> > make coverage-html
> >
> >
> > However, while executing make coverage-html, it failed with the following error messages:
> > /bin/lcov --gcov-tool /bin/gcov -q --no-external -c -i -d . -d /home/postgres/postgresql-13.2/ -o lcve_base.info
> > ...
> > geninfo: ERROR: no .gcno files found in /home/postgres/postgresql-13.2/!

"make coverage-html" outputs this: note that I get a WARNING about the
source directory rather than an ERROR:

/usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -i -d . -d /pgsql/source/REL_13_STABLE/ -o lcov_base.info
geninfo: WARNING: no .gcno files found in /pgsql/source/REL_13_STABLE/ - skipping!
/usr/bin/lcov --gcov-tool /usr/bin/gcov -q --no-external -c -d . -d /pgsql/source/REL_13_STABLE/ -o lcov_test.info
geninfo: WARNING: no .gcda files found in /pgsql/source/REL_13_STABLE/ - skipping!
rm -rf coverage
/usr/bin/genhtml -q --legend -o coverage --title='PostgreSQL 13.2' --num-spaces=4 lcov_base.info lcov_test.info
touch coverage-html-stamp

(In my system, /pgsql is a symlink to /home/alvhere/Code/pgsql/)

$ geninfo --version
geninfo: LCOV version 1.13

--
Álvaro Herrera Valdivia, Chile

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2021-03-04 13:43:13 Re: [HACKERS] Custom compression methods
Previous Message Alvaro Herrera 2021-03-04 13:31:42 Re: make coverage-html would fail within build directory separate from source tree