Re: v15rc1 shadowbuild fails when using src from symlink

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Frank van Vugt <ftm(dot)van(dot)vugt(at)foxi(dot)nl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: v15rc1 shadowbuild fails when using src from symlink
Date: 2022-10-03 08:41:03
Message-ID: YzqgH8ASqUn6hhvx@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Sep 30, 2022 at 08:33:17AM +0200, Frank van Vugt wrote:
> Just like v15b4, the first rc fails to compile when using the source from a
> symlink.
> [...]
> make -j2
> => fails on the following:
>
> => when using the real source folder instead of the symlink, the same compile/
> script finishes fine

Yep, using a VPATH build with the source being a soft link does not
work. Here is what I have done, basically the same steps as yourself:
wget https://ftp.postgresql.org/pub/source/v15rc1/postgresql-15rc1.tar.gz
tar zxvf postgresql-15rc1.tar.gz
ln -s postgresql-15rc1 postgres_src
mkdir postgres_build
cd postgres_build/
$path/to/postgres_src/configure --prefix=$PGDIR/install --enable-cassert
make -j 4

This is as well the case with 14, by the way, and most likely the case
of older versions. Why are you using such an exotic way to build
things? A vpath build would give the same result for the build, once
the downloaded source is renamed to a more generic name, for example.
--
Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Guillaume Lelarge 2022-10-03 08:53:14 Re: Translation bug in French starting in v13
Previous Message Tom Lane 2022-10-01 23:04:40 Re: Bug / Unintentional Feature: non-immutable functions can be used for generated columns.