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

Build failure #377

Open
kiufta opened this issue Sep 26, 2022 · 0 comments
Open

Build failure #377

kiufta opened this issue Sep 26, 2022 · 0 comments

Comments

@kiufta
Copy link

kiufta commented Sep 26, 2022

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
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