-
Type:
Build Failure
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Python Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
Link to task:
Context of when and why the failure occurred:
DRIVERS-3237 updated the tasks to use Python 3.10 instead of 3.9. Perhaps we need to add python3.10-dev.
Stack trace:
[2025/08/15 10:27:01.233] Using CPython 3.9.2 interpreter at: /usr/bin/python3 [2025/08/15 10:27:01.268] Creating virtual environment at: .venv [2025/08/15 10:27:01.268] Building pymongo @ file:///home/sa_113233652026321183788 [2025/08/15 10:27:03.052] Downloading virtualenv (5.8MiB) [2025/08/15 10:27:03.052] Downloading virtualenv [2025/08/15 10:27:03.052] × Failed to build `pymongo @ file:///home/sa_113233652026321183788` [2025/08/15 10:27:03.052] ├─▶ The build backend returned an error [2025/08/15 10:27:03.053] ╰─▶ Call to `hatchling.build.build_editable` failed (exit status: 1) [2025/08/15 10:27:03.053] [stdout] [2025/08/15 10:27:03.053] running build_ext [2025/08/15 10:27:03.053] building 'bson._cbson' extension [2025/08/15 10:27:03.053] creating build/temp.linux-x86_64-cpython-39/bson [2025/08/15 10:27:03.053] x86_64-linux-gnu-gcc -pthread -Wno-unused-result [2025/08/15 10:27:03.053] -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g [2025/08/15 10:27:03.053] -ffile-prefix-map=/build/reproducible-path/python3.9-3.9.2=. [2025/08/15 10:27:03.053] -fstack-protector-strong -Wformat [2025/08/15 10:27:03.053] -Werror=format-security -g -fwrapv -O2 -fPIC -Ibson [2025/08/15 10:27:03.053] -I/home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/include [2025/08/15 10:27:03.053] -I/usr/include/python3.9 -c bson/_cbsonmodule.c -o [2025/08/15 10:27:03.053] build/temp.linux-x86_64-cpython-39/bson/_cbsonmodule.o [2025/08/15 10:27:03.053] [stderr] [2025/08/15 10:27:03.053] /home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/lib/python3.9/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: [2025/08/15 10:27:03.053] SetuptoolsDeprecationWarning: `project.license` as a TOML table is [2025/08/15 10:27:03.053] deprecated [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] Please use a simple string containing a SPDX expression for [2025/08/15 10:27:03.053] `project.license`. You can also use `project.license-files`. (Both [2025/08/15 10:27:03.053] options available on setuptools>=77.0.0). [2025/08/15 10:27:03.053] By 2026-Feb-18, you need to update your project and remove [2025/08/15 10:27:03.053] deprecated calls [2025/08/15 10:27:03.053] or your builds will no longer be supported. [2025/08/15 10:27:03.053] See [2025/08/15 10:27:03.053] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license [2025/08/15 10:27:03.053] for details. [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] corresp(dist, value, root_dir) [2025/08/15 10:27:03.053] /home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/lib/python3.9/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: [2025/08/15 10:27:03.053] SetuptoolsDeprecationWarning: License classifiers are deprecated. [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] Please consider removing the following classifiers in favor of a [2025/08/15 10:27:03.053] SPDX license expression: [2025/08/15 10:27:03.053] License :: OSI Approved :: Apache Software License [2025/08/15 10:27:03.053] See [2025/08/15 10:27:03.053] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license [2025/08/15 10:27:03.053] for details. [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] dist._finalize_license_expression() [2025/08/15 10:27:03.053] /home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/lib/python3.9/site-packages/setuptools/dist.py:759: [2025/08/15 10:27:03.053] SetuptoolsDeprecationWarning: License classifiers are deprecated. [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] Please consider removing the following classifiers in favor of a [2025/08/15 10:27:03.053] SPDX license expression: [2025/08/15 10:27:03.053] License :: OSI Approved :: Apache Software License [2025/08/15 10:27:03.053] See [2025/08/15 10:27:03.053] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license [2025/08/15 10:27:03.053] for details. [2025/08/15 10:27:03.053] ******************************************************************************** [2025/08/15 10:27:03.053] !! [2025/08/15 10:27:03.053] self._finalize_license_expression() [2025/08/15 10:27:03.053] error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory [2025/08/15 10:27:03.053] Traceback (most recent call last): [2025/08/15 10:27:03.053] File "<string>", line 11, in <module> [2025/08/15 10:27:03.053] File [2025/08/15 10:27:03.053] "/home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/lib/python3.9/site-packages/hatchling/build.py", [2025/08/15 10:27:03.053] line 83, in build_editable [2025/08/15 10:27:03.053] return os.path.basename(next(builder.build(directory=wheel_directory, [2025/08/15 10:27:03.053] versions=['editable']))) [2025/08/15 10:27:03.053] File [2025/08/15 10:27:03.053] "/home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/lib/python3.9/site-packages/hatchling/builders/plugin/interface.py", [2025/08/15 10:27:03.053] line 147, in build [2025/08/15 10:27:03.053] build_hook.initialize(version, build_data) [2025/08/15 10:27:03.053] File "/home/sa_113233652026321183788/hatch_build.py", line 22, in [2025/08/15 10:27:03.053] initialize [2025/08/15 10:27:03.053] subprocess.run([sys.executable, "_setup.py", "build_ext", "-i"], [2025/08/15 10:27:03.053] check=True) [2025/08/15 10:27:03.053] File "/usr/lib/python3.9/subprocess.py", line 528, in run [2025/08/15 10:27:03.053] raise CalledProcessError(retcode, process.args, [2025/08/15 10:27:03.053] subprocess.CalledProcessError: Command [2025/08/15 10:27:03.053] '['/home/sa_113233652026321183788/.cache/uv/builds-v0/.tmpArnMJf/bin/python', [2025/08/15 10:27:03.053] '_setup.py', 'build_ext', '-i']' returned non-zero exit status 1. [2025/08/15 10:27:03.053] hint: This usually indicates a problem with the package or the build [2025/08/15 10:27:03.053] environment. [2025/08/15 10:27:03.177] ERROR None [2025/08/15 10:27:03.177] ERROR Command '['/data/mci/ae430e862b5e54a3d9cf039197b77100/drivers-tools/.evergreen/csfle/gcpkms/run-command.sh']' returned non-zero exit status 1.