Closed raju-apple closed 6 months ago
Forgot to add , trying this on the1.3-SVE
branch
@andy31415 @cecille Saw this while trying to search the web for similar issues - https://github.com/mesonbuild/meson/discussions/11205#discussioncomment-4468758
Branch information - 1.3-SVE SHA on the branch - 28b2a030f321519cd26e95f2706cbce2890fa5d4 Attached the logs to the issue Logs_chip-cert-bins-failure.zip
Error snippet
=> ERROR [stage-2 32/32] RUN pip install --no-cache-dir python_lib/controller/python/chip*.whl 14.9s
------
> [stage-2 32/32] RUN pip install --no-cache-dir python_lib/controller/python/chip*.whl:
#0 0.298 Processing ./python_lib/controller/python/chip_clusters-0.0-py3-none-any.whl
#0 0.307 Processing ./python_lib/controller/python/chip_core-0.0-cp37-abi3-linux_aarch64.whl
#0 0.310 Processing ./python_lib/controller/python/chip_repl-0.0-py3-none-any.whl
#0 0.715 Collecting aenum
#0 1.410 Downloading aenum-3.1.15-py3-none-any.whl (137 kB)
#0 1.733 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.6/137.6 KB 688.7 kB/s eta 0:00:00
#0 1.921 Collecting dacite
#0 2.090 Downloading dacite-1.8.1-py3-none-any.whl (14 kB)
#0 2.282 Collecting ipdb
#0 2.379 Downloading ipdb-0.13.13-py3-none-any.whl (12 kB)
#0 2.548 Collecting ecdsa
#0 2.707 Downloading ecdsa-0.19.0-py2.py3-none-any.whl (149 kB)
#0 2.901 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.3/149.3 KB 756.9 kB/s eta 0:00:00
#0 3.023 Collecting coloredlogs
#0 3.046 Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
#0 3.055 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 KB 5.9 MB/s eta 0:00:00
#0 3.091 Collecting construct
#0 3.120 Downloading construct-2.10.70-py3-none-any.whl (63 kB)
#0 3.126 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 KB 10.8 MB/s eta 0:00:00
#0 3.374 Collecting cryptography
#0 3.396 Downloading cryptography-42.0.5-cp39-abi3-manylinux_2_28_aarch64.whl (4.4 MB)
#0 3.717 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 13.7 MB/s eta 0:00:00
#0 3.748 Collecting deprecation
#0 3.770 Downloading deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
#0 3.840 Collecting rich
#0 3.861 Downloading rich-13.7.1-py3-none-any.whl (240 kB)
#0 3.875 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 240.7/240.7 KB 18.0 MB/s eta 0:00:00
#0 3.877 Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from chip-core==0.0) (5.4.1)
#0 3.935 Collecting ipython!=8.1.0
#0 3.959 Downloading ipython-8.23.0-py3-none-any.whl (814 kB)
#0 4.009 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 814.2/814.2 KB 16.8 MB/s eta 0:00:00
#0 4.075 Collecting ipykernel
#0 4.102 Downloading ipykernel-6.29.4-py3-none-any.whl (117 kB)
#0 4.112 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.1/117.1 KB 12.5 MB/s eta 0:00:00
#0 4.133 Collecting dbus-python==1.2.18
#0 4.160 Downloading dbus-python-1.2.18.tar.gz (578 kB)
#0 4.193 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 578.2/578.2 KB 18.1 MB/s eta 0:00:00
#0 4.230 Preparing metadata (setup.py): started
#0 4.330 Preparing metadata (setup.py): finished with status 'done'
#0 4.375 Collecting pygobject
#0 4.401 Downloading pygobject-3.48.2.tar.gz (715 kB)
#0 4.446 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 715.2/715.2 KB 17.5 MB/s eta 0:00:00
#0 4.628 Installing build dependencies: started
#0 13.02 Installing build dependencies: finished with status 'done'
#0 13.03 Getting requirements to build wheel: started
#0 13.09 Getting requirements to build wheel: finished with status 'done'
#0 13.17 Installing backend dependencies: started
#0 14.75 Installing backend dependencies: finished with status 'done'
#0 14.75 Preparing metadata (pyproject.toml): started
#0 14.82 Preparing metadata (pyproject.toml): finished with status 'error'
#0 14.82 error: subprocess-exited-with-error
#0 14.82
#0 14.82 × Preparing metadata (pyproject.toml) did not run successfully.
#0 14.82 │ exit code: 1
#0 14.82 ╰─> [33 lines of output]
#0 14.82 Traceback (most recent call last):
#0 14.82 File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
#0 14.82 hook = backend.prepare_metadata_for_build_wheel
#0 14.82 AttributeError: module 'mesonpy' has no attribute 'prepare_metadata_for_build_wheel'
#0 14.82
#0 14.82 During handling of the above exception, another exception occurred:
#0 14.82
#0 14.82 Traceback (most recent call last):
#0 14.82 File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
#0 14.82 main()
#0 14.82 File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
#0 14.82 json_out['return_val'] = hook(**hook_input['kwargs'])
#0 14.82 File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 160, in prepare_metadata_for_build_wheel
#0 14.82 whl_basename = backend.build_wheel(metadata_directory, config_settings)
#0 14.82 File "/tmp/pip-build-env-ktfjr4fo/overlay/local/lib/python3.10/dist-packages/mesonpy/__init__.py", line 985, in wrapper
#0 14.82 return func(*args, **kwargs)
#0 14.82 File "/tmp/pip-build-env-ktfjr4fo/overlay/local/lib/python3.10/dist-packages/mesonpy/__init__.py", line 1038, in build_wheel
#0 14.82 with _project(config_settings) as project:
#0 14.82 File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
#0 14.82 return next(self.gen)
#0 14.82 File "/tmp/pip-build-env-ktfjr4fo/overlay/local/lib/python3.10/dist-packages/mesonpy/__init__.py", line 912, in _project
#0 14.82 yield Project(source_dir, build_dir, meson_args, editable_verbose)
#0 14.82 File "/tmp/pip-build-env-ktfjr4fo/overlay/local/lib/python3.10/dist-packages/mesonpy/__init__.py", line 635, in __init__
#0 14.82 self._meson = _get_meson_command(pyproject_config.get('meson'))
#0 14.82 File "/tmp/pip-build-env-ktfjr4fo/overlay/local/lib/python3.10/dist-packages/mesonpy/__init__.py", line 947, in _get_meson_command
#0 14.82 meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout
#0 14.82 File "/usr/lib/python3.10/subprocess.py", line 503, in run
#0 14.82 with Popen(*popenargs, **kwargs) as process:
#0 14.82 File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
#0 14.82 self._execute_child(args, executable, preexec_fn, close_fds,
#0 14.82 File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
#0 14.82 raise child_exception_type(errno_num, err_msg, err_filename)
#0 14.82 FileNotFoundError: [Errno 2] No such file or directory: 'meson'
#0 14.82 [end of output]
#0 14.82
#0 14.82 note: This error originates from a subprocess, and is likely not a problem with pip.
#0 14.82 error: metadata-generation-failed
#0 14.82
#0 14.82 × Encountered error while generating package metadata.
#0 14.82 ╰─> See above for output.
#0 14.82
#0 14.82 note: This is an issue with the package mentioned above, not pip.
#0 14.82 hint: See above for details.
------
Dockerfile:302
--------------------
300 | RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
301 |
302 | >>> RUN pip install --no-cache-dir python_lib/controller/python/chip*.whl
303 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir python_lib/controller/python/chip*.whl" did not complete successfully: exit code: 1
Re-tried the same command on the TOT master :
Branch - Master SHA - 90732b256ee1b405d7461f69eb8e25abe700c805
Uploaded the logs from the failure - Chip-cert-bins-failure-master.txt
Failing at a different place but the logs are much more verbose Chip-cert-bins-failure-master.txt
Tested a bit, it seems installing openjdk-8-jdk
fixes the pip install. Somehow installing the repl whl seems to pull a meson build system which requires java.
Will create a fix PR, however only once I test if we can use ccache to speed up the build of this image as it is super slow right now.
Thanks @andy31415 !
Unclear on master ... error says aarch64-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
which seems some form of C-C or out of memory ... does not look the same error.
Tested a bit, it seems installing
openjdk-8-jdk
fixes the pip install. Somehow installing the repl whl seems to pull a meson build system which requires java.Will create a fix PR, however only once I test if we can use ccache to speed up the build of this image as it is super slow right now.
Any idea why that doesn't get pulled in on master?
Tested a bit, it seems installing
openjdk-8-jdk
fixes the pip install. Somehow installing the repl whl seems to pull a meson build system which requires java. Will create a fix PR, however only once I test if we can use ccache to speed up the build of this image as it is super slow right now.Any idea why that doesn't get pulled in on master?
I believe these chert-bins images are only built on-demand, so at some point things got broken and we never noticed. We do not directly ask for mason, so it is probably some sub-dependency. Master does build/install python however jdk (and many many other packages) are installed as compile dependencies and all is well. this is how I found it: installed all build prerequisites and saw it work, then started trimming them down to bare minimum.
Reproduction steps
Trying to build the chip-cert-bins container :
docker buildx build --build-arg COMMITHASH=28b2a030f321519cd26e95f2706cbce2890fa5d4 --platform linux/arm64 --tag connectedhomeip/chip-cert-bins:28b2a030f321519cd26e95f2706cbce2890fa5d4 --push .
Looks like its failing at the py wheels section :
Logs :