Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

make fails on ubuntu #73

Description

@SynapseScribe

log is right after docker container is created and updated

..........
Setting up libcairo2:amd64 (1.15.10-2ubuntu0.1) ...
Setting up curl (7.58.0-2ubuntu3.22) ...
Setting up build-essential (12.4ubuntu1) ...
Setting up libpangoft2-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up libpangocairo-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up libgvc6 (2.40.1-2) ...
Setting up graphviz (2.40.1-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Processing triggers for mime-support (3.60ubuntu1) ...

  • rm -f /usr/bin/gcc
  • ln -s /usr/bin/gcc-10 /usr/bin/gcc
  • curl -sL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz
  • tar xzf - -C /opt
  • cp /opt/cmake-3.14.5-Linux-x86_64/bin/ccmake /opt/cmake-3.14.5-Linux-x86_64/bin/cmake /opt/cmake-3.14.5-Linux-x86_64/bin/cmake-gui /opt/cmake-3.14.5-Linux-x86_64/bin/cpack /opt/cmake-3.14.5-Linux-x86_64/bin/ctest /usr/local/bin/
  • cp -R /opt/cmake-3.14.5-Linux-x86_64/share/cmake-3.14 /usr/local/share/
  • curl -sL https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz
  • tar xzf - -C /usr/local
  • mkdir -p /gopath/{src,bin}
  • printf export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n
  • printf #!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n
  • chmod +x /entrypoint
  • GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json

github.com/prometheus/common/expfmt

gopath/src/github.com/prometheus/common/expfmt/decode.go:89:34: cannot use v (type *io_prometheus_client.MetricFamily) as type protoreflect.ProtoMessage in argument to pbutil.ReadDelimited:
*io_prometheus_client.MetricFamily does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
gopath/src/github.com/prometheus/common/expfmt/encode.go:120:36: cannot use v (type io_prometheus_client.MetricFamily) as type protoreflect.ProtoMessage in argument to pbutil.WriteDelimited:
io_prometheus_client.MetricFamily does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
gopath/src/github.com/prometheus/common/expfmt/text_create.go:46:27: undefined: io.Discard
The command '/bin/sh -c set -x && apt-get update && apt-get install -y apt-utils software-properties-common clang-format && add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update -y && apt-get install -y curl tar build-essential git pkg-config gdb valgrind gcc-10 libmicrohttpd-dev doxygen graphviz && rm -f /usr/bin/gcc && ln -s /usr/bin/gcc-10 /usr/bin/gcc && curl -sL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz | tar xzf - -C /opt && cp /opt/cmake-3.14.5-Linux-x86_64/bin/
/usr/local/bin/ && cp -R /opt/cmake-3.14.5-Linux-x86_64/share/cmake-3.14 /usr/local/share/ && curl -sL https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz 2> /dev/null | tar xzf - -C /usr/local && mkdir -p /gopath/{src,bin} && printf 'export GOPATH=/gopath\nexport PATH=$PATH:/usr/local/go/bin:/gopath/bin\n' > /root/.bash_profile && printf '#!/usr/bin/env bash\nsource /root/.bash_profile\nexec /bin/bash $@\n' > /entrypoint && chmod +x /entrypoint && GOPATH=/gopath /usr/local/go/bin/go get github.com/prometheus/prom2json && GOPATH=/gopath /usr/local/go/bin/go install github.com/prometheus/prom2json/cmd/prom2json && GOPATH=/gopath /usr/local/go/bin/go get github.com/git-chglog/git-chglog && GOPATH=/gopath /usr/local/go/bin/go install github.com/git-chglog/git-chglog/cmd/git-chglog && rm -rf /var/lib/apt/lists/
' returned a non-zero code: 2
make[1]: *** [Makefile:2: docker] Error 2
make[1]: Leaving directory '/home/user/GitHub_Releases/prometheus-client-c/docker'
ERROR: Docker Build Failure
make: *** [Makefile:26: clean] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions