-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Build failures on OpenBSD 6.6 #2840
Comments
Sorry, OpenBSD isn't a platform we support |
Let me help you anyway - node-sass releases are tightly bound to some corresponding libsass version. I would advice against trying to build node-sass binding against pre-installed library from OpenBSD ports unless you are 100% sure you have the matching libsass version. ( Your particular problem here is the compiler. What is the g++ version you are using right now? |
@saper Thank you for your time! I was just exploring the g++ versions available on OpenBSD due to the errors and it appears that g++ 4.2.1 (so pre-C++11) is in base, though g++ 8.3.0 is available in ports as I found your instructions on Clang Support on FreeBSD and tried a |
Hi, On OpenBSD you need to use clang++ (
|
Thanks @qbit, I had just found that. |
Great - if someone from OpenBSD community would like to prepare a port and build binaries, we could add them to the official matrix - this way a proper binary will be downloaded automatically via npm without the need to compile anything. Important: please use the same C++11 compiler that has been used to compile node itself to avoid runtime C++ ABI incompatibilities. |
@ratahtatah I would avoid setting them globally, doing so will force everything to use clang, not just npm. A better alternative would be to make an npm alias, something like:
That way only npm will be impacted. |
This problem is back you guys: #2916 |
@anon987654321 This is because we do not distribute OpenBSD binaries with the node-sass releases. See also #2885 (comment) |
The fix is here: https://marc.info/?l=openbsd-ports&m=160657052927238
Don't forget to replace export CC=/usr/bin/clang
export CXX=/usr/bin/clang++ Shoutout to Solene for the help. |
npm -v
): 6.9.0node -v
): 10.16.3node -p process.versions
):node -p process.platform
): openbsdnode -p process.arch
): x64node -p "require('node-sass').info"
): n/anpm ls node-sass
): n/aGet the following build errors when I check out the
node-sass
repo and attempt annpm install
:libsass
3.6.1 is available viapkg_add libsass
, but I see that libsass 3.6 support (#2685) is not due until version 5.x (#2111).The text was updated successfully, but these errors were encountered: