Missing C++ Standard Library Headers When Building Wheels On Mac #409
Labels
Area: Report Upload
Issues with pre-ingest report uploading
bug
Something isn't working
Low
Low Priority Issues (to be fixed or re-evaluated in 12 months
Description
I've encountered a build failure on MacOS when attempting to
pip install codecov-cli
, which compiles these C++ components due to the lack of a pre-built wheel: https://github.com/codecov/codecov-cli/blob/v0.5.0/setup.py#L34-L54The specific error indicates that the
<vector>
header file from the C++ Standard Library cannot be found, along with other C++ specific dependencies.Error Details
The error message received during the wheel build process is as follows:
This suggests that the build environment is not correctly configured to locate the C++ standard library headers required for compilation.
Environment
OS: MacOS
This setup seems to work:
Here's an example of a broken setup (no mention of
c++
):Steps to Reproduce
pip install codecov-cli
from a machine without a version of CommandLineTools that includes the required C++ dependencies .<vector>
header.Resolution Steps
I performed the following steps to resolve the issue:
Completely removed the existing Command Line Tools using the command:
Reinstalled the Command Line Tools by invoking:
The fresh installation of the Command Line Tools seems to include the necessary C++ compiler and standard library headers.
Question
Is there any easier way to prevent this issue without requiring a reinstall of xcode Command Line Tools?
Do I need to start enforcing a minimum version of xcode on developer machines? Or is there work in progress to get a working wheel file?
In setup.py, should the
language='c++'
be set for the Extension to explicitly require a working C++ compiler?The text was updated successfully, but these errors were encountered: