ejeklint
(Per Ejeklint)
1
I'm following the tutorial and try to build with docker on an M1 Macbook Pro but it fails to compile two files:
FAILED: obj/examples/chip-tool/commands/discover/chip-tool-utils.DiscoverCommissionersCommand.cpp.o
and
FAILED: obj/examples/chip-tool/commands/pairing/chip-tool-utils.PairingCommand.cpp.o
Any clues why this happens or how to fix?
Can you post some more context from the build log? Do you see any more concrete compilation errors?
ejeklint
(Per Ejeklint)
3
Sorry I should have supplied a bit more info. Below is what the log says. I fail seeing what's going awry, at least the files are there...
187.0 [292/651] c++ obj/examples/chip-tool/commands/discover/chip-tool-utils.DiscoverCommissionersCommand.cpp.o
187.0 FAILED: obj/examples/chip-tool/commands/discover/chip-tool-utils.DiscoverCommissionersCommand.cpp.o
187.0 aarch64-linux-gnu-g++ -MMD -MF obj/examples/chip-tool/commands/discover/chip-tool-utils.DiscoverCommissionersCommand.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 -Wundef -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -Wconversion -Wno-format-nonliteral -Wno-format-nonliteral -fmacro-prefix-map=../../= -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 -std=gnu++17 -fno-rtti -Wnon-virtual-dtor -DCONFIG_USE_SEPARATE_EVENTLOOP=true -DCONFIG_USE_INTERACTIVE_MODE=true -DCONFIG_USE_LOCAL_STORAGE -DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h> -DCHIP_HAVE_CONFIG_H=1 -DCHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT=1 -DCHIP_MINMDNS_HIGH_VERBOSITY=0 -DCHIP_MINMDNS_DEFAULT_POLICY=1 -I../../examples/chip-tool -I../../examples/common -I../../zzz_generated/app-common/app-common -I../../zzz_generated/chip-tool -I../../src/lib -I../../examples/common/tracing -I../../src/tracing/perfetto/include -I../../third_party/perfetto/repo/sdk -I../../src/include -I../../src -Igen/include -I../../zzz_generated/app-common -I../../config/standalone -I../../third_party/nlassert/repo/include -I../../third_party/nlio/repo/include -I../../third_party/nlfaultinjection/include -I../../third_party/inipp/repo/inipp -I../../third_party/nlunit-test/repo/src -I../../zzz_generated/controller-clusters -Igen/src/controller/data_model -Igen/src/controller/data_model/zapgen -I../../third_party/jsoncpp/repo/include -I../../third_party/libwebsockets -I../../third_party/libwebsockets/repo/include -I../../third_party/editline/repo/include -c ../../examples/chip-tool/commands/discover/DiscoverCommissionersCommand.cpp -o obj/examples/chip-tool/commands/discover/chip-tool-utils.DiscoverCommissionersCommand.cpp.o
187.0 aarch64-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
187.0 compilation terminated.
189.2 [293/651] c++ obj/examples/chip-tool/commands/pairing/chip-tool-utils.PairingCommand.cpp.o
189.2 FAILED: obj/examples/chip-tool/commands/pairing/chip-tool-utils.PairingCommand.cpp.o
189.2 aarch64-linux-gnu-g++ -MMD -MF obj/examples/chip-tool/commands/pairing/chip-tool-utils.PairingCommand.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 -Wundef -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -Wconversion -Wno-format-nonliteral -Wno-format-nonliteral -fmacro-prefix-map=../../= -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 -std=gnu++17 -fno-rtti -Wnon-virtual-dtor -DCONFIG_USE_SEPARATE_EVENTLOOP=true -DCONFIG_USE_INTERACTIVE_MODE=true -DCONFIG_USE_LOCAL_STORAGE -DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h> -DCHIP_HAVE_CONFIG_H=1 -DCHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT=1 -DCHIP_MINMDNS_HIGH_VERBOSITY=0 -DCHIP_MINMDNS_DEFAULT_POLICY=1 -I../../examples/chip-tool -I../../examples/common -I../../zzz_generated/app-common/app-common -I../../zzz_generated/chip-tool -I../../src/lib -I../../examples/common/tracing -I../../src/tracing/perfetto/include -I../../third_party/perfetto/repo/sdk -I../../src/include -I../../src -Igen/include -I../../zzz_generated/app-common -I../../config/standalone -I../../third_party/nlassert/repo/include -I../../third_party/nlio/repo/include -I../../third_party/nlfaultinjection/include -I../../third_party/inipp/repo/inipp -I../../third_party/nlunit-test/repo/src -I../../zzz_generated/controller-clusters -Igen/src/controller/data_model -Igen/src/controller/data_model/zapgen -I../../third_party/jsoncpp/repo/include -I../../third_party/libwebsockets -I../../third_party/libwebsockets/repo/include -I../../third_party/editline/repo/include -c ../../examples/chip-tool/commands/pairing/PairingCommand.cpp -o obj/examples/chip-tool/commands/pairing/chip-tool-utils.PairingCommand.cpp.o
189.2 aarch64-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
189.2 compilation terminated.
This is a big guess, but I remember seeing similar errors when running out of disk space, or out of memory. Can you check if you have enough of those?
1 Like
ejeklint
(Per Ejeklint)
5
I have a 32GB M1 with 53GB free disk. Hmm maybe I need to feed docker with some more juice... will try!
ejeklint
(Per Ejeklint)
6
Yes, that was it. Docker had too little to play with. Now it compiles just fine. Thanks!
1 Like