iotaledger/legacy-wallet-use-trinity-wallet-instead

compilation error

Opened this issue · 0 comments

Prerequisites

Not sure if this is related to wallet or npm

Description

followed the readme file..
after running npm start, the wallet started normally and after selecting a host, it gave the following error

Error: Could not locate the bindings file. Tried:
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/build/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/build/Debug/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/build/Release/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/out/Debug/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/Debug/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/out/Release/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/Release/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/build/default/ffi_bindings.node
 → /home/upeksha1996/Projects/wallet/node_modules/ffi/compiled/7.9.0/linux/x64/ffi_bindings.node

Compiling is also not working

Steps to Reproduce

error occured when running npm run compile command

Expected behavior: [What you expected to happen]
successfully compile

Actual behavior: [What actually happened]

Error: /usr/bin/node exited with code 1
Output:

> ffi@2.2.0 install /home/upeksha1996/Projects/wallet/node_modules/ffi
> node-gyp rebuild

make: Entering directory '/home/upeksha1996/Projects/wallet/node_modules/ffi/build'
  CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
deps/libffi/ffi.target.mk:110: recipe for target 'Release/obj.target/ffi/deps/libffi/src/prep_cif.o' failed
make: Leaving directory '/home/upeksha1996/Projects/wallet/node_modules/ffi/build'

Error output:
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h:194:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed/limits.h:34,
                 from ../deps/libffi/config/linux/ia32/ffi.h:76,
                 from ../deps/libffi/src/prep_cif.c:26:
/usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
 #include <bits/libc-header-start.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/ffi/deps/libffi/src/prep_cif.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/upeksha1996/Projects/wallet/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Linux 4.13.0-38-generic
gyp ERR! command "/usr/bin/node" "/home/upeksha1996/Projects/wallet/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/upeksha1996/Projects/wallet/node_modules/ffi
gyp ERR! node -v v6.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 

npm ERR! Linux 4.13.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/share/npm/bin/npm-cli.js" "rebuild" "ffi@2.2.0" "ref@1.3.5"
npm ERR! node v6.11.4
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! ffi@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ffi@2.2.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ffi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ffi
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ffi
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/upeksha1996/Projects/wallet/npm-debug.log

Versions

[OS Version]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"
NAME="Ubuntu"
VERSION="17.10 (Artful Aardvark)"