'make check' fails - Mailing list pgsql-hackers

From Bruce Momjian
Subject 'make check' fails
Date
Msg-id 20180411103930.GB31461@momjian.us
Whole thread Raw
Responses Re: 'make check' fails
List 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 +


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Excessive PostmasterIsAlive calls slow down WAL redo
Next
From: Thomas Munro
Date:
Subject: Re: Excessive PostmasterIsAlive calls slow down WAL redo