Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
  1. Error compiling Cython file:
  2. ------------------------------------------------------------
  3. ...
  4. IF HAVE_SINGLE_MULTITHREADING:
  5. fftwf_init_threads()
  6. IF HAVE_LONG_MULTITHREADING:
  7. fftwl_init_threads()
  8. Py_AtExit(_cleanup)
  9. ^
  10. ------------------------------------------------------------
  11. pyfftw/pyfftw.pyx:756:10: Cannot assign type 'void (void) except *' to 'void (*)(void) noexcept'
  12. warning: pyfftw/pyfftw.pyx:414:22: Casting a GIL-requiring function into a nogil function circumvents GIL validation
  13. warning: pyfftw/pyfftw.pyx:420:22: Casting a GIL-requiring function into a nogil function circumvents GIL validation
  14. warning: pyfftw/pyfftw.pyx:425:23: Casting a GIL-requiring function into a nogil function circumvents GIL validation
  15. warning: pyfftw/pyfftw.pyx:430:23: Casting a GIL-requiring function into a nogil function circumvents GIL validation
  16. warning: pyfftw/pyfftw.pyx:437:23: Casting a GIL-requiring function into a nogil function circumvents GIL validation
  17. Error compiling Cython file:
  18. ------------------------------------------------------------
  19. ...
  20. # count the length of the string and extract it manually rather than using
  21. # `fftw_export_wisdom_to_string` to avoid calling `free` on the string
  22. # potentially allocated by a different C library; see #3
  23. IF HAVE_DOUBLE:
  24. fftw_export_wisdom(&count_char, <void *>&counter)
  25. ^
  26. ------------------------------------------------------------
  27. pyfftw/pyfftw.pyx:2053:27: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  28. Error compiling Cython file:
  29. ------------------------------------------------------------
  30. ...
  31. c_wisdom = <char *>malloc(sizeof(char)*(counter + 1))
  32. if c_wisdom == NULL:
  33. raise MemoryError
  34. # Set the pointers to the string pointers
  35. cdef intptr_t c_wisdom_ptr = <intptr_t>c_wisdom
  36. fftw_export_wisdom(&write_char_to_string, <void *>&c_wisdom_ptr)
  37. ^
  38. ------------------------------------------------------------
  39. pyfftw/pyfftw.pyx:2059:27: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  40. Error compiling Cython file:
  41. ------------------------------------------------------------
  42. ...
  43. try:
  44. py_wisdom = c_wisdom
  45. finally:
  46. free(c_wisdom)
  47. IF HAVE_SINGLE:
  48. fftwf_export_wisdom(&count_char, <void *>&counterf)
  49. ^
  50. ------------------------------------------------------------
  51. pyfftw/pyfftw.pyx:2067:28: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  52. Error compiling Cython file:
  53. ------------------------------------------------------------
  54. ...
  55. fftwf_export_wisdom(&count_char, <void *>&counterf)
  56. c_wisdomf = <char *>malloc(sizeof(char)*(counterf + 1))
  57. if c_wisdomf == NULL:
  58. raise MemoryError
  59. cdef intptr_t c_wisdomf_ptr = <intptr_t>c_wisdomf
  60. fftwf_export_wisdom(&write_char_to_string, <void *>&c_wisdomf_ptr)
  61. ^
  62. ------------------------------------------------------------
  63. pyfftw/pyfftw.pyx:2072:28: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  64. Error compiling Cython file:
  65. ------------------------------------------------------------
  66. ...
  67. try:
  68. py_wisdomf = c_wisdomf
  69. finally:
  70. free(c_wisdomf)
  71. IF HAVE_LONG:
  72. fftwl_export_wisdom(&count_char, <void *>&counterl)
  73. ^
  74. ------------------------------------------------------------
  75. pyfftw/pyfftw.pyx:2079:28: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  76. Error compiling Cython file:
  77. ------------------------------------------------------------
  78. ...
  79. fftwl_export_wisdom(&count_char, <void *>&counterl)
  80. c_wisdoml = <char *>malloc(sizeof(char)*(counterl + 1))
  81. if c_wisdoml == NULL:
  82. raise MemoryError
  83. cdef intptr_t c_wisdoml_ptr = <intptr_t>c_wisdoml
  84. fftwl_export_wisdom(&write_char_to_string, <void *>&c_wisdoml_ptr)
  85. ^
  86. ------------------------------------------------------------
  87. pyfftw/pyfftw.pyx:2084:28: Cannot assign type 'void (*)(char, void *) except *' to 'void (*)(char, void *) noexcept'
  88. Traceback (most recent call last):
  89. File "/home/massimo/.cache/yay/python-pyfftw/src/pyFFTW-0.13.1/setup.py", line 827, in <module>
  90. setup_package()
  91. File "/home/massimo/.cache/yay/python-pyfftw/src/pyFFTW-0.13.1/setup.py", line 824, in setup_package
  92. setup(**setup_args)
  93. File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
  94. return distutils.core.setup(**attrs)
  95. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  96. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
  97. return run_commands(dist)
  98. ^^^^^^^^^^^^^^^^^^
  99. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
  100. dist.run_commands()
  101. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
  102. self.run_command(cmd)
  103. File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
  104. super().run_command(command)
  105. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
  106. cmd_obj.run()
  107. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
  108. self.run_command(cmd_name)
  109. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
  110. self.distribution.run_command(command)
  111. File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
  112. super().run_command(command)
  113. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
  114. cmd_obj.run()
  115. File "/usr/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
  116. _build_ext.run(self)
  117. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
  118. self.build_extensions()
  119. File "/home/massimo/.cache/yay/python-pyfftw/src/pyFFTW-0.13.1/setup.py", line 643, in build_extensions
  120. build_ext.build_extensions(self)
  121. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
  122. self._build_extensions_serial()
  123. File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
  124. self.build_extension(ext)
  125. File "/usr/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
  126. _build_ext.build_extension(self, ext)
  127. File "/usr/lib/python3.11/site-packages/Cython/Distutils/build_ext.py", line 122, in build_extension
  128. new_ext = cythonize(
  129. ^^^^^^^^^^
  130. File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
  131. cythonize_one(*args)
  132. File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
  133. raise CompileError(None, pyx_file)
  134. Cython.Compiler.Errors.CompileError: pyfftw/pyfftw.pyx
  135. ==> ERROR: A failure occurred in build().
  136. Aborting...
  137. -> error making: python-pyfftw-exit status 4
  138. -> Failed to install the following packages. Manual intervention is required:
  139. python-pyfftw - exit status 4

Edit this Snippet