Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make USE_PGXS=1 ends with error 1 #8

Closed
To4e opened this issue Oct 19, 2016 · 5 comments
Closed

make USE_PGXS=1 ends with error 1 #8

To4e opened this issue Oct 19, 2016 · 5 comments
Labels

Comments

@To4e
Copy link

To4e commented Oct 19, 2016

Hi,
when I run "make USE_PGXS=1" it ends with "Error 1".

My env:

  • psql (PostgreSQL) 9.6.0,
  • gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4),
  • centos-release-7-2.1511.el7.centos.2.10.x86_64

Here is the full text:

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_ADJ=0 -fpic -I. -I./ -I/usr/pgsql-9.6/include/server -I/usr/pgsql-9.6/include/internal -D_GNU_SOURCE -I/usr/include/lib
xml2  -I/usr/include  -c -o rumsort.o rumsort.c
In file included from /usr/pgsql-9.6/include/server/utils/probes.h:10:0,
                 from rumsort.c:136:
rumsort.c: In function ‘rum_tuplesort_begin_rum’:
rumsort.c:1160:9: error: ‘enforceUnique’ undeclared (first use in this function)
         enforceUnique,
         ^
rumsort.c:1159:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
rumsort.c:1160:9: note: each undeclared identifier is reported only once for each function it appears in
         enforceUnique,
         ^
rumsort.c:1159:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1159:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1159:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^                                                                                                                                                                                                                                  [2/1925]
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1159:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
rumsort.c: In function ‘rum_tuplesort_begin_rumkey’:
rumsort.c:1193:9: error: ‘enforceUnique’ undeclared (first use in this function)
         enforceUnique,
         ^
rumsort.c:1192:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1192:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1192:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
/usr/pgsql-9.6/include/server/utils/probes.h:285:1: error: first argument to ‘__builtin_choose_expr’ not a constant
 DTRACE_PROBE5 (postgresql, sort__start, arg1, arg2, arg3, arg4, arg5)
 ^
rumsort.c:1192:2: note: in expansion of macro ‘TRACE_POSTGRESQL_SORT_START’
  TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
  ^
make: *** [rumsort.o] Error 1
@za-arthur za-arthur reopened this Oct 19, 2016
@za-arthur
Copy link
Contributor

Hello,

Thank you for the issue. Fixed. Check please.

@za-arthur za-arthur added the bug label Oct 19, 2016
@To4e
Copy link
Author

To4e commented Oct 19, 2016

Yep, everything is fine, thank you very much. And special thanks for the operativeness.

@To4e To4e closed this as completed Oct 19, 2016
@webbery
Copy link

webbery commented Jun 17, 2017

Hi, I follow the rum installation make USE_PGXS=1 but get an error. My postgres installed with command 'apt-get install postgres-9.6'. gcc version is 5.4.0 and Ubuntu is 16.04. Detail error is:

Makefile:27: /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target '/usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk'.  Stop

@za-arthur
Copy link
Contributor

Hello,
Try to install postgresql-server-dev-9.6 package please. It would be nice if you give a feedback if it will help.

@webbery
Copy link

webbery commented Jun 18, 2017

Yes, it works. thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants