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

PG 15 Compile Error #3

Open
maydodu opened this issue Jan 16, 2024 · 0 comments
Open

PG 15 Compile Error #3

maydodu opened this issue Jan 16, 2024 · 0 comments

Comments

@maydodu
Copy link

maydodu commented Jan 16, 2024

$ make
make -C ../../src/backend generated-headers
make[1]: Entering directory '/home/maydogdu/sandbox/postgres/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory '/home/maydogdu/sandbox/postgres/src/backend/catalog'
make[2]: Nothing to be done for 'distprep'.
make[2]: Nothing to be done for 'generated-header-symlinks'.
make[2]: Leaving directory '/home/maydogdu/sandbox/postgres/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory '/home/maydogdu/sandbox/postgres/src/backend/utils'
make[2]: Nothing to be done for 'distprep'.
make[2]: Nothing to be done for 'generated-header-symlinks'.
make[2]: Leaving directory '/home/maydogdu/sandbox/postgres/src/backend/utils'
make[1]: Leaving directory '/home/maydogdu/sandbox/postgres/src/backend'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/pgqp_explain.o src/pgqp_explain.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/buffer.o src/buffer.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/hash.o src/hash.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/bgworker.o src/bgworker.c
/usr/bin/bison -Wno-deprecated  -d -o src/planid_parser.c src/planid_parser.y
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/planid_parser.o src/planid_parser.c
/usr/bin/flex  -CF -p -o'src/planid_scanner.c' src/planid_scanner.l
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/planid_scanner.o src/planid_scanner.c
/usr/bin/bison -Wno-deprecated  -d -o src/param_parser.c src/param_parser.y
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/param_parser.o src/param_parser.c
/usr/bin/flex  -CF -p -o'src/param_scanner.c' src/param_scanner.l
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/param_scanner.o src/param_scanner.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/qpam.o src/qpam.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/adjust_rows.o src/adjust_rows.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/pg_query_plan.o src/pg_query_plan.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_costsize.o src/optimizer/pgqp_costsize.c
src/optimizer/pgqp_costsize.c:6824:1: warning: ‘get_expr_width’ defined but not used [-Wunused-function]
 6824 | get_expr_width(PlannerInfo *root, const Node *expr)
      | ^~~~~~~~~~~~~~
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_indexpath.o src/optimizer/pgqp_indexpath.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_inherit.o src/optimizer/pgqp_inherit.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_initsplan.o src/optimizer/pgqp_initsplan.c
src/optimizer/pgqp_initsplan.c:112:14: warning: ‘deconstruct_recurse’ declared ‘static’ but never defined [-Wunused-function]
  112 | static List *deconstruct_recurse(PlannerInfo *root, Node *jtnode,
      |              ^~~~~~~~~~~~~~~~~~~
src/optimizer/pgqp_initsplan.c:179:13: warning: ‘check_outerjoin_delay’ used but never defined
  179 | static bool check_outerjoin_delay(PlannerInfo *root, Relids *relids_p,
      |             ^~~~~~~~~~~~~~~~~~~~~
src/optimizer/pgqp_initsplan.c:181:13: warning: ‘check_equivalence_delay’ used but never defined
  181 | static bool check_equivalence_delay(PlannerInfo *root,
      |             ^~~~~~~~~~~~~~~~~~~~~~~
src/optimizer/pgqp_initsplan.c:1936:1: warning: ‘make_outerjoininfo’ defined but not used [-Wunused-function]
 1936 | make_outerjoininfo(PlannerInfo *root,
      | ^~~~~~~~~~~~~~~~~~
src/optimizer/pgqp_initsplan.c:1816:1: warning: ‘process_security_barrier_quals’ defined but not used [-Wunused-function]
 1816 | process_security_barrier_quals(PlannerInfo *root,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_joinpath.o src/optimizer/pgqp_joinpath.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_pathnode.o src/optimizer/pgqp_pathnode.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_planagg.o src/optimizer/pgqp_planagg.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_planmain.o src/optimizer/pgqp_planmain.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_preunion.o src/optimizer/pgqp_preunion.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_relnode.o src/optimizer/pgqp_relnode.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_setrefs.o src/optimizer/pgqp_setrefs.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O0 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o src/optimizer/pgqp_allpaths.o src/optimizer/pgqp_allpaths.c
In file included from ../../src/include/catalog/pg_operator.h:23,
                 from src/optimizer/pgqp_allpaths.c:21:
src/optimizer/pgqp_allpaths.c: In function ‘set_function_pathlist’:
../../src/include/catalog/pg_operator_d.h:57:26: warning: passing argument 3 of ‘build_expression_pathkey’ makes pointer from integer without a cast [-Wint-conversion]
   57 | #define Int8LessOperator 412
      |                          ^~~
      |                          |
      |                          int
src/optimizer/pgqp_allpaths.c:3232:97: note: in expansion of macro ‘Int8LessOperator’
 3232 |                                                                                                 Int8LessOperator,
      |                                                                                                 ^~~~~~~~~~~~~~~~
In file included from src/optimizer/pgqp_allpaths.c:40:
../../src/include/optimizer/paths.h:219:82: note: expected ‘Relids’ {aka ‘Bitmapset *’} but argument is of type ‘int’
  219 |                                                                           Relids nullable_relids, Oid opno,
      |                                                                           ~~~~~~~^~~~~~~~~~~~~~~
src/optimizer/pgqp_allpaths.c:3233:97: warning: passing argument 4 of ‘build_expression_pathkey’ makes integer from pointer without a cast [-Wint-conversion]
 3233 |                                                                                                 NULL,   /* below outer joins */
      |                                                                                                 ^~~~
      |                                                                                                 |
      |                                                                                                 void *
In file included from src/optimizer/pgqp_allpaths.c:40:
../../src/include/optimizer/paths.h:219:103: note: expected ‘Oid’ {aka ‘unsigned int’} but argument is of type ‘void *’
  219 |                                                                           Relids nullable_relids, Oid opno,
      |                                                                                                   ~~~~^~~~
In file included from ../../src/include/catalog/pg_operator.h:23,
                 from src/optimizer/pgqp_allpaths.c:21:
../../src/include/catalog/pg_operator_d.h:57:26: warning: passing argument 5 of ‘build_expression_pathkey’ makes pointer from integer without a cast [-Wint-conversion]
   57 | #define Int8LessOperator 412
      |                          ^~~
      |                          |
      |                          int
src/optimizer/pgqp_allpaths.c:3234:97: note: in expansion of macro ‘Int8LessOperator’
 3234 |                                                                                                 Int8LessOperator,
      |                                                                                                 ^~~~~~~~~~~~~~~~
In file included from src/optimizer/pgqp_allpaths.c:40:
../../src/include/optimizer/paths.h:220:82: note: expected ‘Relids’ {aka ‘Bitmapset *’} but argument is of type ‘int’
  220 |                                                                           Relids rel, bool create_it);
      |                                                                           ~~~~~~~^~~
src/optimizer/pgqp_allpaths.c:3230:36: error: too many arguments to function ‘build_expression_pathkey’
 3230 |                         pathkeys = build_expression_pathkey(root,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/optimizer/pgqp_allpaths.c:40:
../../src/include/optimizer/paths.h:218:14: note: declared here
  218 | extern List *build_expression_pathkey(PlannerInfo *root, Expr *expr,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
src/optimizer/pgqp_allpaths.c: In function ‘qual_is_pushdown_safe’:
src/optimizer/pgqp_allpaths.c:4572:25: warning: statement with no effect [-Wunused-value]
 4572 |                         safe  false;
      |                         ^~~~
src/optimizer/pgqp_allpaths.c:4572:29: error: expected ‘;’ before numeric constant
 4572 |                         safe  false;
      |                             ^
      |                             ;
src/optimizer/pgqp_allpaths.c:4588:25: warning: statement with no effect [-Wunused-value]
 4588 |                         safe  false;
      |                         ^~~~
src/optimizer/pgqp_allpaths.c:4588:29: error: expected ‘;’ before numeric constant
 4588 |                         safe  false;
      |                             ^
      |                             ;
src/optimizer/pgqp_allpaths.c:4602:25: warning: statement with no effect [-Wunused-value]
 4602 |                         safe  false;
      |                         ^~~~
src/optimizer/pgqp_allpaths.c:4602:29: error: expected ‘;’ before numeric constant
 4602 |                         safe  false;
      |                             ^
      |                             ;
src/optimizer/pgqp_allpaths.c:4628:25: warning: statement with no effect [-Wunused-value]
 4628 |                         safe  false;
      |                         ^~~~
src/optimizer/pgqp_allpaths.c:4628:29: error: expected ‘;’ before numeric constant
 4628 |                         safe  false;
      |                             ^
      |                             ;
make: *** [<builtin>: src/optimizer/pgqp_allpaths.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant