godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Build failure

Open kiufta opened this issue 3 years ago • 0 comments

scons 4.4.0, cython 0.29.32, Python 3.10 building for https://github.com/7BIndustries/Semblage/blob/master/.github/workflows/export.yml :

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
python generation/generate_gdnative_api_struct.py --input godot_headers --output build/x11-64/pythonscript/godot/_hazmat/gdnative_api_struct.pxd
python generation/generate_bindings.py --input godot_headers/api.json --output build/x11-64/pythonscript/godot/bindings.pyx
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Object.call` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Object.call_deferred` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Object.emit_signal` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Node.rpc` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Node.rpc_id` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Node.rpc_unreliable` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `Node.rpc_unreliable_id` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `TreeItem.call_recursive` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `UndoRedo.add_do_method` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `UndoRedo.add_undo_method` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `FuncRef.call_func` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `GDScriptFunctionState._signal_callback` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `VisualScriptFunctionState._signal_callback` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `GDScript.new` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `NativeScript.new` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `PluginScript.new` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `ArrayMesh.lightmap_unwrap` (attribute `is_editor=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `ArrayMesh.regen_normalmaps` (attribute `is_editor=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `CollisionShape.make_convex_from_brothers` (attribute `is_editor=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `GIProbe.debug_bake` (attribute `is_editor=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `MeshInstance.create_debug_tangents` (attribute `is_editor=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `SceneTree.call_group` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
./godot-python/generation/generate_bindings.py:284: UserWarning: Ignoring `SceneTree.call_group_flags` (attribute `has_varargs=True` not supported)
  warn(f"Ignoring `{klass.name}.{meth.name}` ({unsupported_reason})")
Generating build/x11-64/pythonscript/godot/bindings.pyx
Generating build/x11-64/pythonscript/godot/bindings.pyi
Generating build/x11-64/pythonscript/godot/bindings.pxd
python generation/generate_pool_arrays.py --output build/x11-64/pythonscript/godot/pool_arrays.pyx
python generation/generate_builtins.py --input godot_headers/gdnative_api.json --output build/x11-64/pythonscript/godot/builtins.pyx
Generating build/x11-64/pythonscript/godot/builtins.pyx
Generating build/x11-64/pythonscript/godot/builtins.pyi
Generating build/x11-64/pythonscript/godot/builtins.pxd
Download https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.8.5-x86_64-unknown-linux-gnu-pgo-20200823T0036.tar.zst
extract_cpython_prebuild(["build/x11-64/platforms/x11-64/cpython_prebuild"], ["build/x11-64/platforms/x11-64/cpython-3.8.5-x86_64-unknown-linux-gnu-pgo-20200823T0036.tar.zst"])
generate_cpython_build(["build/x11-64/platforms/x11-64/cpython_build"], ["build/x11-64/platforms/x11-64/cpython_prebuild"])
cython --fast-fail -3 build/x11-64/pythonscript/_godot.pyx -o build/x11-64/pythonscript/_godot.c

Error compiling Cython file:
------------------------------------------------------------
...
    godot_object *p_owner,
    godot_array *r_options,
    godot_bool *r_force,
    godot_string *r_call_hint
) with gil:
    return godot_error.GODOT_OK
                     ^
------------------------------------------------------------

build/x11-64/pythonscript/_godot_editor.pxi:114:22: Compiler crash in AnalyseExpressionsTransform

ModuleNode.body = StatListNode(_godot.pyx:8:0)
StatListNode.stats[0] = StatListNode(_godot_editor.pxi:3:0)
StatListNode.stats[4] = CFuncDefNode(_godot_editor.pxi:105:5,
    acquire_gil = 1,
    api = 1,
    args = [...]/7,
    modifiers = [...]/0,
    visibility = 'private')
File 'Nodes.py', line 435, in analyse_expressions: StatListNode(_godot_editor.pxi:114:4,
    is_terminator = True)
File 'Nodes.py', line 5968, in analyse_expressions: ReturnStatNode(_godot_editor.pxi:114:4,
    is_terminator = True)
File 'ExprNodes.py', line 6888, in analyse_types: AttributeNode(_godot_editor.pxi:114:22,
    attribute = 'GODOT_OK',
    initialized_check = True,
    is_attribute = 1,
    needs_none_check = True,
    result_is_used = True,
    use_managed_ref = True)
File 'ExprNodes.py', line 6959, in analyse_as_type_attribute: AttributeNode(_godot_editor.pxi:114:22,
    attribute = 'GODOT_OK',
    initialized_check = True,
    is_attribute = 1,
    needs_none_check = True,
    result_is_used = True,
    use_managed_ref = True)

Compiler crash traceback from this point on:
  File "/usr/lib/python3.10/site-packages/Cython/Compiler/ExprNodes.py", line 6959, in analyse_as_type_attribute
    for entry in type.entry.enum_values:
AttributeError: 'Entry' object has no attribute 'enum_values'
scons: *** [build/x11-64/pythonscript/_godot.c] Error 1

kiufta avatar Sep 26 '22 12:09 kiufta