'make check' fails

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-04-11T10:39:30Z
Lists: pgsql-hackers
I have discovered that:

	make clean; make check

fails with:

	/bin/mkdir -p '/pgtop'/tmp_install/log
	make -C '.' DESTDIR='/pgtop'/tmp_install install >'/pgtop'/tmp_install/log/install.log 2>&1
	src/Makefile.global:388: recipe for target 'temp-install' failed
	make: *** [temp-install] Error 2

and '/pgtop'/tmp_install/log/install.log says:

	relpath.c:21:37: fatal error: catalog/pg_tablespace_d.h: No such file or directory
	 #include "catalog/pg_tablespace_d.h"
	                                     ^
	compilation terminated.
	<builtin>: recipe for target 'relpath.o' failed
	make[3]: *** [relpath.o] Error 1

Oddly, this works:

	make clean; make; make check

I found this because I have some scripts that do the former.  The
problem has existed for several days now and I only now dug into it.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +


Commits

  1. Invoke submake-generated-headers during "make check", too.

  2. Fix clashing function names between jsonb_plperl and jsonb_plperlu