Skip to content

Failure running build_mac/build_thirdparty.sh due to conflicting BUILD file in gflags directory #64775

@sduzh

Description

@sduzh

I noticed that Starrocks recently added support for Mac compilation. Out of curiosity, I downloaded the source code and followed the instructions in the documentation to run the script build_mac/build_thirdparty.sh, but encountered an error.
The error message is:

CMake Error: The source directory "/Users/sduzh/code/starrocks/thirdparty/build/gflags" does not appear to contain CMakeLists.txt.

Root Cause:

The script build_mac/build_thirdparty.sh attempts to create a subdirectory named build under gflags/gflags-2.2.2. However, there is already a file named BUILD in the gflags/gflags-2.2.2 directory, which prevents the creation of the build directory (due to name conflict on case-insensitive filesystems like macOS).

mkdir -p build && cd build

Proposed Solution:

The fix is straightforward: modify the script to use a different name for the directory it creates (instead of build), avoiding the conflict with the existing BUILD file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/buildReport failed StarRocks build from main

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions