pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15407: [minor] build depends on $MAKELEVEL being 0 at top Makefile
3+ messages / 3 participants
[nested] [flat]

* BUG #15407: [minor] build depends on $MAKELEVEL being 0 at top Makefile
@ 2018-09-27 08:31  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Bug reporting form @ 2018-09-27 08:31 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: st-postgresql@luettgert.de

The following bug has been logged on the website:

Bug reference:      15407
Logged by:          Torsten Lüttgert
Email address:      st-postgresql@luettgert.de
PostgreSQL version: 11beta4
Operating system:   CentOS 7
Description:        

We build postgresql as part of a larger runtime environment, and if the
top-level make is invoked from an existing, other Makefile (i.e., with
$MAKELEVEL set), the build fails like this:

relpath.c:21:37: fatal error: catalog/pg_tablespace_d.h: No such file or
directory
 #include "catalog/pg_tablespace_d.h"

The file is there:
# find -name pg_tablespace_d.h
./src/backend/catalog/pg_tablespace_d.h

Workaround for us was to use
  MAKELEVEL=0 $(MAKE)
instead.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15407: [minor] build depends on $MAKELEVEL being 0 at top Makefile
@ 2018-09-27 09:09  Michael Paquier <michael@paquier.xyz>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2018-09-27 09:09 UTC (permalink / raw)
  To: st-postgresql@luettgert.de; pgsql-bugs@lists.postgresql.org

On Thu, Sep 27, 2018 at 08:31:47AM +0000, PG Bug reporting form wrote:
> The file is there:
> # find -name pg_tablespace_d.h
> ./src/backend/catalog/pg_tablespace_d.h

Wouldn't you need something like that actually?  I added this rule when
compiling some of my stuff with v11, which does not invoke make from the
root tree to make sure that those headers are present:
make -C $(topdir)/src/backend generated-headers
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15407: [minor] build depends on $MAKELEVEL being 0 at top Makefile
@ 2018-09-27 13:47  Tom Lane <tgl@sss.pgh.pa.us>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2018-09-27 13:47 UTC (permalink / raw)
  To: st-postgresql@luettgert.de; +Cc: pgsql-bugs@lists.postgresql.org

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> We build postgresql as part of a larger runtime environment, and if the
> top-level make is invoked from an existing, other Makefile (i.e., with
> $MAKELEVEL set), the build fails like this:
> ...
> Workaround for us was to use
>   MAKELEVEL=0 $(MAKE)
> instead.

Yeah, this is now documented, near the bottom of the "2. Build" step at
https://www.postgresql.org/docs/11/static/install-procedure.html

It should be harmless to do that for pre-11 versions too.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-09-27 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 08:31 BUG #15407: [minor] build depends on $MAKELEVEL being 0 at top Makefile PG Bug reporting form <noreply@postgresql.org>
2018-09-27 09:09 ` Michael Paquier <michael@paquier.xyz>
2018-09-27 13:47 ` Tom Lane <tgl@sss.pgh.pa.us>

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