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 1fV1ie-000229-Sy for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 21:29:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fV1id-0007e2-2c for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 21:29:47 +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 1fV1C8-0001lf-Oz for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 20:56:12 +0000 Received: from aldebaran.he1ix.org ([2a01:4f8:173:803:0:a1de:ba:a]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fV1C5-0005I7-FU for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 20:56:12 +0000 Received: from ip5f5ac6f5.dynamic.kabel-deutschland.de ([95.90.198.245] helo=[192.168.1.190]) by aldebaran.he1ix.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV1C3-0001Ax-8S; Mon, 18 Jun 2018 22:56:07 +0200 To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org> <4394.1529097621@sss.pgh.pa.us> <25850.1529354216@sss.pgh.pa.us> From: Mario Emmenlauer Message-ID: <816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de> Date: Mon, 18 Jun 2018 22:56:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <25850.1529354216@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 95.90.198.245 X-SA-Exim-Mail-From: mario@emmenlauer.de X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on aldebaran.he1ix.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham version=3.3.1 Subject: Re: BUG #15243: make check shows errors, i.e. fails to find initdb and others X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on aldebaran.he1ix.org) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dear Tom, On 18.06.2018 22:36, Tom Lane wrote: > 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='$(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='$(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 Very good observation! Horray! This is actually the very cause of the problem! I build PostgreSQL from inside my build system that is itself based on Makefiles. I now added 'unset MAKEFLAGS && unset MAKELEVEL', and everything works as expected! Hats off to you! All the best, 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/