Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

npm install pru fails #5

Open
kj800x opened this issue Nov 13, 2015 · 0 comments
Open

npm install pru fails #5

kj800x opened this issue Nov 13, 2015 · 0 comments

Comments

@kj800x
Copy link

kj800x commented Nov 13, 2015

debian@beaglebone:~/TEST1$ sudo npm install pru
npm http GET https://registry.npmjs.org/pru
npm http 304 https://registry.npmjs.org/pru

> pru@0.1.3 install /home/debian/TEST1/node_modules/pru
> node-gyp rebuild

make: Entering directory `/home/debian/TEST1/node_modules/pru/build'
  CXX(target) Release/obj.target/pru/src/pru.o
../src/pru.cpp: In function ‘v8::Handle<v8::Value> clearInterrupt(const v8::Arguments&)’:
../src/pru.cpp:240:45: error: too few arguments to function ‘int prussdrv_pru_clear_event(unsigned int, unsigned int)’
/usr/include/prussdrv.h:182:9: note: declared here
make: *** [Release/obj.target/pru/src/pru.o] Error 1
make: Leaving directory `/home/debian/TEST1/node_modules/pru/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.8.13-bone47
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/debian/TEST1/node_modules/pru
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

I have patched my dtb file based on the instructions here, and I can run c code that uses the pruss, and pypruss programs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant