Skip to content

Release build error after including flutter_gpiod #237

Closed
@PMG-Zachary

Description

@PMG-Zachary

When I attempt to make a release build of my app using gen_snapshot_linux_x64, I get the error:

Inconsistency detected by ld.so: dl-version.c: 205: _dl_check_map_versions: Assertion `needed != NULL' failed!

I've made release builds of this app before without updating Flutter or my engine binaries, it stopped working after including flutter_gpiod. The debug build still works fine with this package as well.

I'm currently on Flutter version 2.8.1 and Dart 2.15.1 with the appropriate engine binaries / gen_snapshot_linux_x64_release file. I'm attempting to run the file in a WLS install of Kali Linux. These are the exact build commands I'm using:

flutter clean

flutter build bundle

C:\Users\zach\Documents\flutter\bin\cache\dart-sdk\bin\dart.exe C:\Users\zach\Documents\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root C:\Users\zach\Documents\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk_product --target=flutter --aot --tfa -Ddart.vm.product=true --packages .packages --output-dill build\kernel_snapshot.dill --verbose --depfile build\kernel_snapshot.d package:ns_gui/main.dart

./gen_snapshot_linux_x64_release --deterministic --snapshot_kind=app-aot-elf --elf=./build/flutter_assets/app.so --strip --sim-use-hardfp ./build/kernel_snapshot.dill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions