Skip to content

CMake Install fails on 22.04-based system #14862

Closed
@adventurist

Description

What version of protobuf and what language are you using?
v25.1

For use in C++, but no relevant here

What operating system (Linux, Windows, ...) and version?
Debian 22.04-based docker image (buildpack-deps:22.04)

What runtime / compiler are you using (e.g., python version or gcc version)
g++ 11.4.0

What did you do?
build this docker image:

FROM buildpack-deps:22.04

RUN apt clean -y && apt update -y && apt install -y ca-certificates
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get install -y tzdata
RUN apt-get update --fix-missing

RUN apt-get install -y wget cmake gcc git less vim
WORKDIR /
RUN git clone --branch v25.1 https://github.com/protocolbuffers/protobuf
WORKDIR /protobuf
RUN git submodule update --init --recursive
RUN mkdir build
WORKDIR /protobuf/build
RUN cmake -Dprotobuf_BUILD_TESTS=OFF .. && make -j && make install

What did you expect to see
Successful install

What did you see instead?
make install fails at the very end with the following:

CMake Error at cmake_install.cmake:1040 (file):                                                                                                                                          
  file INSTALL cannot find                                                                                                                                                               
  "/protobuf/java/core/src/main/java/com/google/java_features.proto": No such                                                                                                            
  file or directory.                                                                                                                                                                     
                                                                                                                                                                                         
                                                                                                                                                                                         
make: *** [Makefile:100: install] Error 1         

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions