-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi,
trying to get this running on a Raspberry PI 3 B with current Raspbian buster but the docker-compose fails with "cc: error: unrecognized command line option '-mavx2'". Apparently that is a gcc option which is not available on the ARM architecture. Maybe it would work without that option, but I didn't find the file where this is specified. Any ideas?
root@raspberrypi: /satoshis.place# docker-compose up -d
Creating network "satoshisplace_default" with the default driver
Pulling db (mongo:3.4.6)...
3.4.6: Pulling from library/mongo
5233d9aed181: Pull complete
5bbfc055e8fb: Pull complete
aaf85a329dc4: Pull complete
1360aef7d266: Pull complete
9cb9d47c5d80: Pull complete
80e12bf92c3c: Pull complete
fd3679b936e6: Pull complete
5cb080b90ae5: Pull complete
46cf38664c75: Pull complete
59693a4ecb90: Pull complete
dff9fc3b430d: Pull complete
Digest: sha256:90b78c44a58d6d927f96baabea3212d8c756017846715b630044aefcabcab2eb
Status: Downloaded newer image for mongo:3.4.6
Building api
Step 1/7 : FROM node:8.11.2
8.11.2: Pulling from library/node
5c478157e28e: Pull complete
ec0195f0b712: Pull complete
1ea25efde81f: Pull complete
3d564edb5856: Pull complete
8dff9f2e843c: Pull complete
ec16cbaa1302: Pull complete
a803927264ee: Pull complete
4cf6bce6d876: Pull complete
Digest: sha256:27de81e59a343a4345d800f37582cc326d215d8527874c7886e498627be2f330
Status: Downloaded newer image for node:8.11.2
---> 1128f7d8d89b
Step 2/7 : RUN mkdir -p /app
---> Running in c94f311df654
Removing intermediate container c94f311df654
---> 05ed02b9445b
Step 3/7 : WORKDIR /app
---> Running in 93d784b001da
Removing intermediate container 93d784b001da
---> 767bb72b1937
Step 4/7 : ADD yarn.lock package.json ./
---> b2586f91c9d0
Step 5/7 : RUN yarn
---> Running in 770e7eb698c0
yarn install v1.6.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "request-promise > request-promise-core@1.1.1" has unmet peer dependency "request@^2.34".
warning " > request-promise@4.2.2" has unmet peer dependency "request@^2.34".
[4/4] Building fresh packages...
error /app/node_modules/64: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /app/node_modules/64
Output:
prebuild-install WARN install No prebuilt binaries found (target=8.11.2 runtime=node arch=arm platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.11.2 | linux | arm
gyp http GET https://nodejs.org/download/release/v8.11.2/node-v8.11.2-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v8.11.2/node-v8.11.2-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v8.11.2/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v8.11.2/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/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 '/app/node_modules/64/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/8.11.2/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/8.11.2',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.node-gyp/8.11.2/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/app/node_modules/64',
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 '/app/node_modules/64/build'
CC(target) Release/obj.target/base64_avx2/src/lib/arch/avx2/codec.o
cc: error: unrecognized command line option '-mavx2'
base64_avx2.target.mk:105: recipe for target 'Release/obj.target/base64_avx2/src/lib/arch/avx2/codec.o' failed
make: *** [Release/obj.target/base64_avx2/src/lib/arch/avx2/codec.o] Error 1
make: Leaving directory '/app/node_modules/64/build'
gyp ERR! build error
gyp ERR! stack Error:makefailed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.19.83-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/node_modules/64
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Service 'api' failed to build: The command '/bin/sh -c yarn' returned a non-zero code: 1
root@raspberrypi:~/satoshis.place#