pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Burke <kevin@meter.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17178: probes.h: No such file or directory when running 'make install'
Date: Fri, 03 Sep 2021 09:23:39 -0400
Message-ID: <2481301.1630675419@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAJ6v9BhZMtWn7bx2Pq6qg2bE50jFZm6XsGht2HoiWk0R_0j8A@mail.gmail.com>
References: <17178-daf8e5afdcd926a0@postgresql.org>
	<CAAJ6v9BhZMtWn7bx2Pq6qg2bE50jFZm6XsGht2HoiWk0R_0j8A@mail.gmail.com>

Kevin Burke <kevin@meter.com> writes:
> Aha, never mind... I am using the Rust "coreutils" and this appears to be
> an incompatibility between the GNU "cp" tool and the Rust cp tool. While
> concerning I don't think that this is Postgres's fault.

It looks more like gmake having dropped the ball somewhere along the line
--- probes.h is a built file, plus it's symlinked in various places.

We know that Apple's /usr/bin/make works, but maybe you're using something
different?  Also, it could matter whether this is a VPATH build or not.

FWIW, this is what I see immediately after a clean build on my Big Sur
laptop (non-VPATH):

$ find . -name probes.h | xargs ls -ld
-rw-r--r--  1 tgl  admin  7568 Sep  3 09:16 ./src/backend/utils/probes.h
lrwxr-xr-x  1 tgl  admin    35 Sep  3 09:16 ./src/include/utils/probes.h -> ../../../src/backend/utils/probes.h

Looking at the install rule in src/include/Makefile, it
looks like it first blindly installs the symlink along with
everything else in src/include/utils, and then overwrites that
with the non-symlink copy.  So I guess if you have a version
of "cp" with non-POSIX rules for what to do with symlinks,
this could indeed be "cp"'s fault ... but that would be a
cp bug, and a rather big one.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <2481301.1630675419@sss.pgh.pa.us>
Permalink:  ../2481301.1630675419@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2481301.1630675419@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kevin@meter.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17178: probes.h: No such file or directory when running 'make install'
  In-Reply-To: <2481301.1630675419@sss.pgh.pa.us>

* 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