-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
@devrimgunduz
Description
Hi,
jsqıery fails to build against GCC 13 (Fedora 38). Can you please take a look? Thanks!
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 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o jsquery_support.o jsquery_support.c
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsonb_gin_ops.bc jsonb_gin_ops.c
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_constr.bc jsquery_constr.c
In file included from /usr/pgsql-15/include/server/access/gin.h:14,
from jsquery.h:18,
from jsquery_support.c:17:
jsquery_support.c: In function 'alignStringInfoInt':
/usr/pgsql-15/include/server/lib/stringinfo.h:130:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
129 | (((str)->len + 1 >= (str)->maxlen) ? \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130 | appendStringInfoChar(str, ch) : \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
131 | (void)((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '0円'))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsquery_support.c:35:25: note: in expansion of macro 'appendStringInfoCharMacro'
35 | appendStringInfoCharMacro(buf, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
jsquery_support.c:36:17: note: here
36 | case 2:
| ^~~~
/usr/pgsql-15/include/server/lib/stringinfo.h:130:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
129 | (((str)->len + 1 >= (str)->maxlen) ? \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130 | appendStringInfoChar(str, ch) : \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
131 | (void)((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '0円'))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsquery_support.c:37:25: note: in expansion of macro 'appendStringInfoCharMacro'
37 | appendStringInfoCharMacro(buf, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
jsquery_support.c:38:17: note: here
38 | case 1:
| ^~~~
jsquery_support.c: In function 'jsqInitByBuffer':
jsquery_support.c:63:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
63 | case 3: pos++;
| ~~~^~
jsquery_support.c:64:17: note: here
64 | case 2: pos++;
| ^~~~
jsquery_support.c:64:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
64 | case 2: pos++;
| ~~~^~
jsquery_support.c:65:17: note: here
65 | case 1: pos++;
| ^~~~
jsquery_support.c:26:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
26 | (p) += sizeof(int32); \
| ~~~~^~~~~~~~~~~~~~~~
jsquery_support.c:88:25: note: in expansion of macro 'read_int32'
88 | read_int32(v->value.datalen, base, pos);
| ^~~~~~~~~~
jsquery_support.c:90:17: note: here
90 | case jqiNumeric:
| ^~~~
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_extract.bc jsquery_extract.c
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_gram.bc jsquery_gram.c
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_io.bc jsquery_io.c
jsquery_io.c: In function 'flattenJsQueryParseItem':
jsquery_io.c:45:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
45 | if (onlyCurrentInPath)
| ^
jsquery_io.c:47:17: note: here
47 | case jqiString:
| ^~~~
jsquery_io.c:118:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
118 | appendBinaryStringInfo(buf, (char*)&item->arrayIndex,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119 | sizeof(item->arrayIndex));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
jsquery_io.c:120:17: note: here
120 | case jqiAny:
| ^~~~
jsquery_io.c: In function 'printJsQueryItem':
jsquery_io.c:239:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
239 | if (inKey)
| ^
jsquery_io.c:242:17: note: here
242 | case jqiString:
| ^~~~
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_op.bc jsquery_op.c
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2 -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o jsquery_support.bc jsquery_support.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 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -I. -I./ -I/usr/pgsql-15/include/server -I/usr/pgsql-15/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o jsquery_gram.o jsquery_gram.c
jsquery_gram.y:73:18: error: call to undeclared function 'pg_atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
v->arrayIndex = pg_atoi(s->val, 4, 0);
^
1 error generated.
make[1]: *** [/usr/pgsql-15/lib/pgxs/src/makefiles/../../src/Makefile.global:1081: jsquery_gram.bc] Error 1
make[1]: *** Waiting for unfinished jobs....
jsquery_op.c: In function 'recursiveExecute':
jsquery_op.c:545:57: warning: variable 'r' set but not used [-Wunused-but-set-variable]
545 | int32 r;
| ^
jsquery_op.c:732:57: warning: variable 'r' set but not used [-Wunused-but-set-variable]
732 | int32 r;
| ^
jsquery_extract.c: In function 'recursiveExtract':
jsquery_extract.c:170:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
170 | else if (e.type != jqiArray)
| ^
jsquery_extract.c:182:17: note: here
182 | case jqiIn:
| ^~~~
jsquery_gram.y: In function 'makeIndexArray':
jsquery_gram.y:73:25: warning: implicit declaration of function 'pg_atoi'; did you mean 'pg_ltoa'? [-Wimplicit-function-declaration]
73 | v->arrayIndex = pg_atoi(s->val, 4, 0);
| ^~~~~~~
| pg_ltoa
make[1]: Leaving directory '/Projects/repo/pgrpms/rpm/redhat/main/non-common/jsquery/main/jsquery-ver_1.1.1'
error: Bad exit status from /var/tmp/rpm-tmp.ckoFhH (%build)
Metadata
Metadata
Assignees
Labels
No labels