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

[BUG] S5 Node fails to build on master #30

Open
lukehmcc opened this issue Aug 9, 2024 · 0 comments
Open

[BUG] S5 Node fails to build on master #30

lukehmcc opened this issue Aug 9, 2024 · 0 comments

Comments

@lukehmcc
Copy link
Member

lukehmcc commented Aug 9, 2024

As workflow run 36, trying to build on main right now fails.

If you run the install instructions:

    git clone https://github.com/s5-dev/s5.git
    cd s5/rust
    cargo build --release
    cp target/release/librust.so ..
    cd ..
    dart compile exe bin/s5_server.dart

It fails with this error:

$ dart compile exe bin/s5_server.dart
lib/rust/bridge_generated.io.dart:63:9: Error: The parameter 'ptr' of the method 'RustWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type, 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'.
 - 'Pointer' is from 'dart:ffi'.
 - 'NativeFunction' is from 'dart:ffi'.
 - 'Bool' is from 'dart:ffi'.
 - 'Int64' is from 'dart:ffi'.
 - 'Void' is from 'dart:ffi'.
Change to a supertype of 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', or, for a covariant parameter, a subtype.
    int ptr,
        ^
../../.pub-cache/hosted/pub.dev/flutter_rust_bridge-1.77.1/lib/src/ffi/stub.dart:21:8: Context: This is the overridden method ('store_dart_post_cobject').
  void store_dart_post_cobject(DartPostCObject ptr) {
       ^
lib/store/fs_provider.dart:49:13: Error: No named parameter with the name 'extraMetadata'.
            extraMetadata: ExtraMetadata({}),
            ^^^^^^^^^^^^^
../../.pub-cache/git/lib5-1ac7b21f6a35b489a0743ed522a33fab2d3c51a6/lib/src/model/metadata/directory.dart:15:3: Context: Found this candidate, but the arguments don't match.
  DirectoryMetadata({
  ^^^^^^^^^^^^^^^^^
Error: AOT compilation failed
Bad state: Generating AOT kernel dill failed!
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