Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of the unify-matter-bridge failed #138

Open
BurievSardor opened this issue Dec 15, 2023 · 1 comment
Open

Compilation of the unify-matter-bridge failed #138

BurievSardor opened this issue Dec 15, 2023 · 1 comment
Assignees
Labels
bug Silabs determined this issue is a bug investigating Silabs is currently investigating this issue

Comments

@BurievSardor
Copy link

BurievSardor commented Dec 15, 2023

Description of the issue

I followed https://siliconlabs.github.io/matter/latest/unify/matter-bridge/readme_building.html.
Cloned matter from https://github.com/SiliconLabs/matter.git (version: v2.2.0-1.2)
But the Matter environment activation failed. I fixed it manually modifying scripts/setup/constraints.txt (project-chip@b867178) . After that I successfully activated the matter environment.

But Compilation of the unify-matter-bridge failed:

(base) root@71549e98dd1a:/matter/silabs_examples/unify-matter-bridge/linux# ninja -C out/arm64
ninja: Entering directory `out/arm64'
[15/814] ACTION //:get_chip_version(//third_party/connectedhomeip/build/toolchain/linux:linux_arm64_gcc)
FAILED: gen/include/chip_version.hpp
python /matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py gen/include/chip_version.hpp
Traceback (most recent call last):
File "/matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py", line 53, in
generate_git_info(output_file)
File "/matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py", line 19, in generate_git_info
version = subprocess.check_output(['git', 'describe', '--tags'], text=True, stderr=subprocess.DEVNULL).strip().split('-', 1)[1]
IndexError: list index out of range
[20/814] ACTION //third_party/connectedhomeip/src/lib/asn1:gen_a...ird_party/connectedhomeip/build/toolchain/linux:linux_arm64_gcc
ninja: build stopped: subcommand failed.

WSL2
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Steps to reproduce the issue

While compiling the unify-matter-bridge

Device type(s) and network topology

unify-matter-bridge

Proposed solution(s)

No response

SMG version

release_2.2.0-1.2

Protocol(s)

Wi-Fi

Hardware platform(s)

Host Linux

Development platform(s)

No response

Captured data or logs

(base) root@71549e98dd1a:/matter# cd silabs_examples/unify-matter-bridge/linux/
(base) root@71549e98dd1a:/matter/silabs_examples/unify-matter-bridge/linux# gn gen out/arm64 --args='target_cpu="arm64"'
Done. Made 269 targets from 218 files in 737ms
(base) root@71549e98dd1a:/matter/silabs_examples/unify-matter-bridge/linux# ninja -C out/arm64
ninja: Entering directory `out/arm64'
[15/814] ACTION //:get_chip_version(//third_party/connectedhomeip/build/toolchain/linux:linux_arm64_gcc)
FAILED: gen/include/chip_version.hpp
python /matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py gen/include/chip_version.hpp
Traceback (most recent call last):
File "/matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py", line 53, in
generate_git_info(output_file)
File "/matter/silabs_examples/unify-matter-bridge/scripts/gen_version_info.py", line 19, in generate_git_info
version = subprocess.check_output(['git', 'describe', '--tags'], text=True, stderr=subprocess.DEVNULL).strip().split('-', 1)[1]
IndexError: list index out of range
[20/814] ACTION //third_party/connectedhomeip/src/lib/asn1:gen_a...ird_party/connectedhomeip/build/toolchain/linux:linux_arm64_gcc
ninja: build stopped: subcommand failed.

@BurievSardor
Copy link
Author

BurievSardor commented Dec 15, 2023

had to modify the source code to compile unify-matter-bridge successfully.
unify.txt

"subprocess.check_output(['git', 'describe', '--tags'], text=True, stderr=subprocess.DEVNULL).strip()" is returning "latest".

@tecimovic @rerasool @jepenven-silabs @jmartinez-silabs

@silabs-sebastien silabs-sebastien self-assigned this Jan 3, 2024
@silabs-sebastien silabs-sebastien added investigating Silabs is currently investigating this issue bug Silabs determined this issue is a bug labels Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Silabs determined this issue is a bug investigating Silabs is currently investigating this issue
Projects
None yet
Development

No branches or pull requests

2 participants