Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build error #155

Open
lgyhit opened this issue Jun 25, 2023 · 4 comments
Open

docker build error #155

lgyhit opened this issue Jun 25, 2023 · 4 comments

Comments

@lgyhit
Copy link

lgyhit commented Jun 25, 2023

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
Copy link

zclyne commented Aug 15, 2023

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

@PoisWu
Copy link

PoisWu commented Sep 7, 2023

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:

  • the module isn't compatible to the latest protobuf3 library since some header files are missing. For example, the google/protobuf/generated_message_table_driven.h is missing in the newest version of protobuf3, v24.3
  • I followed the version indicate in sdk_container.sh, protobuf3 v. 3.9.1. and emsdk v3.1.7, I can build the docker image successfully but em++ can't compile http_wasm_example.cc. It throw the following error message
Screenshot 2023-09-08 at 10 17 41

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

@martijneken
Copy link
Contributor

Hi folks, I don't have a direct answer, but in case it helps I'm working on an emsdk update in #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.

@krinkinmu
Copy link
Contributor

@martijneken I think this should have been addressed by #172 and is similar to two other issues that were closed.

The PR directly addresses the issue with fail to build the container and removing prebuilt protobuf libraries from the repo and building them from the source should address the issue #155 (comment).

If you want I can test specifically on arm as well to confirm that it does work on both intel and arm platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants