Skip to content

OSX Build Failing #14

@GordonSmith

Description

@GordonSmith

Job Failure Summary

See failing job: https://github.com/GordonSmith/component-model-cpp/actions/runs/18194501364/job/51797087211 (ref: 72f9cda)

1. WASI SDK/Clang Dynamic Library Not Found

dyld: Library not loaded: @rpath/libclang-cpp.dylib
Referenced from: .../build/vcpkg_installed/arm64-osx/wasi-sdk/bin/clang-19
Reason: tried: .../lib/libclang-cpp.dylib (no such file)
  • Solution: Ensure libclang-cpp.dylib is present in wasi-sdk/lib/. Reinstall WASI SDK or set DYLD_LIBRARY_PATH appropriately.

2. No Matching Constructor for cmcpp::InstanceContext

error: no matching constructor for initialization of 'cmcpp::InstanceContext'
candidate constructor ... not viable: requires 1 argument, but 3 were provided
  • Solution: Add a constructor to InstanceContext matching the arguments provided, or fix instantiation to use correct arguments.

3. Constexpr Initialization Errors in traits.hpp

constexpr variable 'flat_types' must be initialized by a constant expression
static constexpr std::array<WasmValType, flat_types_len> flat_types = []() constexpr { ... }
  • Solution: Refactor initialization so all expressions are compatible with C++17/20 constexpr rules. Avoid lambdas in constexpr context.

4. Template Deduction Failure for flatten

no matching function for call to 'flatten'
candidate template ignored: failed template argument deduction
  • Solution: Explicitly specify template arguments, and ensure calls match the function signature in func.hpp.

Please refer to the job logs (ref: 72f9cda) for full error details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions