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

[SQA] Not able to build out folder. #16866

Closed
Survensa opened this issue Mar 31, 2022 · 5 comments
Closed

[SQA] Not able to build out folder. #16866

Survensa opened this issue Mar 31, 2022 · 5 comments

Comments

@Survensa
Copy link

Issue : In CHIP TOOL we are not able to build OUT folder

Command Used : ninja -C out/debug/

Error Log :

ubuntu@ubuntu:~/connectedhomeip/examples/chip-tool$ ninja -C out/debug/
ninja: Entering directory `out/debug/'
[153/581] c++ obj/commands/interactive/chip-tool-utils.InteractiveCommands.cpp.o
FAILED: obj/commands/interactive/chip-tool-utils.InteractiveCommands.cpp.o
aarch64-linux-gnu-g++ -MMD -MF obj/commands/interactive/chip-tool-utils.InteractiveCommands.cpp.o.d -O0 -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -Wall -Werror -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wno-cast-function-type -fdiagnostics-color -fno-strict-aliasing -Wconversion -D_REENTRANT -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -Wno-implicit-fallthrough -std=gnu++17 -fno-rtti -Wnon-virtual-dtor -DCONFIG_USE_SEPARATE_EVENTLOOP=true -DCONFIG_USE_INTERACTIVE_MODE=true -DCHIP_HAVE_CONFIG_H=1 -DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h> -DCHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT=1 -I../.. -I../../third_party/connectedhomeip/zzz_generated/chip-tool -I../../third_party/connectedhomeip/src/lib -I../../third_party/connectedhomeip/src/include -I../../third_party/connectedhomeip/src -Igen/include -I../../third_party/connectedhomeip/zzz_generated/app-common -I../../third_party/connectedhomeip/examples/chip-tool/include -I../../third_party/connectedhomeip/config/standalone -I../../third_party/connectedhomeip/third_party/nlassert/repo/include -I../../third_party/connectedhomeip/third_party/nlio/repo/include -I../../third_party/connectedhomeip/third_party/mbedtls/repo/include -I../../third_party/connectedhomeip/third_party/inipp/repo/inipp -I../../third_party/connectedhomeip/zzz_generated -I../../third_party/connectedhomeip/zzz_generated/controller-clusters -I../../third_party/connectedhomeip/third_party/jsoncpp/repo/include -I../../third_party/connectedhomeip/examples/common/tracing -c ../../commands/interactive/InteractiveCommands.cpp -o obj/commands/interactive/chip-tool-utils.InteractiveCommands.cpp.o
../../commands/interactive/InteractiveCommands.cpp:21:10: fatal error: readline/history.h: No such file or directory
21 | #include <readline/history.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[158/581] c++ obj/chip-tool.main.cpp.o
ninja: build stopped: subcommand failed.

@bpetersen-grundfos
Copy link

bpetersen-grundfos commented Mar 31, 2022

Have same issue on PI, think its related to this pull:
#16135
If you set config_use_interactive_mode = false in BUILD.gn chip-tool builds, but not sure of the consequences.

Or you can install readline lib:
apt-get install libreadline-dev

@vivien-apple
Copy link
Contributor

Have same issue on PI, think its related to this pull: #16135 If you set config_use_interactive_mode = false in BUILD.gn chip-tool builds, but not sure of the consequences.

The only consequence should be that chip-tool interactive start will not work anymore

Or you can install readline lib: apt-get install libreadline-dev

+1.

@Survensa
Copy link
Author

Survensa commented Apr 4, 2022

Still facing the same issue but able to build only using above workaround.

Commit Used : 41a431d

Workaround used to build : sudo apt-get install libreadline-dev

@bzbarsky-apple
Copy link
Contributor

It sounds like we need to add the bit about libreadline-dev to our "how to set up a build environment" documentation? @vivien-apple

@Survensa
Copy link
Author

The issue has been resolved in latest SHA

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

No branches or pull requests

4 participants