Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 413D3B5DBBF for ; Tue, 14 Jun 2011 23:50:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 96279-02 for ; Wed, 15 Jun 2011 02:50:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 66DCBB5D95B for ; Tue, 14 Jun 2011 23:50:44 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p5F2oiRf002078 for ; Wed, 15 Jun 2011 02:50:44 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p5F2oidR002077; Wed, 15 Jun 2011 02:50:44 GMT (envelope-from www) Date: Wed, 15 Jun 2011 02:50:44 GMT Message-Id: <201106150250.p5F2oidR002077@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6059: Out of tree build fails using Make 3.82 From: "Perry Smith" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201106/110 X-Sequence-Number: 30489 The following bug has been logged online: Bug reference: 6059 Logged by: Perry Smith Email address: pedzsan@gmail.com PostgreSQL version: 9.0.4 Operating system: AIX 5.3 and Mac 10.6.7 Description: Out of tree build fails using Make 3.82 Details: The failure is: /Users/pedzan/Source/Temp2/build/postgresql-9.0.4/../../src/postgresql-9.0.4 /src/backend/utils/cache/relcache.c:57:30: error: catalog/schemapg.h: No such file or directory See https://groups.google.com/d/topic/pgsql.general/iOnCH9VuwnE/discussion for more about the symptoms. I tried AIX 5.3 using GNU Make 3.82 (which failed) and GNU Make 3.80 (which worked). On the Mac, the native make is GNU Make 3.81 which worked. I installed GNU Make 3.82 and it fails in the same way as the AIX failure. This may very well be a bug with make but I thought you might want to try and figure out a work around. In the good make log I have: ... gmake -C catalog schemapg.h gmake[3]: Entering directory `/usr/local/build/postgres-9.0.4/src/backend/catalog' gmake[3]: `/usr/local/build/postgres-9.0.4/../../src/postgresql-9.0.4/src/backend/cata log/schemapg.h' is up to date. gmake[3]: Leaving directory `/usr/local/build/postgres-9.0.4/src/backend/catalog' prereqdir=`cd /usr/local/build/postgres-9.0.4/../../src/postgresql-9.0.4/src/backend/parse r/ >/dev/null && pwd` && \ cd ../../src/include/parser/ && rm -f gram.h && \ ln -s "$prereqdir/gram.h" . prereqdir=`cd /usr/local/build/postgres-9.0.4/../../src/postgresql-9.0.4/src/backend/catal og/ >/dev/null && pwd` && \ cd ../../src/include/catalog/ && rm -f schemapg.h && \ ln -s "$prereqdir/schemapg.h" . ... Note the expanded cd destination in the 3rd to last line. In the bad make log I have: ... make -C catalog schemapg.h make[3]: Entering directory `/usr/local/build/postgres-9.0.4/src/backend/catalog' make[3]: `/usr/local/build/postgres-9.0.4/../../src/postgresql-9.0.4/src/backend/cata log/schemapg.h' is up to date. make[3]: Leaving directory `/usr/local/build/postgres-9.0.4/src/backend/catalog' prereqdir=`cd /usr/local/build/postgres-9.0.4/../../src/postgresql-9.0.4/src/backend/parse r/ >/dev/null && pwd` && \ cd ../../src/include/parser/ && rm -f gram.h && \ ln -s "$prereqdir/gram.h" . prereqdir=`cd catalog/ >/dev/null && pwd` && \ cd ../../src/include/catalog/ && rm -f schemapg.h && \ ln -s "$prereqdir/schemapg.h" . ... Note that we went into /usr/local/build/postgres-9.0.4/src/backend/catalog (I'm not sure if that is significant). But also note that the cd in the 3rd to last line is simply to catalog/ and not the full path. (It is also curious that the previous prereqdir= line has the cd path fully expanded. That is why I mentioned the fact that we went into the subdir. That might have something to do with the changed behavior. I hope this helps. Good luck.