proxy-wasm / proxy-wasm-cpp-sdk

WebAssembly for Proxies (C++ SDK)
Apache License 2.0
137 stars 67 forks source link

docker build error #155

Open lgyhit opened 1 year ago

lgyhit commented 1 year ago

I tried build a c++ source file to a wasm module using proxy-wasm-cpp-sdk (https://github.com/proxy-wasm/proxy-wasm-cpp-sdk.git). I follows the README first , I download this project: git clone ttps://github.com/proxy-wasm/proxy-wasm-cpp-sdk.git & cd proxy-wasm-cpp-sdk secondly, docker build -t wasmsdk:v2 -f Dockerfile-sdk . then, the following picture shows what confused me. image I guess it was emsdk in container, when emcc doing something, errors occurred, maybe libstdc++.so.6 and glibc version is lower ? How can i fix this problem , please help me ~ image

zclyne commented 11 months ago

I ran into the same error. Wonder this issue is ignored for over half a year..

PoisWu commented 10 months ago

I ran into the same error, too.
I tried to solve the problem by upgrading the version of OS, protobuf3 and emsdk toolchain, I ran into another problems, they are:

PS. The OS I tried is ubuntu:jammy under arm architecture.

martijneken commented 10 months ago

Hi folks, I don't have a direct answer, but in case it helps I'm working on an emsdk update in https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/pull/157, bumping emsdk from v3.1.7 to v3.1.44. I ran into a different Bazel+Cmake error in that process (now resolved in emsdk), so you might try whether version bump changes anything for you. AFAIK the patch is ready from the ProxyWasmCppSdk point of view -- I'm still looking at Envoy issues.