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

Gappy build incompatible with cysignals==1.12.0 #28

Open
wiwu2390 opened this issue Nov 27, 2024 · 0 comments
Open

Gappy build incompatible with cysignals==1.12.0 #28

wiwu2390 opened this issue Nov 27, 2024 · 0 comments

Comments

@wiwu2390
Copy link

A workaround is to use cysignals==1.11.4 instead, but maybe there's a nicer fix?
Error output below:

      In file included from gappy/core.c:797:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘_sig_on_prejmp’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:117:5: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        117 |     cysigs.s = message;
            |     ^~~~~~
            |     cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:117:5: note: each undeclared identifier is reported only once for each function it appears in
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘_sig_on_postjmp’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:149:9: error: implicit declaration of function ‘unlikely’ [-Wimplicit-function-declaration]
        149 |     if (unlikely(jmpret > 0))
            |         ^~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:152:9: error: implicit declaration of function ‘_sig_on_recover’ [-Wimplicit-function-declaration]
        152 |         _sig_on_recover();
            |         ^~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:158:5: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        158 |     cysigs.sig_on_count = 1;
            |     ^~~~~~
            |     cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:168:9: error: implicit declaration of function ‘_sig_on_interrupt_received’ [-Wimplicit-function-declaration]
        168 |         _sig_on_interrupt_received();
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘_sig_off_’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:190:18: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        190 |     if (unlikely(cysigs.sig_on_count <= 0))
            |                  ^~~~~~
            |                  cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:192:9: error: implicit declaration of function ‘_sig_off_warning’ [-Wimplicit-function-declaration]
        192 |         _sig_off_warning(file, line);
            |         ^~~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘sig_check’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:218:18: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        218 |     if (unlikely(cysigs.interrupt_received) && cysigs.sig_on_count == 0)
            |                  ^~~~~~
            |                  cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘sig_block’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:252:7: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        252 |     ++cysigs.block_sigint;
            |       ^~~~~~
            |       cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘sig_unblock’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:265:7: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        265 |     --cysigs.block_sigint;
            |       ^~~~~~
            |       cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘sig_retry’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:281:18: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        281 |     if (unlikely(cysigs.sig_on_count <= 0))
            |                  ^~~~~~
            |                  cysigs_t
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h: In function ‘sig_error’:
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:294:18: error: ‘cysigs’ undeclared (first use in this function); did you mean ‘cysigs_t’?
        294 |     if (unlikely(cysigs.sig_on_count <= 0))
            |                  ^~~~~~
            |                  cysigs_t
      gappy/core.c: At top level:
      gappy/core.c:2482:15: error: ‘_sig_on_interrupt_received’ redeclared as different kind of symbol
       2482 | static void (*_sig_on_interrupt_received)(void); /*proto*/
            |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:168:9: note: previous implicit declaration of ‘_sig_on_interrupt_received’ with type ‘int()’
        168 |         _sig_on_interrupt_received();
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      gappy/core.c:2483:15: error: ‘_sig_on_recover’ redeclared as different kind of symbol
       2483 | static void (*_sig_on_recover)(void); /*proto*/
            |               ^~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:152:9: note: previous implicit declaration of ‘_sig_on_recover’ with type ‘int()’
        152 |         _sig_on_recover();
            |         ^~~~~~~~~~~~~~~
      gappy/core.c:2484:15: error: ‘_sig_off_warning’ redeclared as different kind of symbol
       2484 | static void (*_sig_off_warning)(char const *, int); /*proto*/
            |               ^~~~~~~~~~~~~~~~
      /tmp/pip-build-env-t5rwztp9/overlay/lib/python3.10/site-packages/cysignals/macros.h:192:9: note: previous implicit declaration of ‘_sig_off_warning’ with type ‘int()’
        192 |         _sig_off_warning(file, line);
            |         ^~~~~~~~~~~~~~~~
      gappy/core.c:2484:15: warning: ‘_sig_off_warning’ defined but not used [-Wunused-variable]
       2484 | static void (*_sig_off_warning)(char const *, int); /*proto*/
            |               ^~~~~~~~~~~~~~~~
      gappy/core.c:2483:15: warning: ‘_sig_on_recover’ defined but not used [-Wunused-variable]
       2483 | static void (*_sig_on_recover)(void); /*proto*/
            |               ^~~~~~~~~~~~~~~
      gappy/core.c:2482:15: warning: ‘_sig_on_interrupt_received’ defined but not used [-Wunused-variable]
       2482 | static void (*_sig_on_interrupt_received)(void); /*proto*/
            |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
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