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

Error when building the repo #106

Closed
Doomwhite opened this issue Feb 2, 2023 · 2 comments
Closed

Error when building the repo #106

Doomwhite opened this issue Feb 2, 2023 · 2 comments
Labels
question Not a problem with the library, but a question regarding usage.

Comments

@Doomwhite
Copy link

Doomwhite commented Feb 2, 2023

When doing cargo build I got the following error:

PS C:\Users\DooMWhite\Documents\Projects\Rust\gdextension> cargo build
   Compiling godot-core v0.1.0 (C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-core)
   Compiling godot-ffi v0.1.0 (C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-ffi)
error: failed to run custom build command for `godot-core v0.1.0 (C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-core)`

Caused by:
  process didn't exit successfully: `C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\target\debug\build\godot-core-b9c74a663c3cf27c\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-codegen/input/gen/extension_api.json
  Found GODOT4_BIN with path to executable: 'C:\Users\DooMWhite\scoop\apps\godot-beta\current\godot.exe'
  cargo:rerun-if-changed=C:\Users\DooMWhite\scoop\apps\godot-beta\current\godot.exe
  Godot version: 4.0.beta12.official.3c9bf4bc2


  --- stderr
  thread 'main' panicked at 'failed to deserialize JSON: Json Deserialize error: Key not found is_bitfield, line:1943 col:1', godot-codegen\src\api_parser.rs:229:63
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `godot-ffi v0.1.0 (C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-ffi)`

Caused by:
  process didn't exit successfully: `C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\target\debug\build\godot-ffi-268bf447a40dcd4c\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=../godot-codegen/input/gdextension_interface.h
  cargo:rerun-if-changed=C:\ProgramData\scoop\apps\llvm\current\lib\clang\15.0.7\include\stddef.h
  cargo:rerun-if-changed=C:\ProgramData\scoop\apps\llvm\current\lib\clang\15.0.7\include/__stddef_max_align_t.h
  cargo:rerun-if-changed=C:\ProgramData\scoop\apps\llvm\current\lib\clang\15.0.7\include\stdint.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\stdint.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\vcruntime.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\sal.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\concurrencysal.h
  cargo:rerun-if-changed=C:\ProgramData\scoop\apps\llvm\current\lib\clang\15.0.7\include\vadefs.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\vadefs.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdio.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h
  cargo:rerun-if-changed=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\vcruntime.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstdio.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_stdio_config.h
  cargo:rerun-if-changed=C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h
  cargo:rerun-if-changed=C:\Users\DooMWhite\Documents\Projects\Rust\gdextension\godot-codegen/input/gen/extension_api.json
  Found GODOT4_BIN with path to executable: 'C:\Users\DooMWhite\scoop\apps\godot-beta\current\godot.exe'
  cargo:rerun-if-changed=C:\Users\DooMWhite\scoop\apps\godot-beta\current\godot.exe
  Godot version: 4.0.beta12.official.3c9bf4bc2


  --- stderr
  Build selected for Linux/Windows.
  thread 'main' panicked at 'failed to deserialize JSON: Json Deserialize error: Key not found is_bitfield, line:1943 col:1', godot-codegen\src\api_parser.rs:229:63
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

LLVM and Rust versions:

PS C:\Users\DooMWhite\Documents\Projects\Rust\gdextension> clang -v
clang version 15.0.7
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\ProgramData\scoop\apps\llvm\current\bin
PS C:\Users\DooMWhite\Documents\Projects\Rust\gdextension> rustc -V
rustc 1.67.0 (fc594f156 2023-01-24)
@Bromeon
Copy link
Member

Bromeon commented Feb 2, 2023

Godot version: 4.0.beta12.official.3c9bf4bc2

This Godot version is far too old, can you try https://godotengine.org/article/dev-snapshot-godot-4-0-beta-17?

@Doomwhite
Copy link
Author

With that version it worked.

@Bromeon Bromeon added the question Not a problem with the library, but a question regarding usage. label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a problem with the library, but a question regarding usage.
Projects
None yet
Development

No branches or pull requests

2 participants