perkolatte opened a new pull request, #4742: URL: https://github.com/apache/doris-website/pull/4742
Adds a "Building on Apple Silicon Macs" section to the Docker compilation guide. The `build-env-ldb-toolchain-latest` image is x86_64 only, and the guide currently points ARM64 users to a from-scratch build on a base image. On an Apple Silicon Mac, the x86_64 image runs fine under Rosetta 2 once two problems are worked around: 1. **Java can't launch processes under Rosetta.** Maven fails while running `protoc` with `Cannot run program "/root/protoc....exe": error=0, Failed to exec spawn helper`. Setting `JAVA_TOOL_OPTIONS=-Djdk.lang.Process.launchMechanism=VFORK` fixes it. 2. **`cp -p` fails on Colima's virtiofs share.** `build.sh` copies with `cp -p`, which stops with `cp: preserving permissions for '.../output/be/dict': No data available`. A small `cp` wrapper on `PATH` that drops `-p` fixes it. The section covers the Colima setup (`--vm-type vz --vz-rosetta`), the extra `docker run` options, the wrapper, and rough build times. The ARM64 bullet in "Notes on Image Selection" now links to it. This came out of building FE, BE and the ASAN unit tests on an M-series Mac for apache/doris#71112, #71114 and #71154. I re-ran the `cp` wrapper from this page inside the current `build-env-ldb-toolchain-latest` image on a virtiofs mount: plain `cp -r -p` fails with the error above, and the wrapped `cp -r -p` and `cp -rp` both succeed. Docker Desktop's Rosetta mode is mentioned but marked as untested. The Russian translation of this page isn't updated here. ## Versions - [x] dev - [ ] 4.x - [ ] 3.x - [ ] 2.1 or older (not covered by version/language sync gate) ## Languages - [x] Chinese - [x] English ## Docs Checklist - [x] Checked by AI - [ ] Test Cases Built - [x] Updated required version and language counterparts, or explained why not (community docs are not versioned) - [x] If only one language changed, confirmed whether source/translation counterparts need sync 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
