Open mpconte opened 2 years ago
did you solve this problem successfully? @mpconte
I'm stuck on the same problem. Please, can you recommend me another way of doing it so?, for rookies / beginner's ...
@David-Herzog-Vexcel Did you solve this? I encounter this problem in boost 1.81 again!
By printing some context of property.jam
I notice the problem is that target-os
is windows
, which means the object suffix is obj
. But the toolset emscripten also claims it to be bc
, which is the "ambiguity".
A workaround is to provide target-os=linux
to b2
. It builds filesystem
for me but it's still not the behavior that I want:
PREFIX/include/boost-1_81/boost
, not the PREFIX/include/boost
that I get on Linux and macOS.libboost_filesystem-31-1_81.bc
has the same md5 with Linux/macOS artifact but the name is strange. I guess 31 is the version of emscripten (3.1.44) but I really want the name to be libboost_filesystem.bc
.I guess there are some hacks to be made so that they can be unified.
EDIT: The 2 problems are solved by providing --layout=system
to b2
.
Version of emscripten/emsdk: emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.13 (531257621816c200bc7c3be53129494afd029aec) clang version 15.0.0 (https://github.com/llvm/llvm-project 5c6ed60c517c47b25b6b25d8ac3666d0e746b0c3) Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: E:\emsdk\upstream\bin
Failing command line in full:
b2.exe toolset=emscripten
Output