You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System+version: MacOS 12.6.7 (reproducible on Linux as well), building to emsdk/3.1.44
Compiler+version: emcc
Shell: bash
B2 Version: B2 4.9-git
B2 Configuration: NA
NA
Brief problem description
When attempting to build boost libraries via conan to webassembly, boost fails to build with the following message...
Error: ambiguity found when searching for best transformation
Trying to produce type 'SEARCHED_LIB' from:
Generators that succeeded:
- searched-lib-generator
- emscripten.searched-lib-generator
First generator produced:
- { %.no-action-z.SEARCHED_LIB }
Second generator produced:
- { %.no-action-z.SEARCHED_LIB }
The issue can be fixed by patching the b2 jamfile src/tools/emscripten.jam that boost 1.83.0 depends on as follows....
Error: ambiguity found when searching for best transformation
Trying to produce type 'SEARCHED_LIB' from:
Generators that succeeded:
- searched-lib-generator
- emscripten.searched-lib-generator
First generator produced:
- { %.no-action-z.SEARCHED_LIB }
Second generator produced:
- { %.no-action-z.SEARCHED_LIB }
The issue can be fixed by patching the b2 jamfile src/tools/emscripten.jam that boost 1.83.0 depends on as follows....
This has been fixed in #225 and emscripten support overhaul happened in #310
error: No best alternative for libs/context/build/asm_sources with sysv 32 off mach-o <boost.locale.iconv.lib>libc <boost.locale.iconv>on <boost.locale.icu>off off fcontext off on 32 off on off off off static on off MACOSX on on off off 3.11 abi address-model architecture binary-format toolset on on shared native off darwin <testing.execute>on pthread multi toolset-emscripten:version3.1.44 emscripten debug off hidden off on
It's not a b2 issue. AFAIK emscripten is not supported by Boost.Context, file an issue there.
Make sure you completed the following tasks
Environment and version details
Brief problem description
When attempting to build boost libraries via conan to webassembly, boost fails to build with the following message...
The issue can be fixed by patching the b2 jamfile
src/tools/emscripten.jam
that boost 1.83.0 depends on as follows....9d8
< import generators ;
55,57d53
< generators.override builtin.lib-generator : emscripten.prebuilt ;
< generators.override emscripten.searched-lib-generator : searched-lib-generator ;
<
That patch can't be applied to
src/tools/emscripten.jam
as the file on the main branch has moved on.Steps to reproduce the issue
With conan2 installed, and the following
conanfile.py...
The following file
./emsdkProfile
and the following file
macosRelease
the command...
conan install --output-folder=build --build=missing -pr:b ./macosRelease -pr:h ./emsdkProfile ./conanfile.py -o boost/\*:with_stacktrace_backtrace=False
results in the following output...
Actual behavior summary
Boost fails to build vai conan when compiling to webassembly.
Expected behavior summary
It should build to web assembly and not fail.
The text was updated successfully, but these errors were encountered: