Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fV0ti-0008L7-ST for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 20:37:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fV0th-0004Sr-AT for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 20:37:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fV0th-0004Sh-4I for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 20:37:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fV0te-0004nR-Jc for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 20:37:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5IKaujF025851; Mon, 18 Jun 2018 16:36:56 -0400 From: Tom Lane To: Mario Emmenlauer cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15243: make check shows errors, i.e. fails to find initdb and others In-reply-to: References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org> <4394.1529097621@sss.pgh.pa.us> Comments: In-reply-to Mario Emmenlauer message dated "Mon, 18 Jun 2018 21:46:01 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25849.1529354216.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Jun 2018 16:36:56 -0400 Message-ID: <25850.1529354216@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mario Emmenlauer writes: > On 15.06.2018 23:20, Tom Lane wrote: >> 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'. Hm ... definitely no temp installation creation happening there :-( Looking at the make code that should be invoking this, I'm guessing that you must be hitting one of the "if" conditions that prevent the rule from being executed: check: temp-install .PHONY: temp-install temp-install: ifndef NO_TEMP_INSTALL ifneq ($(abs_top_builddir),) ifeq ($(MAKELEVEL),0) rm -rf '$(abs_top_builddir)'/tmp_install $(MKDIR_P) '$(abs_top_builddir)'/tmp_install/log $(MAKE) -C '$(top_builddir)' DESTDIR=3D'$(abs_top_builddir)'/tmp_install = install >'$(abs_top_builddir)'/tmp_install/log/install.log 2>&1 endif $(if $(EXTRA_INSTALL),for extra in $(EXTRA_INSTALL); do $(MAKE) -C '$(top= _builddir)'/$$extra DESTDIR=3D'$(abs_top_builddir)'/tmp_install install >>= '$(abs_top_builddir)'/tmp_install/log/install.log || exit; done) endif endif The most likely bet is that the MAKELEVEL condition is firing, perhaps because you're invoking "make check" from some makefile of your own rather than by hand. If so, you could try doing this: unset MAKELEVEL && make check regards, tom lane