-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
serialport.node: __strcpy_chk: symbol not found on alpine linux #682
Comments
We've been cross building for arm chips on the tessel project. We don't have the latest beta but here's the latest version for arm. |
@reconbot great! But how can I install it from https://packages.tessel.io/npm/serialport-2.0.6-Release.tgz? |
Untar it and put it in your node modules folder! I don't think there's an On Sun, Mar 20, 2016, 12:30 PM ArtworkAD notifications@github.com wrote:
|
Is there some confusion here? It looks the reported error occurred on an Linux computer with an x86 64-bit processor (node-v46-linux-x64). The Tessel 2 however has a MIPS processor so the binaries at https://packages.tessel.io are most likely MIPS binaries, I think. |
@reconbot @fivdi exactly. I use docker and alpine linux https://hub.docker.com/_/alpine/ as base image (based on busybox) because of its small size. node-serialport used to work with ubuntu/debian as base image but this creates very large images with around 600MB while with alpine I achieve size like 100MB. So I switched to alpine. Unfortunately node-serialport stopped working with the error message I pointed out. It is installed on a server with Intel i7 processor. |
You're right I'm totally confused. I assumed you were running alpine on an arm platform single board computer. |
@reconbot I found an issue with a similar error message: particle-iot/particle-cli#145
|
(Edit: this is a red herring – I believe it's caused because the module didn't actually compile, so is trying to use the binary – see further below for how to compile serialport for Alpine) I believe the error's saying musl doesn't have this symbol ( You can see some discussion around this on the musl mailing list: http://www.openwall.com/lists/musl/2015/06/17/1 But it doesn't look like it got merged/finished. It does, however, look like you can use the patch to add I think probably the best solution going forward would be to ping the musl folks again – it looks like that thread died, so I think it would just be a matter of picking it up again. |
(actually – just reading this again now – @artworkad are you sure it actually got compiled?) |
So, when I try and build on Alpine with
|
Ah, ok, adding the I've now compiled it – will let you know if it works! |
Ok, here's how far I got:
All good so far. Then:
So,
Success! As far as I can tell anyway... |
So, just to summarise, the steps to get it working on Alpine are (assuming node and npm are already installed):
( |
@mhart awesomee 💃 thank you I just tried it and it works. |
@mhart I'd totally take a docs PR where we specify special cases install instructions for special operating systems https://github.com/voodootikigod/node-serialport#installation-special-cases |
Done yo: #710 |
There are other issues filed re: I think that needs to be refactored to be more flexible re: udevadm |
I am using alpine linux 3.3 and node 4.3.
When I try to open a port I get an error:
Everything worked fine with debian jessi and node 4.3. After switching to alpine linux I get the above error.
The text was updated successfully, but these errors were encountered: