You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Robbllle (via GitHub)" <gi...@apache.org> on 2025/08/20 09:42:13 UTC
[I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Robbllle opened a new issue, #35916:
URL: https://github.com/apache/beam/issues/35916
For reference I'm on MacOS 15.6 with an M4 Max SoC.
1. Run the `start-build-env` script
2. Build fails at step 10. The Python wheels can't be build with error
```
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_PTHREAD=1 -I. -Igrpc_root -Igrpc_root/include -Ithird_party/abseil-cpp -Ithird_party/protobuf -Ithird_party/protobuf/src -Ithird_party/protobuf/upb -Ithird_party/protobuf/third_party/utf8_range -I/usr/include/python3.8 -c third_party/protobuf/src/google/protobuf/extension_set.cc -o build/temp.linux-aarch64-3.8/third_party/protobuf/src/google/protobuf/extension_set.o -std=c++17 -fno-wrapv -frtti -O1
52.62 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
52.62 ----------------------------------------
52.62 ERROR: Failed building wheel for grpcio-tools
52.62 Running setup.py clean for grpcio-tools
52.75 Building wheel for grpcio (setup.py): started
112.8 Building wheel for grpcio (setup.py): still running...
152.6 Building wheel for grpcio (setup.py): finished with status 'error'
152.6 ERROR: Command errored out with exit status 1:
152.6 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mpuz4ay1/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mpuz4ay1/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-pkq0wdu9
152.6 cwd: /tmp/pip-install-mpuz4ay1/grpcio/
152.6 Complete output (5481 lines):
152.6 SSE2 not enabled on linux-aarch64 platform
152.6 Found cython-generated files...
152.6 running bdist_wheel
152.6 running build
152.6 running build_py
152.6 running build_project_metadata
_..._
```
And eventually fails with
```
Dockerfile:65
--------------------
63 | # Install grpcio-tools mypy-protobuf for `python3 sdks/python/setup.py sdist` to work
64 | ###
65 | >>> RUN pip3 install grpcio-tools mypy-protobuf
66 |
67 | ###
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c pip3 install grpcio-tools mypy-protobuf" did not complete successfully: exit code: 1
```
I couldn't find anything that says that MacOS with ARM CPUs is unsupported for this image.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Posted by "Robbllle (via GitHub)" <gi...@apache.org>.
Robbllle commented on issue #35916:
URL: https://github.com/apache/beam/issues/35916#issuecomment-3206902335
Hmm, apparently the beam-build image was updated between the latest release tag `v2.67.0` and `master`. Running the script from the master branch works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Posted by "Robbllle (via GitHub)" <gi...@apache.org>.
Robbllle commented on issue #35916:
URL: https://github.com/apache/beam/issues/35916#issuecomment-3206716193
Would you mind sharing your virutal machine config of docker dekstop? I previously had a M1 Max machine as well but also had the same issue.
For reference this what I use
<img width="802" height="342" alt="Image" src="https://github.com/user-attachments/assets/ce93db51-3122-4521-9517-dec17cfa9c68" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Posted by "mohamedawnallah (via GitHub)" <gi...@apache.org>.
mohamedawnallah commented on issue #35916:
URL: https://github.com/apache/beam/issues/35916#issuecomment-3206735630
The Virtual Machine Options are the same as mine. I have used Claude Code to see what other experiments someone can do:
https://gist.github.com/mohamedawnallah/7a6adccc6dbc4da6eaa1f2d56e25ddf7
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Posted by "mohamedawnallah (via GitHub)" <gi...@apache.org>.
mohamedawnallah commented on issue #35916:
URL: https://github.com/apache/beam/issues/35916#issuecomment-3206697441
I can't reproduce this locally. I am on Mac OS with ARM CPU (Mac M1) and Docker Engine v28.0.4 (default settings) through Docker Desktop:
```bash
➜ beam git:(master) ./start-build-env.sh
[+] Building 3.2s (24/24) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.11kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:24.04 2.6s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [ 1/18] FROM docker.io/library/ubuntu:24.04@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c 0.0s
=> => resolve docker.io/library/ubuntu:24.04@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c03 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 211B 0.0s
=> CACHED [ 2/18] WORKDIR /root 0.0s
=> CACHED [ 3/18] RUN echo APT::Install-Recommends "0"; > /etc/apt/apt.conf.d/10disableextras 0.0s
=> CACHED [ 4/18] RUN echo APT::Install-Suggests "0"; >> /etc/apt/apt.conf.d/10disableextras 0.0s
=> CACHED [ 5/18] RUN apt -q update && apt install -y software-properties-common apt-utils apt-transport 0.0s
=> CACHED [ 6/18] RUN mkdir /package 0.0s
=> CACHED [ 7/18] COPY pkglist /package/pkglist 0.0s
=> CACHED [ 8/18] RUN apt-get -q install -y --no-install-recommends $(grep -v '^#' /package/pkglist | cat) 0.0s
=> CACHED [ 9/18] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen 0.0s
=> CACHED [10/18] RUN pip3 install --break-system-packages grpcio-tools mypy-protobuf 0.0s
=> CACHED [11/18] RUN pip3 install --break-system-packages distlib==0.3.9 yapf==0.43.0 pytest pluggy==1.4.0 0.0s
=> CACHED [12/18] RUN wget https://golang.org/dl/go1.24.0.linux-amd64.tar.gz && tar -C /usr/local -xzf 0.0s
=> CACHED [13/18] RUN mkdir /scripts 0.0s
=> CACHED [14/18] COPY beam_env_checks.sh /scripts/beam_env_checks.sh 0.0s
=> CACHED [15/18] COPY bashcolors.sh /scripts/bashcolors.sh 0.0s
=> CACHED [16/18] RUN chmod 755 /scripts /scripts/beam_env_checks.sh /scripts/bashcolors.sh 0.0s
=> CACHED [17/18] RUN echo '. /etc/bash_completion' >> /root/.bash_aliases 0.0s
=> CACHED [18/18] RUN echo '. /scripts/beam_env_checks.sh' >> /root/.bash_aliases 0.0s
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] beam-build image fails to build on MacOS with ARM CPUs [beam]
Posted by "Robbllle (via GitHub)" <gi...@apache.org>.
Robbllle closed issue #35916: beam-build image fails to build on MacOS with ARM CPUs
URL: https://github.com/apache/beam/issues/35916
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org