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

armv7: get_regular_files_non_recursive(/vcpkg/triplets): Value too large for defined data type #21755

Closed
vladimir-voinea opened this issue Nov 29, 2021 · 2 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:registries This PR or Issue pertains to the registries feature

Comments

@vladimir-voinea
Copy link

vladimir-voinea commented Nov 29, 2021

Describe the bug
I am getting an error when installing packages on armv7, using Docker multiarch build.

Environment

  • OS: Docker multibuild via buildx, on armv7 target
  • Compiler: revision

To Reproduce

Steps to reproduce the behavior:

In Dockerfile:

FROM ubuntu:20.10
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt install -yy -q --no-install-recommends ca-certificates libssl-dev git build-essential autoconf libtool pkg-config libtool curl make g++ zip unzip tar ninja-build
RUN curl -L -o cmake-3.22.0.tar.gz https://github.com/Kitware/CMake/releases/download/v3.22.0/cmake-3.22.0.tar.gz && file cmake-3.22.0.tar.gz && tar xvf cmake-3.22.0.tar.gz && cd cmake-3.22.0 && ./bootstrap && make && make install && cd / && rm -rf ./cmake-3.22.0*
RUN git clone https://github.com/microsoft/vcpkg
RUN ./vcpkg/bootstrap-vcpkg.sh
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
RUN ./vcpkg/vcpkg install restinio json-dto spdlog
RUN ./vcpkg/vcpkg integrate install

Built with:
docker buildx build --push --platform linux/amd64,linux/arm/v7 -t image_name_goes_here .

Expected behavior
Package installation should be successful on armv7. This arch is needed for Docker images for Raspberry Pi 3B+

Failure logs
=> ERROR [linux/arm/v7 12/14] RUN ./vcpkg/vcpkg install restinio json-dto spdlog 0.4s

[linux/arm/v7 12/14] RUN ./vcpkg/vcpkg install restinio json-dto spdlog:
#17 0.286 get_regular_files_non_recursive(/vcpkg/triplets): Value too large for defined data type


Dockerfile:39

37 | RUN ./vcpkg/bootstrap-vcpkg.sh
38 | ENV VCPKG_FORCE_SYSTEM_BINARIES=1
39 | >>> RUN ./vcpkg/vcpkg install restinio json-dto spdlog
40 | RUN ./vcpkg/vcpkg integrate install
41 |

error: failed to solve: rpc error: code = Unknown desc = process "/bin/sh -c ./vcpkg/vcpkg install restinio json-dto spdlog" did not complete successfully: exit code: 1

Additional context
The vcpkg commands run without error for the linux/amd64 Docker build target.

@autoantwort
Copy link
Contributor

Duplicate of #21189 :)

@JonLiu1993 JonLiu1993 self-assigned this Nov 30, 2021
@JonLiu1993 JonLiu1993 added category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:registries This PR or Issue pertains to the registries feature labels Nov 30, 2021
@JonLiu1993
Copy link
Member

@vladimir-voinea ,Thanks for posting this issue, this issue duplicate of #21189, temporarily close this issue, we will track it in issue #21189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:registries This PR or Issue pertains to the registries feature
Projects
None yet
Development

No branches or pull requests

3 participants