Joshua Hemphill
unread,Oct 21, 2022, 2:07:40 PM10/21/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev, vad...@chromium.org, Chromium-dev, Joshua Hemphill
After posting I realized I should have explained why I'm posting here and not opening a bug report.
At the time I thought it would be filed under the chromium project, and couldn't find any templates/tags that I could create a bug with that would have been appropriate for this; though now I've found there's a separate `gn` project that looks like it might be the right place, though I could still use confirmation on that.
I also can't imagine I'm the only one running the build tools inside a container, so I want to make sure this isn't something known that I just haven't been able to find an exact bug for or if my conclusion is wrong.
The files involved, exact error is:
________ running 'cipd ensure -log-level error -root /google -ensure-file /tmp/tmpq0p1bgkv.ensure' in '.'
[P717 06:13:56.876 client.go:1901 E] [cleanup] Failed to remove infra/3pp/tools/ninja/linux-amd64 in "v8/third_party/ninja": removing the deployed package directory: rename /google/.cipd/pkgs/1 /google/.cipd/pkgs/1KdFTau6oBml: invalid cross-device link
Errors:
failed to remove infra/3pp/tools/ninja/linux-amd64 in "v8/third_party/ninja": removing the deployed package directory: rename /google/.cipd/pkgs/1 /google/.cipd/pkgs/1KdFTau6oBml: invalid cross-device link
Error: Command 'cipd ensure -log-level error -root /google -ensure-file /tmp/tmpq0p1bgkv.ensure' returned non-zero exit status 1
[P717 06:13:56.876 client.go:1901 E] [cleanup] Failed to remove infra/3pp/tools/ninja/linux-amd64 in "v8/third_party/ninja": removing the deployed package directory: rename /google/.cipd/pkgs/1 /google/.cipd/pkgs/1KdFTau6oBml: invalid cross-device link
Errors:
failed to remove infra/3pp/tools/ninja/linux-amd64 in "v8/third_party/ninja": removing the deployed package directory: rename /google/.cipd/pkgs/1 /google/.cipd/pkgs/1KdFTau6oBml: invalid cross-device link
Portions of my dockerfile are probably relevant as well for the versions being pulled:
# Prepare V8
RUN mkdir google
WORKDIR /google
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
WORKDIR /google/depot_tools
RUN git checkout remotes/origin/main
ENV PATH=/google/depot_tools:$PATH
WORKDIR /google
RUN fetch v8
WORKDIR /google/v8
RUN git checkout 10.6.194.14
RUN sed -i 's/snapcraft/nosnapcraft/g' ./build/install-build-deps.sh
RUN ./build/install-build-deps.sh
RUN sed -i 's/nosnapcraft/snapcraft/g' ./build/install-build-deps.sh
WORKDIR /google
RUN gclient sync
RUN echo V8 preparation is completed.
# Build V8
WORKDIR /google/v8
RUN python3 tools/dev/v8gen.py x64.release -- v8_monolithic=true v8_use_external_startup_data=false is_component_build=false v8_enable_i18n_support=false v8_enable_pointer_compression=false v8_static_library=true symbol_level=0 use_custom_libcxx=false v8_enable_sandbox=false
COPY ./scripts/python/patch_v8_build.py .
RUN ninja -C out.gn/x64.release v8_monolith || python3 patch_v8_build.py -p ./
RUN ninja -C out.gn/x64.release v8_monolith
RUN rm patch_v8_build.py
RUN echo V8 build is completed.