browsermt / bergamot-translator

Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
http://browser.mt
Mozilla Public License 2.0
327 stars 36 forks source link

Build WASM fails, for failure to build marian-dev #438

Closed AmitMY closed 2 years ago

AmitMY commented 2 years ago

Following the README instructions, I could not "Build WASM".

The make command fails with

/bergamot-translator/3rd_party/marian-dev/src/data/factored_vocab.cpp:133:20: error: variable 'v' set but not used [-Werror,-Wunused-but-set-variable]
    for (WordIndex v = 0; io::getline(in, line); v++) {
                   ^

Perhaps I need a different gcc version or cmake version or something, but I do not know.

A full reproduction including a Dockerfile is found in: https://github.com/marian-nmt/marian/issues/393