-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"Failed to solve: process ... exit code 2" when building demo from source with Docker #885
Comments
Adding the full log to the issue:
|
Looks like the problem appears as of Alpine 3.18 and it is related to opentelementry-proto. It compiles under Alpine 3.17. |
From error
It seems Alpine 3.18 brings latest version of abseil/gRPC packages which need atleast C++14 compiler for builds. Can you try building otel-cpp by adding
|
I'm having the same issue. It appears similar to open-telemetry/opentelemetry-cpp#2075. However, adding the following didn't seem to help:
|
@lalitb Adding the argument didn't help. I'm getting the same error. |
How about trying with |
@lalitb 17 worked for me!
|
Here is probably the where the default |
Yes, opentelemetry-cpp is written in C++11, so it uses this as default version for compilation. For scenarios where exporters have dependencies on libraries which doesn't support C++11, the version needs to be set explicitly using CMAKE_CXX_STANDARD. |
Bug Report
OpenTelemetry Demo 1.4
Symptom
Since yesterday evening, 2023-05-09, I'm getting the following error message when building the demo from source with
docker compose build
:failed to solve: process "/bin/sh -c git clone https://github.com/open-telemetry/opentelemetry-cpp \t&& cd opentelemetry-cpp/ \t&& git checkout tags/v${OPENTELEMETRY_CPP_VERSION} -b v${OPENTELEMETRY_CPP_VERSION} \t&& mkdir build \t&& cd build \t&& cmake .. -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DWITH_EXAMPLES=OFF -DWITH_OTLP=ON -DWITH_OTLP_GRPC=ON \t&& make -j$(nproc || sysctl -n hw.ncpu || echo 1) install && cd ../.. && rm -rf opentelemetry-cpp" did not complete successfully: exit code: 2
Additional Context
I tried it on Windows and macOS.
The text was updated successfully, but these errors were encountered: