Bug#1123107: compyle: FTBFS: E error: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_compyle/.cache/pocl/kcache/tempfile_MQhbSJ.cl:74:29: use of undeclared identifier 'None'

Santiago Vila sanvila at debian.org
Tue Dec 16 19:42:30 GMT 2025


Package: src:compyle
Version: 0.9.1-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:compyle, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:317: python3.14 setup.py clean 
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_compyle/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.14' does not exist -- can't clean it
I: pybuild base:317: python3.13 setup.py clean 
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_compyle/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild

[... snipped ...]

FAILED ../../../compyle/tests/test_array.py::test_diff[float32-opencl] - Attr...
FAILED ../../../compyle/tests/test_array.py::test_diff[float64-opencl] - Attr...
FAILED ../../../compyle/tests/test_array.py::test_trapz[opencl] - AttributeEr...
FAILED ../../../compyle/tests/test_array.py::test_take_bool[opencl-int32] - p...
FAILED ../../../compyle/tests/test_array.py::test_take_bool[opencl-float32]
FAILED ../../../compyle/tests/test_array.py::test_take_bool[opencl-float64]
FAILED ../../../compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation
FAILED ../../../compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare
FAILED ../../../compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix
FAILED ../../../compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation
FAILED ../../../compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type
FAILED ../../../compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables
FAILED ../../../compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg
FAILED ../../../compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit
FAILED ../../../compyle/tests/test_low_level.py::TestKernel::test_kernel_with_local_memory_opencl
FAILED ../../../compyle/tests/test_low_level.py::TestKernel::test_simple_kernel_opencl
FAILED ../../../compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call
FAILED ../../../compyle/tests/test_low_level.py::TestCython::test_cython_with_externs
FAILED ../../../compyle/tests/test_template.py::test_simple_template - Attrib...
FAILED ../../../compyle/tests/test_template.py::test_that_source_code_is_available
FAILED ../../../compyle/tests/test_template.py::test_template_usable_in_code_generation
FAILED ../../../compyle/tests/test_template.py::test_template_with_extra_args
FAILED ../../../compyle/tests/test_translator.py::test_simple_assignment_expression
FAILED ../../../compyle/tests/test_translator.py::test_multiple_assignment_expressions
FAILED ../../../compyle/tests/test_translator.py::test_if_block - AssertionEr...
FAILED ../../../compyle/tests/test_translator.py::test_conditionals - Asserti...
FAILED ../../../compyle/tests/test_translator.py::test_ternary_operator - Ass...
FAILED ../../../compyle/tests/test_translator.py::test_multiple_boolops - Ass...
FAILED ../../../compyle/tests/test_translator.py::test_multiple_bitwise_ops
FAILED ../../../compyle/tests/test_translator.py::test_power - AssertionError...
FAILED ../../../compyle/tests/test_translator.py::test_calling_function - Ass...
FAILED ../../../compyle/tests/test_translator.py::test_calling_printf_with_string
FAILED ../../../compyle/tests/test_translator.py::test_subscript - AssertionE...
FAILED ../../../compyle/tests/test_translator.py::test_simple_function_with_return
FAILED ../../../compyle/tests/test_translator.py::test_annotated_function - A...
FAILED ../../../compyle/tests/test_translator.py::test_py3_annotations - Attr...
FAILED ../../../compyle/tests/test_translator.py::test_calling_method_of_known_type
FAILED ../../../compyle/tests/test_translator.py::test_calling_method_of_known_type_in_method
FAILED ../../../compyle/tests/test_translator.py::test_while - AssertionError...
FAILED ../../../compyle/tests/test_translator.py::test_bool_true_false_and_none
FAILED ../../../compyle/tests/test_translator.py::test_for - AssertionError: ...
FAILED ../../../compyle/tests/test_translator.py::test_for_with_decreasing_range
FAILED ../../../compyle/tests/test_translator.py::test_for_with_declare - Att...
FAILED ../../../compyle/tests/test_translator.py::test_two_fors - AssertionEr...
FAILED ../../../compyle/tests/test_translator.py::test_for_with_symbols - Att...
FAILED ../../../compyle/tests/test_translator.py::test_nested_for_with_symbols
FAILED ../../../compyle/tests/test_translator.py::test_with_two_functions - A...
FAILED ../../../compyle/tests/test_translator.py::test_for_with_break_continue
FAILED ../../../compyle/tests/test_translator.py::test_attribute_access - Ass...
FAILED ../../../compyle/tests/test_translator.py::test_declare_call_declares_variable
FAILED ../../../compyle/tests/test_translator.py::test_declare_matrix - Attri...
FAILED ../../../compyle/tests/test_translator.py::test_declare_call_declares_multiple_variables
FAILED ../../../compyle/tests/test_translator.py::test_class - AssertionError...
FAILED ../../../compyle/tests/test_translator.py::test_wrapping_class - Attri...
FAILED ../../../compyle/tests/test_translator.py::test_wrapping_class_with_ignore_methods
FAILED ../../../compyle/tests/test_translator.py::test_cuda_local_conversion
FAILED ../../../compyle/tests/test_translator.py::test_handles_parsing_functions
FAILED ../../../compyle/tests/test_translator.py::test_cast_works - Attribute...
= 65 failed, 212 passed, 57 skipped, 3 deselected, 1 xfailed, 32 warnings in 144.28s (0:02:24) =
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_compyle/build; python3.14 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --ignore=/<<PKGBUILDDIR>>/compyle/tests/test_cuda.py --ignore=/<<PKGBUILDDIR>>/compyle/tests/test_parallel.py /<<PKGBUILDDIR>>/compyle/tests
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_compyle/build; python3.13 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --ignore=/<<PKGBUILDDIR>>/compyle/tests/test_cuda.py --ignore=/<<PKGBUILDDIR>>/compyle/tests/test_parallel.py /<<PKGBUILDDIR>>/compyle/tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 338 items / 3 deselected / 335 selected

../../../compyle/tests/test_array.py ..s..s..s..s..s..s..s..s..s..s..s.. [ 10%]
s..s..s...s.sx..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s. [ 31%]
.s..s..s..s..s..s..ss..s......sss......sss......sss..s                   [ 48%]
../../../compyle/tests/test_ast_utils.py .......                         [ 50%]
../../../compyle/tests/test_capture_stream.py .....                      [ 51%]
../../../compyle/tests/test_change_backend.py ........                   [ 54%]
../../../compyle/tests/test_config.py ............                       [ 57%]
../../../compyle/tests/test_cython_generator.py ..................       [ 62%]
../../../compyle/tests/test_ext_module.py .........                      [ 65%]
../../../compyle/tests/test_gpu_struct.py s                              [ 65%]
../../../compyle/tests/test_jit.py ..........................            [ 73%]
../../../compyle/tests/test_low_level.py s.s.....                        [ 76%]
../../../compyle/tests/test_profile.py .....                             [ 77%]
../../../compyle/tests/test_template.py .....                            [ 79%]
../../../compyle/tests/test_translator.py .............................. [ 88%]
..........................                                               [ 95%]
../../../compyle/tests/test_transpiler.py ...                            [ 96%]
../../../compyle/tests/test_types.py .......                             [ 98%]
../../../compyle/tests/test_utils.py ....                                [100%]

=============================== warnings summary ===============================
compyle/tests/test_array.py: 8 warnings
compyle/tests/test_jit.py: 5 warnings
compyle/tests/test_translator.py: 108 warnings
  /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_Num is deprecated; add visit_Constant
    return visitor(node)

compyle/tests/test_array.py: 4 warnings
compyle/tests/test_translator.py: 108 warnings
  /<<PKGBUILDDIR>>/compyle/translator.py:692: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead
    return literal_to_float(node.n, self._use_double)

compyle/tests/test_array.py: 31 warnings
compyle/tests/test_change_backend.py: 2 warnings
  /usr/lib/python3/dist-packages/pyopencl/__init__.py:519: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
    lambda: self._prg.build(options_bytes, devices),

compyle/tests/test_array.py: 5 warnings
compyle/tests/test_template.py: 5 warnings
  /<<PKGBUILDDIR>>/compyle/template.py:48: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    template = body[-1].value.s

compyle/tests/test_array.py::test_align_multiple[opencl]
compyle/tests/test_array.py::test_align_multiple[opencl]
compyle/tests/test_translator.py::test_simple_function_with_return
compyle/tests/test_translator.py::test_calling_method_of_known_type_in_method
compyle/tests/test_translator.py::test_wrapping_class
compyle/tests/test_translator.py::test_wrapping_class
compyle/tests/test_translator.py::test_wrapping_class_with_ignore_methods
  /<<PKGBUILDDIR>>/compyle/translator.py:238: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    isinstance(body[0].value, ast.Str):

compyle/tests/test_array.py::test_radix_sort_by_keys
compyle/tests/test_array.py::test_radix_sort_by_keys
compyle/tests/test_array.py::test_radix_sort_by_keys
compyle/tests/test_array.py::test_radix_sort_by_keys
compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables
compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables
compyle/tests/test_jit.py::TestAnnotationHelper::test_no_return_value
compyle/tests/test_jit.py::TestAnnotationHelper::test_no_return_value
compyle/tests/test_jit.py::TestAnnotationHelper::test_undeclared_variable_declaration_in_for
  /<<PKGBUILDDIR>>/compyle/jit.py:295: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead
    return get_ctype_from_arg(node.n)

compyle/tests/test_array.py::test_diff[int32-opencl]
compyle/tests/test_array.py::test_diff[float32-opencl]
compyle/tests/test_array.py::test_diff[float64-opencl]
compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables
compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg
compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit
  /<<PKGBUILDDIR>>/compyle/jit.py:201: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    if not isinstance(node.args[0], ast.Str):

compyle/tests/test_array.py::test_diff[int32-opencl]
compyle/tests/test_array.py::test_diff[float32-opencl]
compyle/tests/test_array.py::test_diff[float64-opencl]
compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables
compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg
compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit
  /<<PKGBUILDDIR>>/compyle/jit.py:203: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    type_str = node.args[0].s

compyle/tests/test_array.py: 3 warnings
compyle/tests/test_low_level.py: 2 warnings
compyle/tests/test_translator.py: 14 warnings
  /<<PKGBUILDDIR>>/compyle/translator.py:354: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    if not isinstance(right.args[0], ast.Str):

compyle/tests/test_array.py: 3 warnings
compyle/tests/test_low_level.py: 2 warnings
compyle/tests/test_translator.py: 14 warnings
  /<<PKGBUILDDIR>>/compyle/translator.py:356: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    type = right.args[0].s

compyle/tests/test_array.py::test_trapz[cython]
compyle/tests/test_array.py::test_trapz[opencl]
  /<<PKGBUILDDIR>>/compyle/tests/test_array.py:469: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
    assert(array.trapz(y) == np.trapz(yn))

compyle/tests/test_array.py::test_trapz[cython]
compyle/tests/test_array.py::test_trapz[opencl]
  /<<PKGBUILDDIR>>/compyle/tests/test_array.py:470: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
    assert(array.trapz(y, x,) == np.trapz(yn, xn))

compyle/tests/test_array.py::test_trapz[cython]
compyle/tests/test_array.py::test_trapz[opencl]
  /<<PKGBUILDDIR>>/compyle/tests/test_array.py:471: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
    assert(array.trapz(y, dx=3) == np.trapz(yn, dx=3))

compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation
compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call
compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call
compyle/tests/test_low_level.py::TestCython::test_cython_with_externs
  /<<PKGBUILDDIR>>/compyle/cython_generator.py:250: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    if not isinstance(arg0, ast.Str):

compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix
compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation
compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call
compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call
compyle/tests/test_low_level.py::TestCython::test_cython_with_externs
  /<<PKGBUILDDIR>>/compyle/cython_generator.py:254: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    return get_declare_info(arg0.s)

compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source
compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source
compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source
compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source
compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source
  /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=376) is multi-threaded, use of fork() may lead to deadlocks in the child.
    self.pid = os.fork()

compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type
  /<<PKGBUILDDIR>>/compyle/jit.py:207: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    if not isinstance(node.args[1], ast.Str):

compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type
  /<<PKGBUILDDIR>>/compyle/jit.py:209: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    return node.args[1].s

compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_as_call_arg
  /<<PKGBUILDDIR>>/compyle/jit.py:198: UserWarning: 
  In code in line 5:
  
      return g(sin(a))
               ^
  
  
  Function called is not marked by the annotate decorator. Argument
  type defaulting to 'double'. If the type is not 'double', store
  the value in a variable of appropriate type and use the variable
  
    warnings.warn(msg)

compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_in_return
  /<<PKGBUILDDIR>>/compyle/jit.py:198: UserWarning: 
  In code in line 5:
  
      return sin(a)
             ^
  
  
  Function called is not marked by the annotate decorator. Argument
  type defaulting to 'double'. If the type is not 'double', store
  the value in a variable of appropriate type and use the variable
  
    warnings.warn(msg)

compyle/tests/test_template.py::test_simple_template
compyle/tests/test_template.py::test_simple_template
compyle/tests/test_template.py::test_that_source_code_is_available
  /<<PKGBUILDDIR>>/compyle/template.py:49: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    docstring = body[0].value.s if len(body) == 2 else ''

compyle/tests/test_translator.py::test_calling_printf_with_string
compyle/tests/test_translator.py::test_calling_printf_with_string
  /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_Str is deprecated; add visit_Constant
    return visitor(node)

compyle/tests/test_translator.py::test_calling_printf_with_string
compyle/tests/test_translator.py::test_calling_printf_with_string
  /<<PKGBUILDDIR>>/compyle/translator.py:710: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    return r'"%s"' % node.s

compyle/tests/test_translator.py::test_bool_true_false_and_none
compyle/tests/test_translator.py::test_bool_true_false_and_none
compyle/tests/test_translator.py::test_bool_true_false_and_none
compyle/tests/test_translator.py::test_bool_true_false_and_none
  /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_NameConstant is deprecated; add visit_Constant
    return visitor(node)

compyle/tests/test_translator.py::test_cast_works
compyle/tests/test_translator.py::test_cast_works
  /<<PKGBUILDDIR>>/compyle/translator.py:398: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    return '(%s) (%s)' % (node.args[1].s, self.visit(node.args[0]))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
= 277 passed, 57 skipped, 3 deselected, 1 xfailed, 388 warnings in 174.85s (0:02:54) =
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the debian-science-maintainers mailing list