Closed
Description
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 .
Activity
kripken commentedon Jul 17, 2024
I tried with
3.1.64
. I had to addto those commands. After that, it errors for me on
which I do not understand, but looks like a project-specific issue?
SaraBaradaran commentedon Jul 18, 2024
Thank you for replying. I found there is no version
3.1.64
in emsdk. The latest version is3.1.63
. When I tried with3.1.54
, I received the following error message. I've also addedgit submodule init
andgit submodule update
as you mentioned.When I tried with Emscripten version
3.1.63
, there wasn't such an error. This issue seems to be solved by LLVM's libc++ headers 18 as did by (#21638)