← All tasks
cpplightgbm-org/LightGBM #6601Not a task: already works

Build fails on macos with openmp and static lib enabled

envgap__lightgbm-org__LightGBM-6601

01 / FAILURE SIGNATURE

As reported upstream

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: lib_lightgbm.dylib (No such file or directory)
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
5e4ab24b3071ad6ca55c02e0d93d30d00b468b95
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

lightgbm-org/LightGBM #6601 · read the original issue
## Description

Build fails on macos with `openmp` and static lib enabled



```shell

cmake -B build -S . -DBUILD_STATIC_LIB=ON && cmake --build build -j4

```



```

...

Replacing hard-coded OpenMP install_name with '@rpath/libomp.dylib'...

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: lib_lightgbm.dylib (No such file or directory)

```

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]