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

24.2.1: build fails with CFLAGS="-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3" #2028

Open
kloczek opened this issue Apr 5, 2024 · 0 comments
Open

Comments

@kloczek
Copy link

kloczek commented Apr 5, 2024

glibc headers files whew in $CFLAGS is used -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 are turning some warnings into errors

/usr/bin/gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -D_GNU_SOURCE -fPIC -fwrapv -ffat-lto-objects -fno-semantic-interposition -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -mtls-dialect=gnu2 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -I/usr/include/libev -fPIC -I/usr/include/python3.10 -I/usr/include/python3.10 -Isrc/gevent -Isrc/gevent/libev -Isrc/gevent/resolver -I. -I/usr/include/python3.10 -c src/gevent/queue.c -o build/temp.linux-x86_64-cpython-310/src/gevent/queue.o
src/gevent/queue.c: In function ‘__pyx_pf_6gevent_14_gevent_cqueue_12UnboundQueue_2put’:
src/gevent/queue.c:11889:83: error: passing argument 1 of ‘__pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put’ from incompatible pointer type [-Wincompatible-pointer-types]
11889 |   __pyx_t_1 = __pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put(__pyx_v_self, __pyx_v_item, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 432, __pyx_L1_error)
      |                                                                                   ^~~~~~~~~~~~
      |                                                                                   |
      |                                                                                   struct __pyx_obj_6gevent_14_gevent_cqueue_UnboundQueue *
src/gevent/queue.c:11889:83: note: expected ‘struct __pyx_obj_6gevent_14_gevent_cqueue_Queue *’ but argument is of type ‘struct __pyx_obj_6gevent_14_gevent_cqueue_UnboundQueue *’
src/gevent/queue.c:11889:114: error: passing argument 4 of ‘__pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put’ from incompatible pointer type [-Wincompatible-pointer-types]
11889 |   __pyx_t_1 = __pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put(__pyx_v_self, __pyx_v_item, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 432, __pyx_L1_error)
      |                                                                                                                  ^~~~~~~~~~
      |                                                                                                                  |
      |                                                                                                                  struct __pyx_opt_args_6gevent_14_gevent_cqueue_12UnboundQueue_put *
src/gevent/queue.c:11889:114: note: expected ‘struct __pyx_opt_args_6gevent_14_gevent_cqueue_5Queue_put *’ but argument is of type ‘struct __pyx_opt_args_6gevent_14_gevent_cqueue_12UnboundQueue_put *’
src/gevent/queue.c: At top level:
src/gevent/queue.c:7630:12: warning: ‘__pyx_pw_6gevent_14_gevent_cqueue_5Queue_25__nonzero__’ defined but not used [-Wunused-function]
 7630 | static int __pyx_pw_6gevent_14_gevent_cqueue_5Queue_25__nonzero__(PyObject *__pyx_v_self) {
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
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