pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6059: Out of tree build fails using Make 3.82
Date: Wed, 15 Jun 2011 02:50:44 GMT
Message-ID: <201106150250.p5F2oidR002077@wwwmaster.postgresql.org> (raw)


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.



Message-ID: <201106150250.p5F2oidR002077@wwwmaster.postgresql.org>
Permalink:  ../201106150250.p5F2oidR002077@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201106150250.p5F2oidR002077@wwwmaster.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pedzsan@gmail.com
  Subject: Re: BUG #6059: Out of tree build fails using Make 3.82
  In-Reply-To: <201106150250.p5F2oidR002077@wwwmaster.postgresql.org>
  References: <201106150250.p5F2oidR002077@wwwmaster.postgresql.org>

* 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