Skip to content

C Compiler dependencies for code_assets cannot always be found on all Linux systems in current implementation #175311

@GregoryConrad

Description

@GregoryConrad

I just created this issue so I can link to it in an upcoming PR. I am working on a fix for this locally.

Steps to reproduce

Try to build a package utilizing native code assets on a Linux system where clang, llvm-ar, or ld.lld are not beside clang++ in the same directory.

Expected results

Flutter build tool should be able to find these executables.

Actual results

flutter tool throws an error when attempting to build.

Logs

Logs
ERROR: Failed to find llvm-ar relative to LocalFile: '/nix/store/v79bl5xhqjh0r5518gihcykx2861imd3-clang-wrapper-20.1.6/bin/clang++': LocalFile: '/nix/store/v79bl5xhqjh0r5518gihcykx2861imd3-clang-wrapper-20.1.6/bin/llvm-ar' doesn't exist.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopplatform-linuxBuilding on or for Linux specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions