Skip to content

[boost-*] Boost linking failure for WASM #35549

@amakhno

Description

@amakhno

Operating system

WASM

Compiler

emscripten 3.1.8

Steps to reproduce the behavior

Clone https://github.com/amakhno/boost-iostream-wasm

Install `emscripten 3.1.8` with `emsdk`, but I think it's the same for all versions

Run commands listed in `build.ps1`

Failure logs

em++: error: /Users/artemmahno/Projects/boost-iostream-wasm/vcpkg/installed/wasm32-emscripten/lib/libboost_regex.a: Unknown format, not a static library!
make[2]: *** [webgl_test.js] Error 1
make[1]: *** [CMakeFiles/webgl_test.dir/all] Error 2
make: *** [all] Error 2

Additional context

The problem happens with all libboost_*.a files. file output for boost dependencies

./vcpkg/installed/wasm32-emscripten/lib/libboost_iostreams.a: WebAssembly (wasm) binary module version 0x1 (MVP)
./vcpkg/installed/wasm32-emscripten/lib/libboost_regex.a: WebAssembly (wasm) binary module version 0x1 (MVP)

Other, non-boost, installed libraries are

libz.a: current ar archive

The install log file is attached

install-wasm32-emscripten-dbg-out.log

There are similar issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalecategory:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions