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 the v2.5.0 tag #1023

Closed
dradenvandewind opened this issue Jan 26, 2022 · 0 comments · Fixed by #1045 or #1312
Closed

Docker build fails on the v2.5.0 tag #1023

dradenvandewind opened this issue Jan 26, 2022 · 0 comments · Fixed by #1045 or #1312
Assignees
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@dradenvandewind
Copy link

dradenvandewind commented Jan 26, 2022

System info

Operating System: ubuntu 18.04
Shaka Packager Version: v2.5.0

Issue and steps to reproduce the problem

Dockerfile-v2.5.0 file

FROM alpine:3.11 as builder

# Install utilities, libraries, and dev tools.
RUN apk add --no-cache \
        bash curl \
        bsd-compat-headers linux-headers \
        build-base git ninja python2 python3 c-ares-dev ntpsec tzdata
RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo "Europe/Paris" >  /etc/timezone

# Install depot_tools.
WORKDIR /
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ENV PATH $PATH:/depot_tools

# Alpine uses musl which does not have mallinfo defined in malloc.h. Define the
# structure to workaround a Chromium base bug.
RUN sed -i \
    '/malloc_usable_size/a \\nstruct mallinfo {\n  int arena;\n  int hblkhd;\n  int uordblks;\n};' \
    /usr/include/malloc.h
ENV GYP_DEFINES='musl=1'

# Bypass VPYTHON included by depot_tools, which no longer works in Alpine.
ENV VPYTHON_BYPASS="manually managed python not supported by chrome operations"

# Build shaka-packager from the current directory, rather than what has been
# merged.
WORKDIR shaka_packager

#ini
RUN gclient config https://github.com/google/shaka-packager.git --name=src && gclient sync -r v2.5.0

COPY . src
RUN ninja -C src/out/Release

Extra steps to reproduce the problem?

docker build - < Dockerfile-v2.5.0

What is the expected result?
shaka-packager build !

What happens instead?

fault -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-tautological-constant-compare -Wno-unguarded-availability -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-deprecated-declarations -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables   -c ../../packager/third_party/zlib/infback.c -o obj/third_party/zlib/zlib.infback.o
/bin/sh: ../../packager/third_party/llvm-build/Release+Asserts/bin/clang: not found
[13/1714] CC obj/third_party/zlib/zlib.inffast.o
FAILED: obj/third_party/zlib/zlib.inffast.o 
../../packager/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/zlib/zlib.inffast.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=317263-2 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_NOTIFICATIONS -DUSE_UDEV -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -D__UCLIBC__ -DUSE_LIBPCI=1 -DUSE_NSS_CERTS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../packager/third_party/zlib -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-tautological-constant-compare -Wno-unguarded-availability -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-deprecated-declarations -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables   -c ../../packager/third_party/zlib/inffast.c -o obj/third_party/zlib/zlib.inffast.o
/bin/sh: ../../packager/third_party/llvm-build/Release+Asserts/bin/clang: not found
[14/1714] ACTION Generating embeddable license
ninja: build stopped: subcommand failed.
The command '/bin/sh -c ninja -C src/out/Release' returned a non-zero code: 1

@joeyparrish joeyparrish self-assigned this Mar 8, 2022
@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Mar 8, 2022
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
This fixes build issues in our CI, our Dockerfiles, and in general.

Closes shaka-project#1023
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
This fixes build issues in our CI, our Dockerfiles, and in general.

Closes shaka-project#1023
@github-actions github-actions bot added this to the v2.6 milestone Mar 8, 2022
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.  We also need to
disable the copy of python (vpython) included in depot_tools, since
for some distros, it has dependencies on system libraries that no
longer exist.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
joeyparrish added a commit to joeyparrish/shaka-packager that referenced this issue Mar 8, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
joeyparrish added a commit that referenced this issue Mar 9, 2022
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes #1023
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label May 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2022
sr1990 pushed a commit to sr1990/shaka-packager that referenced this issue Feb 18, 2023
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
sr1990 pushed a commit to sr1990/shaka-packager that referenced this issue Feb 18, 2023
Using the latest depot_tools no longer works.  depot_tools also wants
to auto-update itself, which must now be disabled.

We also need to disable the copy of python (vpython) included in
depot_tools, since for some distros, it has dependencies on system
libraries that no longer exist.

Finally, we need to force some distros to use python 2, because our
build system is ancient and needs to be ripped out and replaced some
day soon.

This fixes build issues in our CI, our Dockerfiles, and in general on
certain platforms or distros.

Closes shaka-project#1023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
2 participants