[Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

Started by Siarhei Siniakabout 7 years ago3 messageshackers
Jump to latest
#1Siarhei Siniak
serega.belarus@gmail.com

1. Currently, cube extension has CUBE_MAX_DIM set as 100.
A recent github issue. [1]https://github.com/postgres/postgres/pull/38
2. To compile a custom version of the extension off the tree requires:
```
make -C contrib/custom_cube USE_PGXS=1
```
3. But utils/float.h required by cube.c and cubeparse.y is not installed.
It's not present in the latest release file [2]https://github.com/postgres/postgres/archive/REL_11_2.tar.gz,
nor being installed when running
make install when compiling from git.
4. Current workaround is to use
```
#include "../../src/include/utils/float.h"
```
in cube.c and cubeparse.y when compiling in git tree.

[1]: https://github.com/postgres/postgres/pull/38
[2]: https://github.com/postgres/postgres/archive/REL_11_2.tar.gz

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Siarhei Siniak (#1)
Re: [Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

Siarhei Siniak <serega.belarus@gmail.com> writes:

3. But utils/float.h required by cube.c and cubeparse.y is not installed.

AFAICT, that file only exists in HEAD, not in any released branch, and
it is installed during "make install" from HEAD. Please be sure you
are using installed files that match whatever branch you're trying
to build from.

regards, tom lane

#3Siarhei Siniak
serega.belarus@gmail.com
In reply to: Siarhei Siniak (#1)
Fwd: [Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

---------- Forwarded message ---------
From: Siarhei Siniak <serega.belarus@gmail.com>
Date: Tue, 5 Mar 2019 at 23:31
Subject: Re: [Issue] Can't recompile cube extension as PGXS, utils/float.h
is not installed
To: Tom Lane <tgl@sss.pgh.pa.us>

AFAICT, that file only exists in HEAD, not in any released branch, and
it is installed during "make install" from HEAD. Please be sure you
are using installed files that match whatever branch you're trying
to build from.

Yeah june and july 2018, a month in between. Just thought a release was not
so long ago.
```
git log REL_11_BETA2..6bf0bc842bd75 --format=oneline -- | wc -l
# 175
```
Ok, then probably no more questions.