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

Unable to load native binding qwik.linux-x64-gnu.node #7402

Open
Nefcanto opened this issue Mar 8, 2025 · 2 comments
Open

Unable to load native binding qwik.linux-x64-gnu.node #7402

Nefcanto opened this issue Mar 8, 2025 · 2 comments

Comments

@Nefcanto
Copy link

Nefcanto commented Mar 8, 2025

This is my Dockerfile to create a node-based image with dependencies installed:

FROM node:lts-bookworm-slim

RUN sed -i 's/^Components: main$/& contrib non-free-firmware/' /etc/apt/sources.list.d/debian.sources

ENV PATH="${PATH}:/Commands/SiteContainer:/Commands"

RUN npm install -g depcheck \
    && npm install -g lighthouse

COPY . /Site

RUN cd /Site \
    && rm -rf package-lock.json \
    && npm install --legacy-peer-deps \
    && mkdir /npm \
    && mv /Site/node_modules /npm \
    && rm -rf /Site

But now I get this error when I start a container from this image:

Unable to load native binding qwik.linux-x64-gnu.node. Falling back to wasm build. /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /npm/node_modules/@builder.io/qwik/bindings/qwik.linux-x64-gnu.node)
using deprecated parameters for the initialization function; pass a single object instead

What should I do?

@wmertens
Copy link
Member

wmertens commented Mar 8, 2025

This is mostly harmless, it means that the optimizer build needs the glibc version that it can't find, and that instead it will be optimizing using the wasm build.

However, I thought that the optimizer binaries were stand-alone, no libraries required, so that's still a little puzzling.

@Nefcanto
Copy link
Author

Nefcanto commented Mar 8, 2025

@wmertens thank you for the quick response.
If that optimizer is better, why not we also use it. We crave speed.

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

2 participants