Skip to content

Build failure with PG15: src/rumsort.c:1316:38: error: too many arguments to function ‘LogicalTapeBackspace’ #107

Closed
@df7cb

Description

@df7cb
21:36:33 ### PostgreSQL 15 loop ###
21:36:33 # 15: make
21:36:33 make[1]: Entering directory '/<<PKGBUILDDIR>>'
21:36:33 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 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I. -I./ -I/usr/include/postgresql/15/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o src/rumsort.o src/rumsort.c
21:36:33 src/rumsort.c: In function ‘rum_tuplesort_gettuple_common’:
21:36:33 src/rumsort.c:1316:64: warning: passing argument 1 of ‘LogicalTapeBackspace’ from incompatible pointer type [-Wincompatible-pointer-types]
21:36:33  1316 |                                 if (!LogicalTapeBackspace(state->tapeset,
21:36:33       |                                                           ~~~~~^~~~~~~~~
21:36:33       |                                                                |
21:36:33       |                                                                LogicalTapeSet *
21:36:33 In file included from src/rumsort.c:24:
21:36:33 /usr/include/postgresql/15/server/utils/logtape.h:72:49: note: expected ‘LogicalTape *’ but argument is of type ‘LogicalTapeSet *’
21:36:33    72 | extern size_t LogicalTapeBackspace(LogicalTape *lt, size_t size);
21:36:33       |                                    ~~~~~~~~~~~~~^~
21:36:33 src/rumsort.c:1316:38: error: too many arguments to function ‘LogicalTapeBackspace’
21:36:33  1316 |                                 if (!LogicalTapeBackspace(state->tapeset,
21:36:33       |                                      ^~~~~~~~~~~~~~~~~~~~
21:36:33 In file included from src/rumsort.c:24:
21:36:33 /usr/include/postgresql/15/server/utils/logtape.h:72:15: note: declared here
21:36:33    72 | extern size_t LogicalTapeBackspace(LogicalTape *lt, size_t size);
21:36:33       |               ^~~~~~~~~~~~~~~~~~~~
21:36:33 src/rumsort.c:1328:64: warning: passing argument 1 of ‘LogicalTapeBackspace’ from incompatible pointer type [-Wincompatible-pointer-types]
21:36:33  1328 |                                 if (!LogicalTapeBackspace(state->tapeset,
21:36:33       |                                                           ~~~~~^~~~~~~~~
21:36:33       |                                                                |
21:36:33       |                                                                LogicalTapeSet *
21:36:33 In file included from src/rumsort.c:24:
21:36:33 /usr/include/postgresql/15/server/utils/logtape.h:72:49: note: expected ‘LogicalTape *’ but argument is of type ‘LogicalTapeSet *’
21:36:33    72 | extern size_t LogicalTapeBackspace(LogicalTape *lt, size_t size);
21:36:33       |                                    ~~~~~~~~~~~~~^~
21:36:33 src/rumsort.c:1328:38: error: too many arguments to function ‘LogicalTapeBackspace’
21:36:33  1328 |                                 if (!LogicalTapeBackspace(state->tapeset,
21:36:33       |                                      ^~~~~~~~~~~~~~~~~~~~
...

Full build log: https://pgdgbuild.dus.dg-i.net/view/Binaries-Beta/job/postgresql-rum-binaries-beta/15/architecture=amd64,distribution=sid/console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions