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

build failure on "wheezy" #67

Open
ryanseghers opened this issue Feb 3, 2017 · 1 comment
Open

build failure on "wheezy" #67

ryanseghers opened this issue Feb 3, 2017 · 1 comment

Comments

@ryanseghers
Copy link

ryanseghers commented Feb 3, 2017

I'm trying to get going with WiringPi on my Raspberry Pi 2. I have a build failure. Am I doing something wrong?

Here is the failure:
pi@raspberrypi ~/src/testNpmWiringPi $ npm install wiring-pi

[email protected] install /home/pi/src/testNpmWiringPi/node_modules/wiring-pi
/bin/bash ./install.sh

Cloning libWiringPi ... done.
patching file ./wiringpi/devLib/Makefile
Hunk #1 succeeded at 24 with fuzz 1 (offset -2 lines).
Hunk #2 succeeded at 32 with fuzz 2 (offset -2 lines).
patching file ./wiringpi/gpio/Makefile
Making libWiringPi ... done.
Making devLib ...done.
Unistalling gpio utility ... done.
Making gpio utility ... done.
Installing gpio utility ... done.
Making wiring-pi ... gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/pi/src/testNpmWiringPi/node_modules/wiring-pi/build'
CXX(target) Release/obj.target/wiringPi/src/addon.o
In file included from ../src/addon.h:4:0,
from ../src/addon.cc:1:
/home/pi/.node-gyp/7.5.0/include/node/v8.h:346:1: error: expected unqualified-id before ‘using’
/home/pi/.node-gyp/7.5.0/include/node/v8.h:849:1: error: expected unqualified-id before ‘using’
/home/pi/.node-gyp/7.5.0/include/node/v8.h:5578:35: error: ‘virtual v8::EmbedderHeapTracer::~EmbedderHeapTracer()’ declared virtual cannot be defaulted in the class body
In file included from ../src/addon.cc:1:0:
../src/addon.h:12:24: error: ‘Handle’ is not a member of ‘v8’
../src/addon.h:12:44: error: expected primary-expression before ‘>’ token
[snip] (a lot more errors in this file)
wiringPi.target.mk:135: recipe for target 'Release/obj.target/wiringPi/src/addon.o' failed
make: *** [Release/obj.target/wiringPi/src/addon.o] Error 1
make: Leaving directory '/home/pi/src/testNpmWiringPi/node_modules/wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/.nvm/versions/node/v7.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:192:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command "/home/pi/.nvm/versions/node/v7.5.0/bin/node" "/home/pi/.nvm/versions/node/v7.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/src/testNpmWiringPi/node_modules/wiring-pi
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok

gcc version is:
gcc (Debian 4.6.3-14+rpi1) 4.6.3

@ryanseghers
Copy link
Author

ryanseghers commented Feb 4, 2017

This failure happened on the "wheezy" build of raspbian. I upgraded to 4.4 "jessie" and now it's working.

@ryanseghers ryanseghers changed the title build failure build failure on "wheezy" Feb 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant