Skip to content

[boost-filesystem] Build error with emscripten #29529

@tobbi

Description

@tobbi

Package: boost-filesystem[core]:wasm32-emscripten -> 1.81.0#1

Host Environment

  • Host: x64-linux
  • Compiler: Clang 17.0.0
  • vcpkg-tool version: 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
    vcpkg-scripts version: 1c48ec7 2023-02-07 (13 hours ago)

To Reproduce

vcpkg install boost-filesystem:wasm32-emscripten

Failure logs

-- Downloading https://github.com/boostorg/filesystem/archive/boost-1.81.0.tar.gz -> boostorg-filesystem-boost-1.81.0.tar.gz...
-- Extracting source /home/runner/vcpkg/downloads/boostorg-filesystem-boost-1.81.0.tar.gz
-- Using source at /home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean
-- Getting CMake variables for wasm32-emscripten
-- Configuring wasm32-emscripten
-- Building wasm32-emscripten-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/local/bin/cmake --build . --config Debug --target install -- -v -j3
    Working Directory: /home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg
    See logs for more information:
      /home/runner/vcpkg/buildtrees/boost-filesystem/install-wasm32-emscripten-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  installed/x64-linux/share/boost-build/boost-modular-build.cmake:140 (vcpkg_cmake_install)
  ports/boost-filesystem/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:147 (include)



/home/runner/vcpkg/buildtrees/boost-filesystem/install-wasm32-emscripten-dbg-out.log
[1/2] cd /home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean/build && /home/runner/vcpkg/installed/x64-linux/tools/boost-build/b2 toolset=emscripten --user-config=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/user-config.jam --stagedir=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/stage --build-dir=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg runtime-link=shared link=static address-model=32 target-os=linux threadapi=pthread variant=debug --layout=system -sICU_PATH="ICU_PATH-NOTFOUND" --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j 3 -sBOOST_ROOT=/home/runner/vcpkg/installed/x64-linux/tools/boost-build -sBOOST_BUILD_PATH=/home/runner/vcpkg/installed/x64-linux/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage
FAILED: CMakeFiles/boost /home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/CMakeFiles/boost 
cd /home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean/build && /home/runner/vcpkg/installed/x64-linux/tools/boost-build/b2 toolset=emscripten --user-config=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/user-config.jam --stagedir=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/stage --build-dir=/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg runtime-link=shared link=static address-model=32 target-os=linux threadapi=pthread variant=debug --layout=system -sICU_PATH="ICU_PATH-NOTFOUND" --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j 3 -sBOOST_ROOT=/home/runner/vcpkg/installed/x64-linux/tools/boost-build -sBOOST_BUILD_PATH=/home/runner/vcpkg/installed/x64-linux/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage
notice: loading B2 from /home/runner/vcpkg/installed/x64-linux/tools/boost-build/src/kernel/bootstrap.jam
notice: Site configuration files will be ignored due to the
notice: --ignore-site-config command-line option.
notice: Loading explicitly specified user configuration file:
    /home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/user-config.jam
notice: Searching '/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from '/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg'.
notice: will use '/home/runner/emsdk/upstream/emscripten/em++' for emscripten, condition <toolset>emscripten-3.1.31

Building target '../build/stage'
     Build request: object(property-set)@296 <address-model>32 <debug-symbols>on <link>static <runtime-link>shared <target-os>linux <threadapi>pthread <threading>multi <toolset>emscripten <variant>debug
...
Skipped 358 lines
...

       ** generator 'emscripten.compile.c' pruned
       ** generator 'emscripten.compile.asm' pruned
       ** generator 'emscripten.compile.m' pruned
       ** generator 'emscripten.compile.mm' pruned
       ** generator 'emscripten.compile.fortran' pruned
         Usage requirements from has_fdopendir_nofollow:  <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>c++-template-depth <relevant>coverage <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-symbols <relevant>deduced-address-model <relevant>deduced-architecture <relevant>exception-handling <relevant>inlining <relevant>instruction-set <relevant>leak-sanitizer <relevant>link <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>profiling <relevant>rtti <relevant>segmented-stacks <relevant>stdlib <relevant>target-os <relevant>thread-sanitizer <relevant>threading <relevant>toolset <relevant>toolset-emscripten:version <relevant>undefined-sanitizer <relevant>variant <relevant>visibility <relevant>warnings <relevant>warnings-as-errors
    - has fdopendir(O_NOFOLLOW) : yes [1]

     Building target '../config/has_posix_at_apis'
         Build request: object(property-set)@302 <address-model>32 <link>static <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <variant>debug
         Command line free features:
         Target requirements: <define>BOOST_ALL_NO_LIB=1 <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <include>../src <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag

         Common properties:  <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embind>off <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>linux <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <include>../src <inlining>off <install-dependencies>off <link-optimization>off <link>static <optimization>off <os>LINUX <pch>on <profiling>off <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on

         Usage requirements for has_posix_at_apis: 
         Build properties:  <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embind>off <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>linux <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <include>../src <inlining>off <install-dependencies>off <link-optimization>off <link>static <optimization>off <os>LINUX <pch>on <profiling>off <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
     *** construct OBJ
         from { has_posix_at_apis.cpp.CPP }
         properties: <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embind>off <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>linux <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <include>../src <inlining>off <install-dependencies>off <link-optimization>off <link>static <main-target-type>OBJ <optimization>off <os>LINUX <pch>on <profiling>off <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
     ***  7  viable generators
       ** generator 'rc.compile.resource' pruned
       ** generator emscripten.compile.c++
       composing:
       SUCCESS:  [ <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>c++-template-depth <relevant>cflags <relevant>coverage <relevant>cxxflags <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-symbols <relevant>define <relevant>exception-handling <relevant>flags <relevant>force-include <relevant>include <relevant>inlining <relevant>instruction-set <relevant>leak-sanitizer <relevant>link <relevant>local-visibility <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>pch-file <relevant>profiling <relevant>response-file <relevant>rtti <relevant>stdlib <relevant>target-os <relevant>thread-sanitizer <relevant>threading <relevant>toolset <relevant>toolset-emscripten:version <relevant>undefined-sanitizer <relevant>warnings <relevant>warnings-as-errors ] { emscripten%emscripten.compile.c++-has_posix_at_apis.bc.OBJ { has_posix_at_apis.cpp.CPP } }

     returned [ <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>c++-template-depth <relevant>cflags <relevant>coverage <relevant>cxxflags <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-symbols <relevant>define <relevant>exception-handling <relevant>flags <relevant>force-include <relevant>include <relevant>inlining <relevant>instruction-set <relevant>leak-sanitizer <relevant>link <relevant>local-visibility <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>pch-file <relevant>profiling <relevant>response-file <relevant>rtti <relevant>stdlib <relevant>target-os <relevant>thread-sanitizer <relevant>threading <relevant>toolset <relevant>toolset-emscripten:version <relevant>undefined-sanitizer <relevant>warnings <relevant>warnings-as-errors ] { emscripten%emscripten.compile.c++-has_posix_at_apis.bc.OBJ { has_posix_at_apis.cpp.CPP } }
       generator emscripten.compile.c++  spawned 
       { emscripten%emscripten.compile.c++-has_posix_at_apis.bc.OBJ { has_posix_at_apis.cpp.CPP } }
       with usage requirements: [ <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>c++-template-depth <relevant>cflags <relevant>coverage <relevant>cxxflags <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-symbols <relevant>define <relevant>exception-handling <relevant>flags <relevant>force-include <relevant>include <relevant>inlining <relevant>instruction-set <relevant>leak-sanitizer <relevant>link <relevant>local-visibility <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>pch-file <relevant>profiling <relevant>response-file <relevant>rtti <relevant>stdlib <relevant>target-os <relevant>thread-sanitizer <relevant>threading <relevant>toolset <relevant>toolset-emscripten:version <relevant>undefined-sanitizer <relevant>warnings <relevant>warnings-as-errors ]
       ** generator 'emscripten.compile.c' pruned
       ** generator 'emscripten.compile.asm' pruned
       ** generator 'emscripten.compile.m' pruned
       ** generator 'emscripten.compile.mm' pruned
       ** generator 'emscripten.compile.fortran' pruned
         Usage requirements from has_posix_at_apis:  <relevant>address-model <relevant>address-sanitizer <relevant>architecture <relevant>c++-template-depth <relevant>coverage <relevant>cxxstd <relevant>cxxstd-dialect <relevant>debug-symbols <relevant>deduced-address-model <relevant>deduced-architecture <relevant>exception-handling <relevant>inlining <relevant>instruction-set <relevant>leak-sanitizer <relevant>link <relevant>lto <relevant>lto-mode <relevant>optimization <relevant>pch <relevant>profiling <relevant>rtti <relevant>segmented-stacks <relevant>stdlib <relevant>target-os <relevant>thread-sanitizer <relevant>threading <relevant>toolset <relevant>toolset-emscripten:version <relevant>undefined-sanitizer <relevant>variant <relevant>visibility <relevant>warnings <relevant>warnings-as-errors
    - has POSIX *at APIs       : yes [1]

     Common properties:  <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW <define>BOOST_FILESYSTEM_HAS_INIT_PRIORITY <define>BOOST_FILESYSTEM_HAS_POSIX_AT_APIS <define>BOOST_FILESYSTEM_HAS_STAT_ST_BLKSIZE <define>BOOST_FILESYSTEM_HAS_STAT_ST_MTIM <define>BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF <embind>off <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>false <host-os>linux <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <inlining>off <install-dependencies>off <library>/boost/atomic//boost_atomic <link-optimization>off <link>static <location>/home/runner/vcpkg/buildtrees/boost-filesystem/wasm32-emscripten-dbg/stage/lib <optimization>off <os>LINUX <pch>on <profiling>off <relevant>define:<relevant>host-os <relevant>define:<relevant>target-os <relevant>define:<relevant>toolset <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <translate-path>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean/build>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean/build>.stage-translate-path <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on

     Building target '../boost_atomic'
         Build request: object(property-set)@444 <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <embind>off <exception-handling>on <extern-c-nothrow>off <inlining>off <link-optimization>off <link>static <optimization>off <os>LINUX <pch>on <profiling>off <relevant>variant <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
         Command line free features:
         Target requirements: <define>BOOST_ALL_NO_LIB=1 <file>/home/runner/vcpkg/installed/wasm32-emscripten/debug/lib/libboost_atomic.bc <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <variant>debug

         Common properties:  <address-model>32 <asynch-exceptions>off <closure>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embind>off <exception-handling>on <extern-c-nothrow>off <file>/home/runner/vcpkg/installed/wasm32-emscripten/debug/lib/libboost_atomic.bc <hardcode-dll-paths>true <host-os>linux <include>../include&&/home/runner/vcpkg/installed/wasm32-emscripten/include <inlining>off <install-dependencies>off <link-optimization>off <link>static <optimization>off <os>LINUX <pch>on <profiling>off <relevant>variant <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>%Jamfile</home/runner/vcpkg/buildtrees/boost-filesystem/src/ost-1.81.0-eceb766cd4.clean>.tag <target-os>linux <threadapi>pthread <threading>multi <toolset-emscripten:version>3.1.31 <toolset>emscripten <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
error: Unable to find file or target named
error:     '/home/runner/vcpkg/installed/wasm32-emscripten/debug/lib/libboost_atomic.bc'
error: referred to from project at
error:     '..'

ninja: build stopped: subcommand failed.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: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