Skip to content

[Bug]: Errors of CMake and xgboost installing for MacBook Pro M3 Max #5272

Closed
@snowffer

Description

@snowffer

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

217caec

RAGFlow image version

v0.16.0

Other environment information

Hardware parameters: MacBook Pro M3 Max
OS: MacOS 15.3.1 (24D70)
CMake Version: 3.31.5
System default Python version: 3.11.7

Actual behavior

When running command uv sync --python 3.10, met with the issue below:

CMake Error at /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
        Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
      Call Stack (most recent call first):
        /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
        /opt/homebrew/share/cmake/Modules/FindOpenMP.cmake:616 (find_package_handle_standard_args)
        CMakeLists.txt:154 (find_package)

And, stopped with this log:

subprocess.CalledProcessError: Command '['cmake', 'xgboost', '-GUnix Makefiles', '-DUSE_OPENMP=0', '-DUSE_CUDA=0',
      '-DUSE_NCCL=0', '-DBUILD_WITH_SHARED_NCCL=0', '-DHIDE_CXX_SYMBOLS=1', '-DUSE_HDFS=0', '-DUSE_AZURE=0', '-DUSE_S3=0',
      '-DPLUGIN_DENSE_PARSER=0']' returned non-zero exit status 1.

      hint: This usually indicates a problem with the package or the build environment.
  help: `xgboost` (v1.5.0) was included because `ragflow` (v0.16.0) depends on `xgboost`

Both cmake and xgboost are installed.

Expected behavior

Command uv sync --python 3.10 is executed successfully.

Steps to reproduce

Follow the instruction to launch the Service from Source: https://ragflow.io/docs/v0.16.0/launch_ragflow_from_source

In Chapter "Install Python dependencies", go to step 2:
"uv sync --python"

Then the errors appear.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions