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

Ubuntu build error for both /examples/java-matter-controller and /examples/kotlin-matter-controller #31402

Closed
kencottrell opened this issue Jan 12, 2024 · 0 comments

Comments

@kencottrell
Copy link

Build issue(s)

  1. Do these run on Ubuntu OS? I can't tell from README.MD files for java-matter-controller and kotlin-matter-controller whether or not these only run on Android? It appears that these should work on Ubuntu?
  2. If Ubuntu should work, I get the same build error when executing this:
    ./scripts/build/build_examples.py --target linux-x64-java-matter-controller build

Platform

other

Anything else?

ken@ken-HP-ProDesk-600-G1-SFF:~/GITREPOS/connectedhomeip$ ./scripts/build/build_examples.py --target linux-x64-java-matter-controller build
2024-01-12 16:55:58 INFO Building targets: linux-x64-java-matter-controller
2024-01-12 16:55:58 INFO Preparing builder 'linux-x64-java-matter-controller'
2024-01-12 16:55:58 INFO Generating /home/ken/GITREPOS/connectedhomeip/out/linux-x64-java-matter-controller
2024-01-12 16:55:58 INFO Generating linux-x64-java-matter-controller
2024-01-12 16:55:58 INFO ERROR at //third_party/connectedhomeip/build/config/linux/pkg_config.gni:116:17: Script returned non-zero exit code.
2024-01-12 16:55:58 INFO pkgresult = exec_script(pkg_config_script, args, "value")
2024-01-12 16:55:58 INFO ^----------
2024-01-12 16:55:58 INFO Current dir: /home/ken/GITREPOS/connectedhomeip/out/linux-x64-java-matter-controller/
2024-01-12 16:55:58 INFO Command: python /home/ken/GITREPOS/connectedhomeip/examples/java-matter-controller/third_party/connectedhomeip/build/config/linux/pkg-config.py openssl
2024-01-12 16:55:58 INFO Returned 127.
2024-01-12 16:55:58 INFO See //third_party/connectedhomeip/src/crypto/BUILD.gn:79:3: whence it was called.
2024-01-12 16:55:58 INFO pkg_config("openssl_config") {
2024-01-12 16:55:58 INFO ^-----------------------------
2024-01-12 16:55:58 INFO See //third_party/connectedhomeip/src/credentials/BUILD.gn:125:5: which caused the file to be included.
2024-01-12 16:55:58 INFO "${chip_root}/src/crypto",
2024-01-12 16:55:58 INFO ^------------------------
Traceback (most recent call last):
File "/home/ken/GITREPOS/connectedhomeip/./scripts/build/build_examples.py", line 230, in
main(auto_envvar_prefix='CHIP')
File "/usr/lib/python3/dist-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1688, in invoke
rv.append(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/GITREPOS/connectedhomeip/./scripts/build/build_examples.py", line 220, in cmd_build
context.obj.Build()
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/build/init.py", line 67, in Build
self.Generate()
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/build/init.py", line 62, in Generate
builder.generate()
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/builders/host.py", line 443, in generate
super(HostBuilder, self).generate()
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/builders/gn.py", line 89, in generate
self._Execute(cmd, title=title)
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/builders/builder.py", line 104, in _Execute
self._runner.Run(cmdarray, title=title)
File "/home/ken/GITREPOS/connectedhomeip/scripts/build/runner/shell.py", line 73, in Run
raise Exception('Command %r failed: %d' % (cmd, code))
Exception: Command ['gn', 'gen', '--check', '--fail-on-unused-args', '--export-compile-commands', '--root=/home/ken/GITREPOS/connectedhomeip/examples/java-matter-controller', '/home/ken/GITREPOS/connectedhomeip/out/linux-x64-java-matter-controller'] failed: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant