wasm-ld : error : --shared-memory is disallow #16825
Replies: 5 comments 1 reply
-
Is there any more to that second error message? If not, can you set |
Beta Was this translation helpful? Give feedback.
-
there are some errors in the config.log . here is the config.log: here is a section from the log that seem to me suspicious , but I do not know what it's mean
|
Beta Was this translation helpful? Give feedback.
-
eventually, I solved it by declared an environment: USER_DEFS=" -pthread" before emmake make. |
Beta Was this translation helpful? Give feedback.
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
@aharondavid thank you. I'll test this when I'm back at my development machine. |
Beta Was this translation helpful? Give feedback.
-
Hi,
my project must be compiled with pthread.
I tried to compile it with some static library (GDAL 2.0.0) that I built by emconfigure and emmake.
and I got the following error:
wasm-ld : error : --shared-memory is disallowed by gt_jpeg_copy.o because it was not compiled with 'atomics' or 'bulk-memory' features.
so I had set the CFLAGS with -pthread or USE_PTHREADS flag before executing the emconfigure on GDAL , and I got the following error:
checking whether we are cross compiling... (on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)
I will be grateful for any help to solve that issue.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions