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

Docker build fails on mac #106

Open
pnispel opened this issue Jan 2, 2024 · 1 comment
Open

Docker build fails on mac #106

pnispel opened this issue Jan 2, 2024 · 1 comment

Comments

@pnispel
Copy link

pnispel commented Jan 2, 2024

Describe the bug

➜  pdfium-lib git:(master) ✗ docker build -t pdfium-wasm -f docker/wasm/Dockerfile docker/wasm
[+] Building 13.9s (16/43)                                                                           docker:desktop-linux
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 2B                                                                                      0.0s
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 2.94kB                                                                               0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                      0.3s
 => [ 1/40] FROM docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e4  0.0s
 => CACHED [ 2/40] RUN apt-get -y update                                                                             0.0s
 => CACHED [ 3/40] RUN apt-get install -y build-essential sudo file git wget curl cmake ninja-build zip unzip tar p  0.0s
 => CACHED [ 4/40] RUN echo "America/Sao_Paulo" > /etc/timezone                                                      0.0s
 => CACHED [ 5/40] RUN dpkg-reconfigure -f noninteractive tzdata                                                     0.0s
 => CACHED [ 6/40] RUN /bin/echo -e "LANG="en_US.UTF-8"" > /etc/default/local                                        0.0s
 => CACHED [ 7/40] RUN echo /usr/lib/jvm/java-8-openjdk-amd64/                                                       0.0s
 => CACHED [ 8/40] RUN java -version                                                                                 0.0s
 => CACHED [ 9/40] RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git -b main /opt/depo  0.0s
 => CACHED [10/40] RUN mkdir /build                                                                                  0.0s
 => CACHED [11/40] WORKDIR /build                                                                                    0.0s
 => CACHED [12/40] RUN gclient config --custom-var checkout_configuration=minimal --unmanaged https://pdfium.google  0.0s
 => ERROR [13/40] RUN gclient sync -r origin/chromium/6183 --no-history --shallow                                   13.5s
------
 > [13/40] RUN gclient sync -r origin/chromium/6183 --no-history --shallow:
12.93
12.93 ________ running 'cipd ensure -log-level error -root /build -ensure-file /tmp/tmpep4eaq_u.ensure' in '.'
12.93 Errors:
12.93   failed to resolve infra/rbe/client/linux-arm64@re_client_version:0.120.1.f75cfb7-gomaip (line 8): no such package: infra/rbe/client/linux-arm64
12.93 Error: Command 'cipd ensure -log-level error -root /build -ensure-file /tmp/tmpep4eaq_u.ensure' returned non-zero exit status 1
12.93 Errors:
12.93   failed to resolve infra/rbe/client/linux-arm64@re_client_version:0.120.1.f75cfb7-gomaip (line 8): no such package: infra/rbe/client/linux-arm64
12.93
------
Dockerfile:41
--------------------
  39 |     RUN gclient config --custom-var checkout_configuration=minimal --unmanaged https://pdfium.googlesource.com/pdfium.git
  40 |     RUN echo "target_os = [ 'wasm' ]" >> .gclient
  41 | >>> RUN gclient sync -r origin/chromium/6183 --no-history --shallow
  42 |
  43 |     # pdfium reset and clean directories
--------------------
ERROR: failed to solve: process "/bin/sh -c gclient sync -r origin/chromium/6183 --no-history --shallow" did not complete successfully: exit code: 1

System (please complete the following information):

  • OS: MacOS 14.2.1 (23C71) M1 Max
  • Target: wasm
@paulocoutinhox
Copy link
Owner

Hi,

Project was updated to latest version and docker files too.

If you are using M1/M2/M3 use platform param from docker:

docker build --platform linux/amd64 -t pdfium-android -f docker/android/Dockerfile docker/android
or
docker build --platform linux/amd64 -t pdfium-wasm -f docker/wasm/Dockerfile docker/wasm  

If your problem was solved, can you close the issue pls?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants