Read the statement by Michael Teeuw here.
build MMM-AssistantMk2 Rebuild Failed
-
Hi everybody! I had problems building MMM-AssistantMk2 in MagicMirror version 2.9.0 using: ./node_modules/.bin/electron-rebuild
Who could possibly eat
In previous versions there was no error
full error: https://pastebin.com/raw/P9dZyBUnAn unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.4
gyp info using node@10.16.3 | linux | arm64
gyp info find Python using Python version 2.7.15 found at “/usr/bin/python”
gyp http GET https://electronjs.org/headers/v3.0.13/iojs-v3.0.13-headers.tar.gz
gyp http 200 https://electronjs.org/headers/v3.0.13/iojs-v3.0.13-headers.tar.gz
gyp http GET https://electronjs.org/headers/v3.0.13/SHASUMS256.txt
gyp http 200 https://electronjs.org/headers/v3.0.13/SHASUMS256.txt
gyp info spawn /usr/bin/python
gyp info spawn args [ ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/.electron-gyp/iojs-3.0.13/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/.electron-gyp/iojs-3.0.13’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/.electron-gyp/iojs-3.0.13/<(target_arch)/iojs.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: Entering directory ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack_builder.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz_registry.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/connected_channel.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker_registry.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/status_util.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_args.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_internal.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/message_compress.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_gzip.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_identity.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats_data.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/format_request.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/httpcli.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/parser.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/buffer_list.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/call_combiner.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/cfstream_handle.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/combiner.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/error.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/error_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epoll1_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epollex_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_poll_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/exec_ctx.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor/mpmcqueue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor/threadpool.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_fallback.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_host_name_max.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_sysconf.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/grpc_if_nametoindex_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/internal_errqueue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iocp_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_internal.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_posix_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/is_epollexclusive_available.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/load_file.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/lockfree_event.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/polling_entity.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_set_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/pollset_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resolve_address_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/resource_quota.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/sockaddr_utils.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_factory_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_mutator.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_common_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_linux.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_utils_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/socket_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_cfstream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_client_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/time_averaged_stats.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_generic.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_heap.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_manager.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/udp_server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_writer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/b64.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/percent_encoding.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_intern.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_string_helpers.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/api_trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_details.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_log_batch.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_ping.o
Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/parsing.oCXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/httpcli_security_connector.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/security/context/security_context.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o
In file included from …/deps/grpc/third_party/upb/upb/msg.h:14:0,
from …/deps/grpc/third_party/upb/upb/generated_util.h:10,
from …/deps/grpc/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h:12,
from …/deps/grpc/src/core/tsi/alts/handshaker/transport_security_common_api.h:29,
from …/deps/grpc/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h:26,
from …/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.h:26,
from …/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.cc:21:
…/deps/grpc/third_party/upb/upb/upb.h:27:10: fatal error: upb/port_def.inc: No such file or directory
#include “upb/port_def.inc”
^~~~~~~~~~~~~~~~~~
compilation terminated.
grpc.target.mk:531: recipe for target ‘Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o’ failed
make: Leaving directory ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.1.15-aml-s905
gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=3.0.13” “–arch=arm64” “–dist-url=https://electronjs.org/headers” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm64-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.24.0” “–package_name=electron-v3.0-linux-arm64-glibc.tar.gz”
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v5.0.4
gyp ERR! not okFailed with exit code: 1
Error: gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.4
gyp info using node@10.16.3 | linux | arm64
gyp info find Python using Python version 2.7.15 found at “/usr/bin/python”
gyp http GET https://electronjs.org/headers/v3.0.13/iojs-v3.0.13-headers.tar.gz
gyp http 200 https://electronjs.org/headers/v3.0.13/iojs-v3.0.13-headers.tar.gz
gyp http GET https://electronjs.org/headers/v3.0.13/SHASUMS256.txt
gyp http 200 https://electronjs.org/headers/v3.0.13/SHASUMS256.txt
gyp info spawn /usr/bin/python
gyp info spawn args [ ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/.electron-gyp/iojs-3.0.13/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/.electron-gyp/iojs-3.0.13’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/.electron-gyp/iojs-3.0.13/<(target_arch)/iojs.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp info spawn make
gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
make: Entering directory ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack.o
Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_server_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/tcp_windows.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/time_averaged_stats.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_custom.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_generic.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_heap.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_manager.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/timer_uv.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/udp_server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/unix_sockets_posix_noop.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_eventfd.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_nospecial.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_pipe.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/wakeup_fd_posix.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/json/json_writer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/b64.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/percent_encoding.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_intern.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/slice/slice_string_helpers.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/api_trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/byte_buffer_reader.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_details.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/call_log_batch.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_init.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_ping.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/channel_stack_type.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/completion_queue.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/completion_queue_factory.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/event_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/lame_client.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/metadata_array.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/server.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/validate_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/version.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/bdp_estimator.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/byte_stream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/connectivity_state.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/error_utils.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/metadata_batch.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/pid_controller.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/static_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/status_conversion.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/status_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/timeout_encoding.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/transport.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/transport/transport_op_string.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/uri/uri_parser.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/trace.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/bin_decoder.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/bin_encoder.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/chttp2_plugin.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/context_list.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/flow_control.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_data.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_goaway.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_ping.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_rst_stream.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_settings.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/frame_window_update.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/hpack_encoder.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/hpack_parser.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/hpack_table.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/http2_settings.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/huffsyms.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/incoming_metadata.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/parsing.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/stream_lists.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/stream_map.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/varint.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/transport/writing.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/transport/chttp2/alpn/alpn.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/http/client/http_client_filter.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/http/http_filters_plugin.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/http/message_compress/message_compress_filter.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/http/server/http_server_filter.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/httpcli_security_connector.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/security/context/security_context.o
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o
In file included from …/deps/grpc/third_party/upb/upb/msg.h:14:0,
from …/deps/grpc/third_party/upb/upb/generated_util.h:10,
from …/deps/grpc/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h:12,
from …/deps/grpc/src/core/tsi/alts/handshaker/transport_security_common_api.h:29,
from …/deps/grpc/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h:26,
from …/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.h:26,
from …/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.cc:21:
…/deps/grpc/third_party/upb/upb/upb.h:27:10: fatal error: upb/port_def.inc: No such file or directory
#include “upb/port_def.inc”
^~~~~~~~~~~~~~~~~~
compilation terminated.
grpc.target.mk:531: recipe for target ‘Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o’ failed
make: Leaving directory ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/security/credentials/alts/alts_credentials.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.1.15-aml-s905
gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=3.0.13” “–arch=arm64” “–dist-url=https://electronjs.org/headers” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm64-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.24.0” “–package_name=electron-v3.0-linux-arm64-glibc.tar.gz”
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v5.0.4
gyp ERR! not okFailed with exit code: 1
at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:267:84)
at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:156:26)
at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:92:26)
at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:72:18)
at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:242:65)
at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:143:22) -
@marion001 see the issue here
https://github.com/grpc/grpc-node/issues/1057
need to downlevel gprc
do
cd ~/MagicMirror npm uninstall gprc npm install gpc@1.23.3 npm install maybe electron-rebuild
-
thank you! I have followed you to downgrade grpc to version 1.23.3 and build successfully
cd ~/MagicMirror/modules
sudo rm -rf MMM-AssistantMk2/
git clone https://github.com/eouia/MMM-AssistantMk2.git
cd MMM-AssistantMk2
sudo npm uninstall grpc
sudo npm install sudo npm install grpc@1.23.3
sudo npm install --save-dev electron-rebuild
sudo npm install
sudo ./node_modules/.bin/electron-rebuild -
@marion001 great… but you should NOT use sudo
so, can u fix the sudo problem, so u don’t use sudo anymore
~/MagicMirror sudo chown -R ???? ~/.npm sudo chown -R ???? ./
where ??? is the current userid , most likely pi
but you can get the userid from the commandwhoami
-
I installed the magicmirror on androibox which has flash room armbian, I installed on the user should use sudo for full rights
pi@MagicMirror: ~ $ id
uid = 1000 (pi) gid = 1000 (pi) groups = 1000 (pi), 5 (tty), 6 (disk), 20 (dialout), 27 (sudo), 29 (audio), 44 (video), 46 (plugdev), 60 (games), 100 (users), 101 (systemd-journal), 104 (input), 108 (netdev), 111 (ssh), 112 (bluetooth)pi@MagicMirror: ~ $ whoami
pipi@MagicMirror:~$ uname -a
Linux MagicMirror 5.1.15-aml-s905 #5.91 SMP PREEMPT Wed Jul 10 15:44:57 MSK 2019 aarch64 aarch64 aarch64 GNU/Linux -
@marion001 said in build MMM-AssistantMk2 Rebuild Failed:
I installed on the user should use sudo for full rights
but the user pi doesn’t need root to run MagicMirror
next time you install a module, and don’t use sudo, things will break…best to fix it now…
-
Yes, I’ll fix it next time, thank you. (Y)
-
@marion001 cool… can u mark this issue resolved? 3 dots to the right of the message
-
@marion001 Uhhhhhh… I followed your steps to rebuild the thing in order for the module to work, but now it’s stuck at ‘Building module: grpc, Completed: 0’, and stays like that forever until I cancel the procedure with Ctrl+C. How can I resolve this? I really want Google Assistant to work but this is a hindrance that I want to remove.
-
@marion001 Uhhhhhh… I followed your steps to rebuild the thing in order for the module to work, but now it’s stuck at ‘Building module: grpc, Completed: 0’, and stays like that forever until I cancel the procedure with Ctrl+C. How can I resolve this? I really want Google Assistant to work but this is a hindrance that I want to remove.