From: | "Perry Smith" <pedzsan(at)gmail(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #6059: Out of tree build fails using Make 3.82 |
Date: | 2011-06-15 02:50:44 |
Message-ID: | 201106150250.p5F2oidR002077@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 6059
Logged by: Perry Smith
Email address: pedzsan(at)gmail(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Jacobson | 2011-06-15 07:03:58 | psql \s not working - OS X |
Previous Message | Gavin Flower | 2011-06-15 02:40:32 | Re: PG 9.1 regression / row comparison? |