Comments (3)
I have additional information on this issue.
I tried to do a manual installation of wiring-pi from the base package wiring-pi-2.2.1 as was fetch from npm registry.
During running install.sh I noticed a segmentation fault as can be seen in below snippet:
gcc: internal compiler error: **Segmentation fault** (program as)
Funny to say, I already had wiring-pi running on this PI the last couple of days. Then I removed all node_modules and started from scratch.
VERY STRANGE!
Here is the output of the install.sh script:
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 ... failed.
================================================================================
FATAL: Making libWiringPi failed.
Please check install.log and fix any problems. If you're still stuck,
then please open a new issue then post all the output and as many details as you can to
https://github.com/WiringPi/WiringPi-Node/issues
================================================================================
Here you'll find the output of install.log:
cat install.log
Cloning into 'wiringpi'...
Note: checking out '6d98e0c87ad937849af944ae7118ce1e01ce7c91'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
[Clean]
[Compile] wiringPi.c
gcc: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Makefile:92: recipe for target 'wiringPi.o' failed
make: *** [wiringPi.o] Error 4
from wiringpi-node.
For some reason I cannot grasp at the moment, an
apt-get update
apt-get upgrade
apt-get remove nodejs
apt-get purge
apt-get install nodejs
and then a reboot plus again removing all node modules, fixed this issue.
I'm closing it, but if anyone can find the original reason, I'd really appreciate a message.
BR,
Chris
from wiringpi-node.
The problem here is that V8 has removed ForceSet method in the V8 version that Node 10 uses.
Solution is to install older version of nodejs. Easiest is to use NodeVersionManager nvm.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
nvm install 8
npm install npm@latest -g
then you can do
npm remove wiring-pi
npm install wiring-pi
from wiringpi-node.
Related Issues (20)
- It is a error?
- how to build for firmware 4.9 and wiringpi 2.4.4? HOT 4
- example for pwmWrite? HOT 3
- Got an error installing wiring-pi on alpine linux
- wiringPi.node _Z15lcd128x64circleiiiii: symbol not found under alpine linux
- Install wiring-pi on Raspberry pi 3 with Raspbian Jessie HOT 2
- Can not install wiring pi while using macOS HOT 3
- "Type Error: wpi.pcf8574Setup is not a function"
- returning from wiringPiSPIDataRW HOT 1
- Build failure: install.sh: line 28: ../../install.log: Permission denied HOT 1
- "sudo npm install wiring-pi" Does not work HOT 2
- Unable to determine hardware version: I see: hardware: bcm2835 HOT 5
- can't install wiringpi on raspy3 HOT 3
- can't install on Node.js v9.6.1
- PWM1 missing?!?
- PWM wrapper for hardware or software PWM
- Software debounce?
- Unable to build (Orange PI One)
- Can't install wiring pi HOT 13
- Please add LICENCE file in root dir
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiringpi-node.