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

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

From
Siarhei Siniak
Date:
1. Currently, cube extension has CUBE_MAX_DIM set as 100.
A recent github issue. [1]
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],
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.


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




---------- 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.