Describe the bug
When compiling my application, the linking process fails because boost-filesystem was not compiled with -pthread on Emscripten. The error is as follows:
wasm-ld: error: --shared-memory is disallowed by exception.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features.
Environment
- OS: Windows
- Compiler: emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.61 (67fa4c16496b157a7fc3377afd69ee0445e8a6e3)
To Reproduce
Steps to reproduce the behavior:
- Clone the demo I made for this issue:
git clone https://github.com/uniformization/boost-error-vcpkg-test.git.
- Run the preset then build it:
cmake --preset vcpkg-emscripten && cmake --build --preset emscripten.
- See error.
Expected behavior
The program should link successfully.
Failure logs
build.log
Additional context
I created a quick demo so any reviewer can see the setup I'm using: https://github.com/uniformization/boost-error-vcpkg-test/.
Describe the bug
When compiling my application, the linking process fails because
boost-filesystemwas not compiled with-pthreadon Emscripten. The error is as follows:wasm-ld: error: --shared-memory is disallowed by exception.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features.Environment
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/uniformization/boost-error-vcpkg-test.git.cmake --preset vcpkg-emscripten && cmake --build --preset emscripten.Expected behavior
The program should link successfully.
Failure logs
build.log
Additional context
I created a quick demo so any reviewer can see the setup I'm using: https://github.com/uniformization/boost-error-vcpkg-test/.