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

From: walker <failaway(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: make coverage-html would fail within build directory separate from source tree
Date: 2021-03-04 02:33:34
Message-ID: tencent_7A8E2609A5FFB167ED14FC385868A185DB07@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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: *** [lcov_base.info] Error 255
make: *** Deleting file 'lcov_base.info'

if I repeat the above steps within the source tree directory, make coverage-html works fine. From the official documentation, I didn't find any limitations for "make coverage-html", not sure if I miss something.

thanks
walker
&nbsp;

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhihong Yu 2021-03-04 02:51:39 Re: [POC] Fast COPY FROM command for the table with foreign partitions
Previous Message Kyotaro Horiguchi 2021-03-04 02:28:53 Re: Remove page-read callback from XLogReaderState.