Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcJ22-0004fn-80 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Sep 2015 20:10:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZcJ21-0002JM-Q4 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Sep 2015 20:10:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZcJ1v-0002BC-IY for pgsql-hackers@postgresql.org; Wed, 16 Sep 2015 20:10:11 +0000 Received: from feynman.df7cb.de ([2001:6f8:10ee::1]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZcJ1o-0004bT-J7 for pgsql-hackers@postgresql.org; Wed, 16 Sep 2015 20:10:11 +0000 Received: from msg.df7cb.de (tmo-107-128.customers.d1-online.com [80.187.107.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3nGXbF2TpGz3F06 for ; Wed, 16 Sep 2015 22:10:01 +0200 (CEST) Date: Wed, 16 Sep 2015 22:10:00 +0200 From: Christoph Berg To: PostgreSQL Hackers Subject: Building storage/lwlocknames.h? Message-ID: <20150916200959.GB32090@msg.df7cb.de> Mail-Followup-To: Christoph Berg , PostgreSQL Hackers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, the Debian package build compiles plpython twice, once for python 2 in the main build, and then for python 3 in an extra run. In order not to waste too much time, we have this recipe in there: stamp/build-py3: stamp/configure-build-py3 $(MAKE) -C build-py3/src/backend/ submake-errcodes $(MAKE) -C build-py3/src/pl/plpython $(MAKE) -C build-py3/contrib/hstore_plpython So far that worked, but on 9.6 head there's now a problem with storage/lwlocknames.h: 18:20:02 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -I. -I/tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/pl/plpython -I/usr/include/python3.4m -I../../../src/include -I/tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -c -o plpy_cursorobject.o /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/pl/plpython/plpy_cursorobject.c 18:20:02 In file included from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/storage/lock.h:23:0, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/access/heapam.h:22, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/nodes/execnodes.h:18, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/executor/execdesc.h:18, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/utils/portal.h:50, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/executor/spi.h:18, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/pl/plpython/plpy_planobject.h:8, 18:20:02 from /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/pl/plpython/plpy_cursorobject.c:18: 18:20:02 /tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/../src/include/storage/lwlock.h:96:33: fatal error: storage/lwlocknames.h: No such file or directory 18:20:02 compilation terminated. 18:20:02 : recipe for target 'plpy_cursorobject.o' failed 18:20:02 make[2]: *** [plpy_cursorobject.o] Error 1 18:20:02 make[2]: Leaving directory '/tmp/buildd/postgresql-9.6-9.6~~devel~20150916.1605/build-py3/src/pl/plpython' Can we have a "submake-lwlocknames" build target like there already is for submake-errcodes? Reading the Makefile I could not see how to manually trigger this individually. Thanks, Christoph -- cb@df7cb.de | http://www.df7cb.de/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers