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

Build failed #6

Closed
JoxC opened this issue Jul 21, 2021 · 2 comments
Closed

Build failed #6

JoxC opened this issue Jul 21, 2021 · 2 comments

Comments

@JoxC
Copy link

JoxC commented Jul 21, 2021

Build with npm run build on Mac, I always got this:

[ 80%] Linking CXX executable ../../../../lib/web/vips.js
wasm-ld: error: unable to find library -lUSE_PTHREADS=1
wasm-ld: error: unable to find library -lUSE_PTHREADS=1
wasm-ld: error: unable to find library -lUSE_PTHREADS=1

@JoxC JoxC mentioned this issue Jul 21, 2021
@kleisauke kleisauke added the triage This issue is being investigated label Jul 21, 2021
@kleisauke
Copy link
Owner

As mentioned in #4 (comment) it looks like a patch has not been applied during the build of the Docker image (perhaps due to a temporary network failure?). I could not reproduce this on Linux (and don't have access to a Mac). As a possible workaround for now, you can simulate that patch by using this sed replacement:

$ sed -i 's/-s USE_PTHREADS=1/-pthread/g' build/target/lib/pkgconfig/{gio,glib,gmodule-no-export,gobject}-2.0.pc

After that, the build should proceed without any problems. Note that if you want to rebuild all dependencies, you can just remove the build/target directory.

@JoxC
Copy link
Author

JoxC commented Jul 21, 2021

@kleisauke sed command works. Thanks for your help!

@JoxC JoxC closed this as completed Jul 21, 2021
@kleisauke kleisauke removed the triage This issue is being investigated label Jul 25, 2021
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