open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
849 stars 403 forks source link

absl/debugging/CMakeFiles/failure_signal_handler.dir/all Error 2 #2514

Open patsevanton opened 8 months ago

patsevanton commented 8 months ago

Hello! Thanks for opentelemetry-cpp I use Dockefile from https://github.com/open-telemetry/opentelemetry-cpp/blob/main/docker/ubuntuLatest/Dockerfile

FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /work

#install grpc and abseil
ARG GRPC_VERSION=v1.38.0
RUN apt-get update && apt-get install -y build-essential autoconf libtool pkg-config cmake git libssl-dev && \
    git clone --depth=1 -b $GRPC_VERSION  https://github.com/grpc/grpc.git && \
    cd grpc && git submodule update --init && \
    mkdir -p "third_party/abseil-cpp/build" && cd "third_party/abseil-cpp/build" && \
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE .. && \
    make -j${nproc} install && cd ../../.. && \
    mkdir build && cd build &&  \
    cmake \
        -DCMAKE_BUILD_TYPE=Release \
        -DgRPC_INSTALL=ON \
        -DgRPC_BUILD_TESTS=OFF \
        -DgRPC_ABSL_PROVIDER=package \
        -DgRPC_SSL_PROVIDER=package \
        .. && \
    make -j${nproc} install && make clean && ldconfig && \
    cd ../..

#install opentelemetry-cpp
RUN apt-get install -y --no-install-recommends libcurl4-openssl-dev && git clone --depth=1 https://github.com/open-telemetry/opentelemetry-cpp.git && \
    cd opentelemetry-cpp && git submodule update --init && \
    mkdir -p build && cd build && \
    cmake \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE  \
        -DWITH_ZIPKIN=ON \
        -DBUILD_TESTING=OFF \
        -DWITH_OTLP_GRPC=ON \
        -DWITH_OTLP_HTTP=ON \
        .. && \
    make -j${nproc} install && ldconfig && \
    cd ../..

error

397.9 make[2]: *** [absl/debugging/CMakeFiles/failure_signal_handler.dir/build.make:76: absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o] Error 1
397.9 make[1]: *** [CMakeFiles/Makefile2:971: absl/debugging/CMakeFiles/failure_signal_handler.dir/all] Error 2
397.9 make[1]: *** Waiting for unfinished jobs....
398.1 [ 85%] Linking CXX static library libabsl_synchronization.a
398.1 [ 85%] Built target synchronization
398.2 [ 85%] Linking CXX static library libabsl_random_seed_sequences.a
398.2 [ 86%] Linking CXX static library libabsl_random_internal_distribution_test_util.a
398.2 [ 86%] Built target random_seed_sequences
398.2 [ 86%] Built target random_internal_distribution_test_util
398.3 [ 86%] Linking CXX static library libabsl_cord.a
398.4 [ 86%] Built target cord
398.5 [ 86%] Linking CXX static library libabsl_flags_marshalling.a
398.5 [ 86%] Built target flags_marshalling
398.5 make: *** [Makefile:136: all] Error 2
github-actions[bot] commented 6 months ago

This issue was marked as stale due to lack of activity.