Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Build fails on WSL2 for windows #38

Description

@fhoering

I'm trying to build the latest version 4.7 of B&A https://github.com/privacysandbox/bidding-auction-servers with WSL2 Ubuntu

./production/packaging/build_and_test_all_in_docker \
  --service-path bidding_service \
  --service-path auction_service \
  --service-path buyer_frontend_service \
  --service-path seller_frontend_service \
  --platform gcp \
  --instance local \
  --no-precommit \
  --no-tests \
  --build-flavor non_prod \
  --gcp-skip-image-upload

Any idea on how to fix this as it worked before introducing this code path ?

https://github.com/privacysandbox/data-plane-shared-libraries/blob/72a4f180505acaa9baf30416c97ed88f256b15af/src/roma/byob/container/BUILD.bazel#L225

ERROR: /bazel_root/build_ubuntu_b77b7d5/ae89832ceb705fbace0506a09b1a240f/external/google_privacysandbox_servers_common/src/roma/byob/container/BUILD.bazel:222:12: Executing genrule @google_privacysandbox_servers_common//src/roma/byob/container:gen_byob_runtime_container_tar_amd64 failed: (Exit 1): bash failed: error executing command (from target @google_privacysandbox_servers_common//src/roma/byob/container:gen_byob_runtime_container_tar_amd64)
  (cd /bazel_root/build_ubuntu_b77b7d5/ae89832ceb705fbace0506a09b1a240f/sandbox/linux-sandbox/58/execroot/__main__ && \
  exec env - \
    PATH=/root/.cache/bazelisk/downloads/sha256/d64606c17e6b6a7fc119150420b4c109315982319ff3229587e200c47bf36946/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin \
    TOOLCHAINS_HASH=b77b7d50a6527337035ce8d9d8a4a32218c32a5c0c431f28d4ca1a4bf767e384 \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; echo FROM gcr.io/distroless/cc-debian11@sha256:5a9e854bab8498a61a66b2cfa4e76e009111d09cb23a353aaa8d926e29a653d9 | docker buildx build --output=type=tar,dest=bazel-out/k8-opt/bin/external/google_privacysandbox_servers_common/src/roma/byob/container/byob_runtime_base_amd64.tar --file=- .')
# Configuration: 495a315cb963408b5d7f5d3da7b60442029a34572baf1796db8a4b1bf394e6e6
# Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ERROR: mkdir /root/.docker: read-only file system

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions