pg_query-ocaml icon indicating copy to clipboard operation
pg_query-ocaml copied to clipboard

Cannot compile on Arch with postgresql 17

Open sclee15 opened this issue 5 months ago • 0 comments

I want to express my gratitude for your contributions to the OCaml community.

But I faced the following errors.

This is just a report. Please don't take any pressure. Thank you.

⬇ retrieved pg_query.0.9.8  (cached)
[ERROR] The compilation of pg_query.0.9.8 failed at "dune build -p pg_query -j 11 @install".

#=== ERROR while compiling pg_query.0.9.8 =====================================#
# context     2.3.0 | linux/x86_64 | ocaml-base-compiler.5.2.0 | https://opam.ocaml.org#9557e514656a5d081b6b5331d5c59ab04de908f1
# path        ... omitted
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p pg_query -j 11 @install
# exit-code   1
# env-file    ~/.opam/log/pg_query-170006-f3d7d8.env
# output-file ~/.opam/log/pg_query-170006-f3d7d8.out
### output ###
# src/pg_query_normalize.c:547:81: error: passing argument 2 of ‘raw_expression_tree_walker’ from incompatible pointer type [-Wincompatible-pointer-types]
# [...]
#       |                                                                                 ^~~~~~~~~~~~~~~~~~~
#       |                                                                                 |
#       |                                                                                 _Bool (*)(Node *, pgssConstLocations *)
# In file included from src/pg_query_normalize.c:9:
# ./src/postgres/include/nodes/nodeFuncs.h:155:59: note: expected ‘_Bool (*)(void)’ but argument is of type ‘_Bool (*)(Node *, pgssConstLocations *)’
#   155 | extern bool raw_expression_tree_walker(Node *node, bool (*walker) (),
#       |                                                    ~~~~~~~^~~~~~~~~~
# src/pg_query_normalize.c:357:13: note: ‘const_record_walker’ declared here
#   357 | static bool const_record_walker(Node *node, pgssConstLocations *jstate)
#       |             ^~~~~~~~~~~~~~~~~~~
# make: *** [Makefile:174: src/pg_query_normalize.o] Error 1

sclee15 avatar Aug 08 '25 08:08 sclee15