Skip to content

[Bug] Compilation Error in Blaze Using MinGW on Windows #448

Description

@MadhavDhatrak

Description

When compiling Blaze with MinGW 14.2.0 on Windows, the build fails with an ambiguous constructor error in the sourcemeta_core_jsonpointer component.

Error Location

The error occurs at

  • File: deps/blaze/vendor/core/src/core/jsonpointer/parser.h
  • Where: result.emplace_back(internal::parse_index(string, column))

Root Cause

1.The parse_index() function returns a long unsigned int
2.The code attempts to construct a GenericToken with this value
3.The compiler cannot decide between multiple constructors:

  • GenericToken(const int value) - jsonpointer_token.h
  • GenericToken(const Index value) where Index is long long unsigned int
  • GenericToken(const JSON::Char value)

Reproduction

Using MinGW to build with

cmake -Bbuild -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions