From: Mario Emmenlauer <mario@emmenlauer.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15243: make check shows errors, i.e. fails to find initdb and others
Date: Mon, 18 Jun 2018 21:46:01 +0200
Message-ID: <d99d1920-9670-73b8-eccd-abba642b317d@emmenlauer.de> (raw)
In-Reply-To: <4394.1529097621@sss.pgh.pa.us>
References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org>
<4394.1529097621@sss.pgh.pa.us>
Dear Tom,
I hope the reply-by-mail works (this is my first pgsql report :-) )
On 15.06.2018 23:20, Tom Lane wrote:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> I tried my first build of PostgreSQL 10.4 on Ubuntu Linux 16.04 today. The
>> build worked out of the box. However `make check` fails. I am under the
>> impression that it tries a "strange" path to search for build-time binaries.
>> But I'm not experienced enough to figure out why.
>
> It's hard for someone else to be sure either. What "make check" is
> supposed to do is create a temporary installation under
> ...sourcedir.../tmp_install/, so this:
>
>> PATH="/tmp/Debug/Shared/postgresql-10.4/tmp_install/thirdparty/Debug/Shared/bin:$PATH"
>
> looks correct if your PG source is in /tmp/Debug/Shared/postgresql-10.4/
> and the configured real installation path is /thirdparty/Debug/Shared/.
> You confirmed the latter but not the former.
Yes, its exactly like you say: PG sources are in
/tmp/Debug/Shared/postgresql-10.4/ and the configured real installation
path is /thirdparty/Debug/Shared/.
>> In /tmp/Debug/Shared/postgresql-10.4/src/test/regress/log/initdb.log there
>> is just a short message saying that initdb was not found.
>
> This suggests that the temp installation failed to be made, but you did
> not show us the part of the make log where that should've happened;
> it'd be before this extract, of course.
I have tried the build again and this time I used the directories
/data/Debug/Shared/postgresql-10.4 for the build and /data/Debug/Shared
for the installation. /data/ is a symlink to /data1/ on my machine, in
case that makes a difference. The build works fine so I only attach the
log from 'make -j1 check'.
> Also, were you trying a VPATH build, or just build-in-source-tree?
> That affects where this stuff would end up.
I tried the build-in-source-tree so far. Should I try a VPATH build?
All the best and thanks a lot,
Mario Emmenlauer
--
BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203
Balanstr. 43 mailto: memmenlauer * biodataanalysis.de
D-81669 München http://www.biodataanalysis.de/Attachments:checklog.txt (text/plain, 2.8K) download
make[2]: Entering directory '/data1/Debug/Shared/postgresql-10.4'
make -C src/test/regress check
make[3]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/test/regress'
make -C ../../../src/port all
make[4]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/port'
make -C ../backend submake-errcodes
make[5]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make[5]: Nothing to be done for 'submake-errcodes'.
make[5]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make[4]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/port'
make -C ../../../src/common all
make[4]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/common'
make -C ../backend submake-errcodes
make[5]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make[5]: Nothing to be done for 'submake-errcodes'.
make[5]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make[4]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/common'
make -C ../../../src/backend generated-headers
make[4]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make -C catalog schemapg.h
make[5]: Entering directory '/data1/Debug/Shared/postgresql-10.4/src/backend/catalog'
make[5]: 'schemapg.h' is up to date.
make[5]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/backend/catalog'
make[4]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/backend'
make -C ../../../contrib/spi
make[4]: Entering directory '/data1/Debug/Shared/postgresql-10.4/contrib/spi'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/contrib/spi'
rm -rf ./testtablespace
mkdir ./testtablespace
PATH="/data/Debug/Shared/postgresql-10.4/tmp_install/data/Debug/Shared/bin:$PATH" LD_LIBRARY_PATH="/data/Debug/Shared/postgresql-10.4/tmp_install/data/Debug/Shared/lib:$LD_LIBRARY_PATH" ../../../src/test/regress/pg_regress --temp-instance=./tmp_check --inputdir=. --bindir= --dlpath=. --schedule=./parallel_schedule
============== creating temporary instance ==============
============== initializing database system ==============
pg_regress: initdb failed
Examine /data1/Debug/Shared/postgresql-10.4/src/test/regress/log/initdb.log for the reason.
Command was: "initdb" -D "/data1/Debug/Shared/postgresql-10.4/src/test/regress/./tmp_check/data" --no-clean --no-sync > "/data1/Debug/Shared/postgresql-10.4/src/test/regress/log/initdb.log" 2>&1
GNUmakefile:130: recipe for target 'check' failed
make[3]: *** [check] Error 2
make[3]: Leaving directory '/data1/Debug/Shared/postgresql-10.4/src/test/regress'
GNUmakefile:67: recipe for target 'check' failed
make[2]: *** [check] Error 2
make[2]: Leaving directory '/data1/Debug/Shared/postgresql-10.4'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: mario@emmenlauer.de, tgl@sss.pgh.pa.us
Subject: Re: BUG #15243: make check shows errors, i.e. fails to find initdb and others
In-Reply-To: <d99d1920-9670-73b8-eccd-abba642b317d@emmenlauer.de>
References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org> <4394.1529097621@sss.pgh.pa.us> <d99d1920-9670-73b8-eccd-abba642b317d@emmenlauer.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox