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

Multiple build errors with v1.8.0-beta.1 building arm64 docker image #58

Open
minnixtx opened this issue Apr 1, 2020 · 6 comments
Open
Labels
ready-for-qa Ready for testing by original reporter

Comments

@minnixtx
Copy link

minnixtx commented Apr 1, 2020

Please see log and amended dockerfile
build_fail.log
Dockerfile.log

@minnixtx
Copy link
Author

minnixtx commented Apr 1, 2020

Failed again, this time I removed python from the docker file. See log. @grewhit25 can you post your dockerfile and docker build command please where you had success?

build fail log
[minnix@localhost almond-server]$ docker buildx build -t minnixtx/almond-server:arm64 --platform=linux/arm64 . --push
[+] Building 2904.8s (13/13) FINISHED                                                                                                                                                                                                         
 => [internal] booting buildkit                                                                                                                                                                                                          6.3s
 => => pulling image moby/buildkit:buildx-stable-1                                                                                                                                                                                       4.6s
 => => creating container buildx_buildkit_almondbuilder0                                                                                                                                                                                 1.7s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.3s
 => => transferring dockerfile: 1.09kB                                                                                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.2s
 => => transferring context: 252B                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/fedora:31                                                                                                                                                                             1.5s
 => [1/8] FROM docker.io/library/fedora:31@sha256:c97879f8bebe49744307ea5c77ffc76c7cc97f3ddec72fb9a394bd4e4519b388                                                                                                                      16.4s
 => => resolve docker.io/library/fedora:31@sha256:c97879f8bebe49744307ea5c77ffc76c7cc97f3ddec72fb9a394bd4e4519b388                                                                                                                       0.0s
 => => sha256:c97879f8bebe49744307ea5c77ffc76c7cc97f3ddec72fb9a394bd4e4519b388 975B / 975B                                                                                                                                               0.0s
 => => sha256:b0d24e01fbfae9b54d27ea1c56aad451d7eafd58aa0174d578dece0ec91009cf 529B / 529B                                                                                                                                               0.0s
 => => sha256:dbad5a3d9e059ad673cb03431604f7d02d3d16a4f6bad97eab35b8db19259d0b 66.54MB / 66.54MB                                                                                                                                         4.4s
 => => sha256:63a50f9110d4e2bee94a42cfa3c8ce88ce7dd73631cf2f590dec1063aabe97c5 2.20kB / 2.20kB                                                                                                                                           0.0s
 => => unpacking docker.io/library/fedora:31@sha256:c97879f8bebe49744307ea5c77ffc76c7cc97f3ddec72fb9a394bd4e4519b388                                                                                                                    11.9s
 => [internal] load build context                                                                                                                                                                                                        1.1s
 => => transferring context: 28.62MB                                                                                                                                                                                                     1.1s
 => [2/8] RUN dnf -y module install nodejs:10 &&     dnf -y install git curl pulseaudio-libs-devel unzip nodejs make gcc gcc-c++ libcanberra-devel atlas-devel blas-devel                                                             1616.1s
 => [3/8] RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo                                                                                                                                             2.7s
 => [4/8] RUN dnf -y install yarn                                                                                                                                                                                                      198.2s 
 => [5/8] RUN mkdir /opt/almond                                                                                                                                                                                                          0.5s 
 => [6/8] COPY . /opt/almond                                                                                                                                                                                                             0.8s 
 => [7/8] WORKDIR /opt/almond                                                                                                                                                                                                            0.1s 
 => ERROR [8/8] RUN rm -rf /opt/almond/node_modules &&     yarn --network-timeout 1000000 &&     cp -Tr /usr/local/share/.cache/yarn/v6/npm-snowboy-1.3.1-220f23f026096fe5290d7919a9f0da93ccd253f2-integrity/node_modules/snowboy/ n  1061.7s 
------                                                                                                                                                                                                                                        
 > [8/8] RUN rm -rf /opt/almond/node_modules &&     yarn --network-timeout 1000000 &&     cp -Tr /usr/local/share/.cache/yarn/v6/npm-snowboy-1.3.1-220f23f026096fe5290d7919a9f0da93ccd253f2-integrity/node_modules/snowboy/ node_modules/snowboy/ &&     (cd node_modules/snowboy/ && yarn install --ignore-scripts --no-lockfile && yarn run install) &&     rm -fr /usr/local/share/.cache:                                                                                               
#13 32.84 yarn install v1.22.4                                                                                                                                                                                                                
#13 41.39 [1/4] Resolving packages...                                                                                                                                                                                                         
#13 57.42 [2/4] Fetching packages...                                                                                                                                                                                                          
#13 432.5 info [email protected]: The platform "linux" is incompatible with this module.
#13 432.5 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#13 433.5 [3/4] Linking dependencies...
#13 542.3 [4/4] Building fresh packages...
#13 813.0 error /opt/almond/node_modules/sqlite3: Command failed.
#13 813.0 Exit code: 1
#13 813.0 Command: node-pre-gyp install --fallback-to-build
#13 813.0 Arguments: 
#13 813.0 Directory: /opt/almond/node_modules/sqlite3
#13 813.0 Output:
#13 813.0 node-pre-gyp info it worked if it ends with ok
#13 813.0 node-pre-gyp info using [email protected]
#13 813.0 node-pre-gyp info using [email protected] | linux | arm64
#13 813.0 node-pre-gyp WARN Using request for node-pre-gyp https download 
#13 813.0 node-pre-gyp info check checked for "/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64/node_sqlite3.node" (not found)
#13 813.0 node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-linux-arm64.tar.gz
#13 813.0 node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-linux-arm64.tar.gz
#13 813.0 node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-linux-arm64.tar.gz 
#13 813.0 node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
#13 813.0 node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/node-v64-linux-arm64.tar.gz 
#13 813.0 gyp info it worked if it ends with ok
#13 813.0 gyp info using [email protected]
#13 813.0 gyp info using [email protected] | linux | arm64
#13 813.0 gyp info ok 
#13 813.0 gyp info it worked if it ends with ok
#13 813.0 gyp info using [email protected]
#13 813.0 gyp info using [email protected] | linux | arm64
#13 813.0 gyp info find Python using Python version 3.7.6 found at "/usr/bin/python3"
#13 813.0 gyp info spawn /usr/bin/python3
#13 813.0 gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#13 813.0 gyp info spawn args   'binding.gyp',
#13 813.0 gyp info spawn args   '-f',
#13 813.0 gyp info spawn args   'make',
#13 813.0 gyp info spawn args   '-I',
#13 813.0 gyp info spawn args   '/opt/almond/node_modules/sqlite3/build/config.gypi',
#13 813.0 gyp info spawn args   '-I',
#13 813.0 gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#13 813.0 gyp info spawn args   '-I',
#13 813.0 gyp info spawn args   '/root/.cache/node-gyp/10.19.0/include/node/common.gypi',
#13 813.0 gyp info spawn args   '-Dlibrary=shared_library',
#13 813.0 gyp info spawn args   '-Dvisibility=default',
#13 813.0 gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/10.19.0',
#13 813.0 gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
#13 813.0 gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/10.19.0/<(target_arch)/node.lib',
#13 813.0 gyp info spawn args   '-Dmodule_root_dir=/opt/almond/node_modules/sqlite3',
#13 813.0 gyp info spawn args   '-Dnode_engine=v8',
#13 813.0 gyp info spawn args   '--depth=.',
#13 813.0 gyp info spawn args   '--no-parallel',
#13 813.0 gyp info spawn args   '--generator-output',
#13 813.0 gyp info spawn args   'build',
#13 813.0 gyp info spawn args   '-Goutput_dir=.' ]
#13 813.0 gyp info ok 
#13 813.0 gyp info it worked if it ends with ok
#13 813.0 gyp info using [email protected]
#13 813.0 gyp info using [email protected] | linux | arm64
#13 813.0 gyp info spawn make
#13 813.0 gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#13 813.0 make: Entering directory '/opt/almond/node_modules/sqlite3/build'
#13 813.0   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c
#13 813.0 /bin/sh: python: command not found
#13 813.0 make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c] Error 127
#13 813.0 make: Leaving directory '/opt/almond/node_modules/sqlite3/build'
#13 813.0 gyp ERR! build error 
#13 813.0 gyp ERR! stack Error: `make` failed with exit code: 2
#13 813.0 gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
#13 813.0 gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
#13 813.0 gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
#13 813.0 gyp ERR! System Linux 5.5.11-200.fc31.x86_64
#13 813.0 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
#13 813.0 gyp ERR! cwd /opt/almond/node_modules/sqlite3
#13 813.0 gyp ERR! node -v v10.19.0
#13 813.0 gyp ERR! node-gyp -v v5.0.5
#13 813.0 gyp ERR! not ok 
#13 813.0 node-pre-gyp ERR! build error 
#13 813.0 node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
#13 813.0 node-pre-gyp ERR! stack     at ChildProcess. (/opt/almond/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
#13 813.0 node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
#13 813.0 node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
#13 813.0 node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
#13 813.0 node-pre-gyp ERR! System Linux 5.5.11-200.fc31.x86_64
#13 813.0 node-pre-gyp ERR! command "/usr/bin/node" "/opt/almond/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#13 813.0 node-pre-gyp ERR! cwd /opt/almond/node_modules/sqlite3
#13 813.0 node-pre-gyp ERR! node -v v10.19.0
#13 813.0 node-pre-gyp ERR! node-pre-gyp -v v0.11.0
#13 813.0 node-pre-gyp ERR! not ok 
#13 813.0 Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/opt/almond/node_modules/sqlite3/lib/binding/node-v64-linux-arm64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
#13 813.0 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#13 1000. warning Error running install script for optional dependency: "/opt/almond/node_modules/snowboy: Command failed.
#13 1000. Exit code: 1
#13 1000. Command: node-pre-gyp install --fallback-to-build
#13 1000. Arguments: 
#13 1000. Directory: /opt/almond/node_modules/snowboy
#13 1000. Output:
#13 1000. node-pre-gyp info it worked if it ends with ok
#13 1000. node-pre-gyp info using [email protected]
#13 1000. node-pre-gyp info using [email protected] | linux | arm64
#13 1000. node-pre-gyp info check checked for \"/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64/snowboy.node\" (not found)
#13 1000. node-pre-gyp http GET https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm64.tar.gz
#13 1000. node-pre-gyp http 403 https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm64.tar.gz
#13 1000. node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm64.tar.gz 
#13 1000. node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
#13 1000. node-pre-gyp http 403 status code downloading tarball https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm64.tar.gz 
#13 1000. node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-arm64.tar.gz 
#13 1000. node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
#13 1000. node-pre-gyp http Connection closed while downloading tarball file 
#13 1000. gyp info it worked if it ends with ok
#13 1000. gypgyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000.  info it worked if it ends with ok
#13 1000. gyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000. gyp info ok 
#13 1000. gyp info ok 
#13 1000. gyp info it worked if it ends with ok
#13 1000. gyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000. gyp info it worked if it ends with ok
#13 1000. gyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000. gyp info find Python using Python version 3.7.6 found at \"/usr/bin/python3\"
#13 1000. gyp info find Python using Python version 3.7.6 found at \"/usr/bin/python3\"
#13 1000. gyp info spawn /usr/bin/python3
#13 1000. gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#13 1000. gyp info spawn args   'binding.gyp',
#13 1000. gyp info spawn args   '-f',
#13 1000. gyp info spawn args   'make',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/opt/almond/node_modules/snowboy/build/config.gypi',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/root/.cache/node-gyp/10.19.0/include/node/common.gypi',
#13 1000. gyp info spawn args   '-Dlibrary=shared_library',
#13 1000. gyp info spawn args   '-Dvisibility=default',
#13 1000. gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/10.19.0',
#13 1000. gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
#13 1000. gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/10.19.0/<(target_arch)/node.lib',
#13 1000. gyp info spawn args   '-Dmodule_root_dir=/opt/almond/node_modules/snowboy',
#13 1000. gyp info spawn args   '-Dnode_engine=v8',
#13 1000. gyp info spawn args   '--depth=.',
#13 1000. gyp info spawn args   '--no-parallel',
#13 1000. gyp info spawn args   '--generator-output',
#13 1000. gyp info spawn args   'build',
#13 1000. gyp info spawn args   '-Goutput_dir=.' ]
#13 1000. gyp info spawn /usr/bin/python3
#13 1000. gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#13 1000. gyp info spawn args   'binding.gyp',
#13 1000. gyp info spawn args   '-f',
#13 1000. gyp info spawn args   'make',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/opt/almond/node_modules/snowboy/build/config.gypi',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#13 1000. gyp info spawn args   '-I',
#13 1000. gyp info spawn args   '/root/.cache/node-gyp/10.19.0/include/node/common.gypi',
#13 1000. gyp info spawn args   '-Dlibrary=shared_library',
#13 1000. gyp info spawn args   '-Dvisibility=default',
#13 1000. gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/10.19.0',
#13 1000. gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
#13 1000. gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/10.19.0/<(target_arch)/node.lib',
#13 1000. gyp info spawn args   '-Dmodule_root_dir=/opt/almond/node_modules/snowboy',
#13 1000. gyp info spawn args   '-Dnode_engine=v8',
#13 1000. gyp info spawn args   '--depth=.',
#13 1000. gyp info spawn args   '--no-parallel',
#13 1000. gyp info spawn args   '--generator-output',
#13 1000. gyp info spawn args   'build',
#13 1000. gyp info spawn args   '-Goutput_dir=.' ]
#13 1000. gyp info ok 
#13 1000. gyp info ok 
#13 1000. gyp info it worked if it ends with ok
#13 1000. gyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000. gyp info it worked if it ends with ok
#13 1000. gyp info using [email protected]
#13 1000. gyp info using [email protected] | linux | arm64
#13 1000. gyp info spawn make
#13 1000. gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#13 1000. make: Entering directory '/opt/almond/node_modules/snowboy/build'
#13 1000.   CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
#13 1000. gyp info spawn make
#13 1000. gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#13 1000. make: Entering directory '/opt/almond/node_modules/snowboy/build'
#13 1000.   CXX(target) Release/obj.target/snowboy/swig/Node/snowboy.o
#13 1000. In file included from ../swig/Node/snowboy.cc:1:
#13 1000. ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
#13 1000. ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
#13 1000.  2298 |     , reinterpret_cast(AsyncExecuteComplete)
#13 1000.       |                                                              ^
#13 1000. In file included from ../swig/Node/snowboy.cc:1:
#13 1000. ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
#13 1000. ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
#13 1000.  2298 |     , reinterpret_cast(AsyncExecuteComplete)
#13 1000.       |                                                              ^
#13 1000. ../swig/Node/snowboy.cc: In constructor 'SnowboyDetect::SnowboyDetect(const string&, const string&)':
#13 1000. ../swig/Node/snowboy.cc:38:31: warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=]
#13 1000.    38 |   } catch (std::runtime_error e) {
#13 1000.       |                               ^
#13 1000. In file included from ../../nan/nan.h:54,
#13 1000.                  from ../swig/Node/snowboy.cc:1:
#13 1000. ../swig/Node/snowboy.cc: At global scope:
#13 1000. /root/.cache/node-gyp/10.19.0/include/node/node.h:573:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local, v8::Local, void*)'} [-Wcast-function-type]
#13 1000.   573 |       (node::addon_register_func) (regfunc),                          \\\n      |                                           ^
#13 1000. /root/.cache/node-gyp/10.19.0/include/node/node.h:607:3: note: in expansion of macro 'NODE_MODULE_X'
#13 1000.   607 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
#13 1000.       |   ^~~~~~~~~~~~~
#13 1000. ../swig/Node/snowboy.cc:183:1: note: in expansion of macro 'NODE_MODULE'
#13 1000.   183 | NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
#13 1000.       | ^~~~~~~~~~~
#13 1000. In file included from /root/.cache/node-gyp/10.19.0/include/node/node.h:63,
#13 1000.                  from ../../nan/nan.h:54,
#13 1000.                  from ../swig/Node/snowboy.cc:1:
#13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void (*)(const v8::WeakCallbackInfo&)]': #13 1000. /root/.cache/node-gyp/10.19.0/include/node/node_object_wrap.h:84:78: required from here #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo::Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} [-Wcast-function-type] #13 1000. 9502 | reinterpret_cast(callback), type); #13 1000. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void (*)(const v8::WeakCallbackInfo&)]': #13 1000. ../../nan/nan_object_wrap.h:65:61: required from here #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo::Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} [-Wcast-function-type] #13 1000. ../swig/Node/snowboy.cc: In constructor 'SnowboyDetect::SnowboyDetect(const string&, const string&)': #13 1000. ../swig/Node/snowboy.cc:38:31: warning: catching polymorphic type 'class std::runtime_error' by value [-Wcatch-value=] #13 1000. 38 | } catch (std::runtime_error e) { #13 1000. | ^ #13 1000. In file included from ../../nan/nan.h:54, #13 1000. from ../swig/Node/snowboy.cc:1: #13 1000. ../swig/Node/snowboy.cc: At global scope: #13 1000. /root/.cache/node-gyp/10.19.0/include/node/node.h:573:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local, v8::Local, void*)'} [-Wcast-function-type] #13 1000. 573 | (node::addon_register_func) (regfunc), \\\n | ^ #13 1000. /root/.cache/node-gyp/10.19.0/include/node/node.h:607:3: note: in expansion of macro 'NODE_MODULE_X' #13 1000. 607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) #13 1000. | ^~~~~~~~~~~~~ #13 1000. ../swig/Node/snowboy.cc:183:1: note: in expansion of macro 'NODE_MODULE' #13 1000. 183 | NODE_MODULE(SnowboyDetect, SnowboyDetect::Init) #13 1000. | ^~~~~~~~~~~ #13 1000. In file included from /root/.cache/node-gyp/10.19.0/include/node/node.h:63, #13 1000. from ../../nan/nan.h:54, #13 1000. from ../swig/Node/snowboy.cc:1: #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void (*)(const v8::WeakCallbackInfo&)]': #13 1000. /root/.cache/node-gyp/10.19.0/include/node/node_object_wrap.h:84:78: required from here #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo::Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} [-Wcast-function-type] #13 1000. 9502 | reinterpret_cast(callback), type); #13 1000. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of 'void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void (*)(const v8::WeakCallbackInfo&)]': #13 1000. ../../nan/nan_object_wrap.h:65:61: required from here #13 1000. /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo::Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo&)'} [-Wcast-function-type] #13 1000. SOLINK_MODULE(target) Release/obj.target/snowboy.node #13 1000. /usr/bin/sed: can't read ./Release/.deps/Release/obj.target/snowboy/swig/Node/snowboy.o.d.raw: No such file or directory #13 1000. /usr/bin/rm: cannot remove './Release/.deps/Release/obj.target/snowboy/swig/Node/snowboy.o.d.raw': No such file or directory #13 1000. make: *** [snowboy.target.mk:109: Release/obj.target/snowboy/swig/Node/snowboy.o] Error 1 #13 1000. make: Leaving directory '/opt/almond/node_modules/snowboy/build' #13 1000. gyp ERR! build error #13 1000. gyp ERR! stack Error: `make` failed with exit code: 2 #13 1000. gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23) #13 1000. gyp ERR! stack at ChildProcess.emit (events.js:198:13) #13 1000. gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) #13 1000. gyp ERR! System Linux 5.5.11-200.fc31.x86_64 #13 1000. gyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64/snowboy.node\" \"--module_name=snowboy\" \"--module_path=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64\" #13 1000. gyp ERR! cwd /opt/almond/node_modules/snowboy #13 1000. gyp ERR! node -v v10.19.0 #13 1000. gyp ERR! node-gyp -v v5.0.5 #13 1000. gyp ERR! not ok #13 1000. node-pre-gyp ERR! build error #13 1000. node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64/snowboy.node --module_name=snowboy --module_path=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64' (1) #13 1000. node-pre-gyp ERR! stack at ChildProcess. (/opt/almond/node_modules/snowboy/node_modules/node-pre-gyp/lib/util/compile.js:83:29) #13 1000. node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13) #13 1000. node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16) #13 1000. node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) #13 1000. node-pre-gyp ERR! System Linux 5.5.11-200.fc31.x86_64 #13 1000. node-pre-gyp ERR! command \"/usr/bin/node\" \"/opt/almond/node_modules/snowboy/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\" #13 1000. node-pre-gyp ERR! cwd /opt/almond/node_modules/snowboy #13 1000. node-pre-gyp ERR! node -v v10.19.0 #13 1000. node-pre-gyp ERR! node-pre-gyp -v v0.6.39 #13 1000. node-pre-gyp ERR! not ok #13 1000. Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64/snowboy.node --module_name=snowboy --module_path=/opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64' (1) #13 1000. COPY Release/snowboy.node #13 1000. COPY /opt/almond/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-arm64/snowboy.node #13 1000. TOUCH Release/obj.target/action_after_build.stamp #13 1000. make: Leaving directory '/opt/almond/node_modules/snowboy/build' #13 1000. gyp info ok" #13 1000. info This module is OPTIONAL, you can safely ignore this error ------ failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c rm -rf /opt/almond/node_modules && yarn --network-timeout 1000000 && cp -Tr /usr/local/share/.cache/yarn/v6/npm-snowboy-1.3.1-220f23f026096fe5290d7919a9f0da93ccd253f2-integrity/node_modules/snowboy/ node_modules/snowboy/ && (cd node_modules/snowboy/ && yarn install --ignore-scripts --no-lockfile && yarn run install) && rm -fr /usr/local/share/.cache]: buildkit-runc did not terminate sucessfully

@gcampax
Copy link
Contributor

gcampax commented Apr 1, 2020

OK so there's two problems here: one is that sqlite3 requires python explicitly (not through node-gyp) - not sure why it doesn't in x86_64, although it probably it's a prebuilt binary in x86_64 and not on arm.

The other is that the workaround for snowboy did not work, and it still triggers overlayfs bugs.

Let's fix one at a time...

@minnixtx
Copy link
Author

minnixtx commented Apr 1, 2020

Ok one more question, are you planning on forking snowboy? It seems development stopped on snowboy Dec of last year.

@gcampax
Copy link
Contributor

gcampax commented Apr 2, 2020

Our plan is to stick to the last snapshot of snowboy while it works, and reconsider if it breaks. It's not possible to fork it because it's not open source.

@minnixtx
Copy link
Author

minnixtx commented Apr 2, 2020

Was able to successfully build the image and push to registry but getting an error with podman. Repo: https://hub.docker.com/r/minnixtx/almond-server/tags

$ podman run -p 3000:3000 --uidmap keep-id -v /dev/shm:/dev/shm -v $XDG_RUNTIME_DIR/pulse:/run/pulse -v ${XDG_CONFIG_HOME:-$HOME/.config}/almond-server:/var/lib/almond-server minnixtx/almond-server:arm64

Errors:

ERRO[0382] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument 
  ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument
Trying to pull quay.io/minnixtx/almond-server:arm64...
  unauthorized: access to the requested resource is not authorized
Error: unable to pull minnixtx/almond-server:arm64: 2 errors occurred:
	* Error committing the finished image: error adding layer with blob "sha256:dbad5a3d9e059ad673cb03431604f7d02d3d16a4f6bad97eab35b8db19259d0b": ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument
	* Error initializing source docker://quay.io/minnixtx/almond-server:arm64: Error reading manifest arm64 in quay.io/minnixtx/almond-server: unauthorized: access to the requested resource is not authorized

Docker buildx command:

docker buildx build -t minnixtx/almond-server:arm64 --platform=linux/arm64 . --push
Modified Dockerfile
                                                                           
FROM docker.io/fedora:31

# Install all deps in the standard repos
RUN dnf -y module install nodejs:10 && \
    dnf -y install git curl pulseaudio-libs-devel unzip nodejs make gcc gcc-c++ libcanberra-devel atlas-devel blas-devel

# Install yarn
RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
RUN dnf -y install python yarn

RUN mkdir /opt/almond
COPY . /opt/almond
WORKDIR /opt/almond

# snowboy doesn't like building in docker, due to overlayfs bugs...
RUN rm -rf /opt/almond/node_modules && \
    yarn --network-timeout 1000000 && \
    cp -Tr /usr/local/share/.cache/yarn/v6/npm-snowboy-1.3.1-220f23f026096fe5290d7919a9f0da93ccd253f2-integrity/node_modules/snowboy/ node_modules/snowboy/ && \
    (cd node_modules/snowboy/ && yarn install --ignore-scripts --no-lockfile && yarn run install) && \
    rm -fr /usr/local/share/.cache

EXPOSE 3000
ENV THINGENGINE_HOME=/var/lib/almond-server
ENV PULSE_SOCKET=unix:/run/pulse/native

ENTRYPOINT [ "yarn", "start"]

@nrser
Copy link

nrser commented Aug 4, 2021

@minnixtx are you still able to reproduce this error?

@nrser nrser added the ready-for-qa Ready for testing by original reporter label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-qa Ready for testing by original reporter
Projects
None yet
Development

No branches or pull requests

3 participants