Alpine target binary is missing symbols
See original GitHub issue👋 and thank you so much for this valuable project! We’ve been using it successfully for the past 2 years, and really appreciate the hard work behind it!
We’re facing an issue where building our project for the alpine
platform generates a binary file that ~segfaults~ has missing symbols when executed.
~Our workaround is to spin up an alpine
container and build our project inside it for the alpine
platform. This generates a proper binary.~
This wasn’t really the workaround, it’s just that node:alpine
includes libstdc++
, and alpine:latest
doesn’t.
Our project is https://github.com/snyk/snyk, ~and our workaround is described here - https://github.com/snyk/snyk/pull/608~ and we now simply build against the alpine
target.
~1. How can we help troubleshoot and fix this issue?~ 2. If you are facing something similar, please see if our workaround can help you.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Adding the following two libs got the binary working for me. I’d love a way to compile them in statically though, any thoughts?
This issue has been resolved. Please let me know if it is still relevant.
https://github.com/vercel/pkg-fetch/commit/21ab8a26c835bb2d9ae5f96760ca840d68da2064