The same, the build directory is outside the source tree.
the version of lcov is 1.10 thanks walker ------------------ Original ------------------ From: "Alvaro Herrera" <alvhe...@alvh.no-ip.org>; Date: Thu, Mar 4, 2021 10:05 PM To: "walker"<faila...@qq.com>; Cc: "pgsql-hackers"<pgsql-hackers@lists.postgresql.org>; Subject: Re: make coverage-html would fail within build directory separate from source tree On 2021-Mar-04, walker wrote: > thanks for your reply. it indeed that there are no .gcon files in source tree directory, they're in build tree directory, which results in failures. > > > That's a bit wired. > > > Add more detailed testing steps: > mkdir build_dir > cd build_dir > /home/postgres/postgresql-13.2/configure -- enable-coverage > make > make check > make coverage-html Hmm, my build dir is not inside the source dir -- is yours? Maybe that makes a difference? Also, what version of lcov do you have? -- Álvaro Herrera 39°49'30"S 73°17'W "Someone said that it is at least an order of magnitude more work to do production software than a prototype. I think he is wrong by at least an order of magnitude." (Brian Kernighan)