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

2021-03-04 Thread walker
Thanks for your reminder, Tom. Before I understand VPATH well, I always thought "outside the source tree" means the build tree is not under source tree. Here because of VPATH build, which means build tree should be a subdirectory of source tree. according to this rule, I retry this scenario w

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

2021-03-04 Thread Tom Lane
Alvaro Herrera writes: > Hmm, my build dir is not inside the source dir -- is yours? I recall that the gcc build instructions strongly warn against that sort of setup. Maybe we should too? Actually, our build instructions already say this specifically: You can also run configure in a direc

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

2021-03-04 Thread walker
install a newer version of lcov 1.13, it works fine with WARNING just same as yours. much appreciated thanks walker -- Original -- From: "Al

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

2021-03-04 Thread Alvaro Herrera
On 2021-Mar-04, walker wrote: > The same, the build directory is outside the source tree. > > > the version of lcov is 1.10 That seems *really* ancient. Please try with a fresher version. -- Álvaro Herrera39°49'30"S 73°17'W "How amazing is that? I call it a night

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

2021-03-04 Thread walker
The same, the build directory is outside the source tree. the version of lcov is 1.10 thanks walker -- Original -- From: "Alvaro Herrera"

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

2021-03-04 Thread walker
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 mak

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

2021-03-04 Thread Alvaro Herrera
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/post

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

2021-03-04 Thread Alvaro Herrera
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/

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

2021-03-04 Thread Alvaro Herrera
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