pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 22:56:01 +0200
Message-ID: <816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de> (raw)
In-Reply-To: <25850.1529354216@sss.pgh.pa.us>
References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org>
	<4394.1529097621@sss.pgh.pa.us>
	<d99d1920-9670-73b8-eccd-abba642b317d@emmenlauer.de>
	<25850.1529354216@sss.pgh.pa.us>


Dear Tom,

On 18.06.2018 22:36, Tom Lane wrote:
> Mario Emmenlauer <mario@emmenlauer.de> 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/




view thread (7+ messages)  latest in thread

Message-ID: <816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de>
Permalink:  ../816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de/
Also on:    postgresql.org/message-id/816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de

 · 

reply

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: <816394eb-fb43-de72-5a4c-0035f5f63d25@emmenlauer.de>
  References: <152909641546.24805.8885344016984874263@wrigleys.postgresql.org> <4394.1529097621@sss.pgh.pa.us> <d99d1920-9670-73b8-eccd-abba642b317d@emmenlauer.de> <25850.1529354216@sss.pgh.pa.us> <816394eb-fb43-de72-5a4c-0035f5f63d25@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