pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank van Vugt <ftm.van.vugt@foxi.nl>
To: pgsql-bugs@postgresql.org
Subject: v15rc2(/v15rc1/v15b4) shadowbuild fails when using src from symlink
Date: Thu, 06 Oct 2022 17:16:40 +0200
Message-ID: <3226673.44csPzL39Z@techfox> (raw)

L.S.

Just like v15rc1, the second rc fails to compile when using the source from a 
symlink.

=> openSUSE Leap 15.4 (gcc v7.5.0 / make v4.2.1)
=> unpack source
=> create a symlink $PGSRCDIR to the source(-rc2) folder
=> create a build folder $PGDIR and from within that:

$PGSRCDIR/configure --prefix=$PGDIR/install --enable-thread-safety

make -j2 

=> fails on the following: 
(...)
configure: using compiler=gcc (SUSE Linux) 7.5.0
configure: using CFLAGS=-Wall -Wmissing-prototypes -Wpointer-arith -
Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-
attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -
fwrapv -fexcess-precision=standard -Wno-format-truncation -O2
configure: using CPPFLAGS= -D_GNU_SOURCE -I/usr/include/libxml2 
configure: using LDFLAGS= -Wl,--as-needed
preparing build tree... done
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/Makefile.global
config.status: creating src/include/pg_config.h
config.status: creating src/include/pg_config_ext.h
config.status: creating src/interfaces/ecpg/include/ecpg_config.h
config.status: linking /home/development/postgresql-15.0/src/backend/port/tas/
dummy.s to src/backend/port/tas.s
config.status: linking /home/development/postgresql-15.0/src/backend/port/
posix_sema.c to src/backend/port/pg_sema.c
config.status: linking /home/development/postgresql-15.0/src/backend/port/
sysv_shmem.c to src/backend/port/pg_shmem.c
config.status: linking /home/development/postgresql-15.0/src/include/port/
linux.h to src/include/pg_config_os.h
config.status: linking /home/development/postgresql-15.0/src/makefiles/
Makefile.linux to src/Makefile.port
+ make -j2
make -C ./src/backend generated-headers
make[1]: Entering directory '/home/development/4suse15.4-x86_64/
postgresql-15.0/src/backend'
make[1]: *** No rule to make target 'generated-headers'. Stop.
make[1]: Leaving directory '/home/development/4suse15.4-x86_64/
postgresql-15.0/src/backend'
make: *** [src/Makefile.global:390: submake-generated-headers] Error 2 



=> when using the real source folder instead of the symlink, the same compile/
script finishes fine





-- 

Best,




Frank.








view thread (6+ messages)  latest in thread

Message-ID: <3226673.44csPzL39Z@techfox>
Permalink:  ../3226673.44csPzL39Z@techfox/
Also on:    postgresql.org/message-id/3226673.44csPzL39Z@techfox

 · 

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: ftm.van.vugt@foxi.nl
  Subject: Re: v15rc2(/v15rc1/v15b4) shadowbuild fails when using src from symlink
  In-Reply-To: <3226673.44csPzL39Z@techfox>

* 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