You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/07/20 06:32:20 UTC
[GitHub] [trafficserver] maskit opened a new issue, #8966: Pre-built clang-format for arm64 arch
maskit opened a new issue, #8966:
URL: https://github.com/apache/trafficserver/issues/8966
I use a Linux VM as my dev environment on my MacBook that has M1 chip (arm64 arch), and the pre-built clang-format binary which is used by `make clang-format` doesn't run on the VM.
```
./tools/clang-format.sh: line 82: /home/mkitajo/src/trafficserver/.git/fmt/20200514/clang-format/clang-format.linux: cannot execute binary file: Exec format error
```
The pre-built binary for macOS runs without issues on the MacBook.
--
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: issues-unsubscribe@trafficserver.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] bneradt commented on issue #8966: Pre-built clang-format for arm64 arch
Posted by GitBox <gi...@apache.org>.
bneradt commented on issue #8966:
URL: https://github.com/apache/trafficserver/issues/8966#issuecomment-1190382965
I have an M1 MacBook as well. I often build within an aarch64 docker image running on the Mac. Builds generally work great, but I notice the following when running clang-format:
1. When I run clang-format, single threaded, natively on my M1 Mac, it takes 28 seconds.
2. When I run clang-format in an `aarch64` rockylinux:8 docker image, running clang-format single threaded takes 2 minutes and 17 seconds, not much under 5 times longer than the native Mac run.
This extra time happens due to translating the x86-64 binary for the arm architecture. It would be nice to have an arm64 Linux version of clang-format for this use case as well (in addition to the situation @maskit is seeing).
--
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: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] maskit closed issue #8966: Pre-built clang-format for arm64 arch
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit closed issue #8966: Pre-built clang-format for arm64 arch
URL: https://github.com/apache/trafficserver/issues/8966
--
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: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] cmcfarlen commented on issue #8966: Pre-built clang-format for arm64 arch
Posted by GitBox <gi...@apache.org>.
cmcfarlen commented on issue #8966:
URL: https://github.com/apache/trafficserver/issues/8966#issuecomment-1194776161
I don't know about the pre-built clang-format exec format error, but there is a newish experimental config option for docker desktop for Mac to improve volume performance that might improve your clang-format runtime inside docker. Check `Enable VirtioFS accelerated directory sharing`
--
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: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] maskit commented on issue #8966: Pre-built clang-format for arm64 arch
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on issue #8966:
URL: https://github.com/apache/trafficserver/issues/8966#issuecomment-1478158535
It was added by #9355
--
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: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org