build errors
libtool: compile: /tmp/emsdk/upstream/emscripten/em++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/common.lo -MD -MP -MF google/protobuf/stubs/.deps/common.Tpo -c google/protobuf/stubs/common.cc -o google/protobuf/stubs/.libs/common.o In file included from google/protobuf/stubs/common.cc:34: ./google/protobuf/stubs/once.h:126:30: error: cannot initialize a parameter of type 'const volatile google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long ') if (internal::Acquire_Load(once) != ONCE_STATE_DONE) { ^~~~ ./google/protobuf/stubs/atomicops_internals_emscripten.h:83:55: note: passing argument to parameter 'ptr' here inline Atomic32 Acquire_Load(volatile const Atomic32 ptr) { ^ In file included from google/protobuf/stubs/common.cc:34: ./google/protobuf/stubs/once.h:135:30: error: cannot initialize a parameter of type 'const volatile google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long ') if (internal::Acquire_Load(once) != ONCE_STATE_DONE) { ^~~~ ./google/protobuf/stubs/atomicops_internals_emscripten.h:83:55: note: passing argument to parameter 'ptr' here inline Atomic32 Acquire_Load(volatile const Atomic32 ptr) { ^ 2 errors generated. shared:ERROR: '/tmp/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=1 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/include/libcxx -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/lib/libcxxabi/include -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/include/compat -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/include -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/include/libc -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/local/include -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -DNDEBUG -MT google/protobuf/stubs/common.lo -MD -MP -MF google/protobuf/stubs/.deps/common.Tpo -c -std=c++03 -DEMSCRIPTEN -g google/protobuf/stubs/common.cc -Xclang -isystem/tmp/emsdk/upstream/emscripten/system/include/SDL -c -o google/protobuf/stubs/.libs/common.o -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (1) Makefile:1264: recipe for target 'google/protobuf/stubs/common.lo' failed make[2]: *** [google/protobuf/stubs/common.lo] Error 1 make[2]: Leaving directory '/tmp/protobuf-emscripten/3.1.0/src' Makefile:1325: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/tmp/protobuf-emscripten/3.1.0' Makefile:1232: recipe for target 'all' failed make: *** [all] Error 2