Skip to content

Unexpected error in system/lib/libcxx/include/__format/format_arg_store.h #22252

Closed
@SaraBaradaran

Description

@SaraBaradaran

I faced the following error when compiling network_opt (https://github.com/google/network-opt) using Emscripten. It seems there is a bug in LLVM's libc++ header system/lib/libcxx/include/__format/format_arg_store.h.

version: 3.1.54

/home/sara/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__format/format_arg_store.h:227:34: error: parameter declarator cannot be qualified
  227 | template <class _Context, size_t N>
      |                                  ^

You can reproduce the error using the following commands:

$ git clone https://github.com/google/network-opt
$ cd network-opt
$ mkdir build
$ cd build
$ emcmake cmake -DCMAKE_CXX_FLAGS="-sUSE_BOOST_HEADERS" ..
$ emmake cmake --build .

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