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