← All tasks
pythongoogle/sentencepiece #1170Not a task: not reproduced

python module build failes on macOS Tahoe

envgap__google__sentencepiece-1170

01 / FAILURE SIGNATURE

As reported upstream

error: command '/usr/bin/clang++' failed with exit code 1
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
93a393e8a54358e6be56677034fa0f50bae6c88f
Manifest
python/setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

google/sentencepiece #1170 · read the original issue
**Describe the bug**

Building the Python wheel package fails with a linker error (`ld: library 'c++' not found`) when running `python setup.py bdist_wheel`. The build process attempts to use an outdated SDK path (`MacOSX14.2.sdk`) that doesn't exist in the latest Xcode installation, and the linker fails to find the C++ standard library.

**To Reproduce**
  - Operating system: macOS 26.1 (Build 25B78)
  - Python version: Python 3.12.6 (locally installed via uv)
  - Xcode version: Xcode 26.1.1 (Build 17B100)

  Command to reproduce:
  ```bash
 mkdir build
cd build
cmake .. -DSPM_ENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=./root -DSPM_DISABLE_EMBEDDED_DATA=ON
make install
cd ../python
python setup.py bdist_wheel
```

output:
```
1 warning generated.
           Compiling with an SDK that doesn't seem to exist:
           /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
           Please check your Xcode installation
           clang++: warning: no such sysroot directory:
           '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk'
           [-Wmissing-sysroot]
           ld: warning: search path 'Modules/_hacl' not found
           ld: warning: search path '/install/lib' not found
           ld: library 'c++' not found
           clang++: error: linker command failed with exit code 1 (use -v to see
           invocation)
           error: command '/usr/bin/clang++' failed with exit code 1
```

**Expected behavior**

The wheel package should build successfully without linker errors. The build should use the correct SDK path (which should be able to get by `xcrun --show-sdk-path`) for the installed Xcode version and should properly link against the C++ standard library.
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
[]