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

编译报错:gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=3’ #76

Open
xianglinsao1 opened this issue May 17, 2023 · 1 comment

Comments

@xianglinsao1
Copy link

pg version:15.2
os:Red Hat 4.8.5-39
执行命令:make && make install编译的时候报错如下:
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 -fPIC -I/usr/local/include/scws -I. -I./ -I/usr/pgsql-15/include/15/server -I/usr/pgsql-15/include/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o zhparser.o zhparser.c
gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=3’
gcc: error: unrecognized command line option ‘-Wcast-function-type’
gcc: error: unrecognized command line option ‘-Wdate-time’
make: *** [zhparser.o] Error 1

@zlianzhuang
Copy link
Collaborator

select select version();
可以查看到编译pg时用的gcc的版本。
你环境的版本最好与pg的保持一致。

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

2 participants