- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.2k
Description
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).
starrocks/build-mac/build_thirdparty.sh
Line 365 in bc846fa
| 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.