Repository navigation
Build error: Incorrect file path casing on case-sensitive filesystem prevents macOS build #180963
Copy link
Copy link
Closed
Labels
a: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: desktopRunning on desktopRunning on desktopengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-engineOwned by Engine teamOwned by Engine team
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teamplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallya: desktopRunning on desktopRunning on desktopa: buildBuilding flutter applications with the toolBuilding flutter applications with the toolengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Jan 15, 2026 - added a commit that references this issue
on Jan 15, 2026 - added a commit that references this issue
on Jan 16, 2026 - added a commit that references this issue
on Jan 16, 2026 - added a commit that references this issue
on Jan 20, 2026 - added a commit that references this issue
on Jan 22, 2026 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Jan 30, 2026
Metadata
Metadata
Assignees
Labels
a: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: desktopRunning on desktopRunning on desktopengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-engineOwned by Engine teamOwned by Engine team
Steps to reproduce
The build fails referencing a missing file due to the directory name being incorrectly cased in
BUILD.gn:"framework/source/FlutterWindowControllerTest.mm",But the actual file path is:
Casing mismatch between
sourceandSourcetriggers build errors on case-sensitive disks.Expected results
Build should succeed on both case-sensitive and case-insensitive file systems. File paths in build scripts should always match the actual filesystem casing to ensure cross-platform compatibility.
Actual results
The build fails with an error:
This occurs because
BUILD.gnusesframework/source/FlutterWindowControllerTest.mmbut on disk it isframework/Source/FlutterWindowControllerTest.mm. The default macOS file system (case-insensitive) does not expose this mismatch, but it fails on case-sensitive systems or elsewhere.Code sample
Code sample
Screenshots or Video
Not applicable
Logs
Logs
Flutter Doctor output
Doctor output
Not applicable