Tonkonozhenko opened a new issue, #7159: URL: https://github.com/apache/incubator-devlake/issues/7159
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened Trying to build the backend image on MacBook M1 ### What do you expect to happen Image is built ### How to reproduce Commands: ```bash git checkout v0.21.0-beta7 cd backend # add flag `--platform linux/x86_64` or ` --platform linux/amd64` to make task `build-server-image` IMAGE_REPO=xxx TAG=v0.21.7-beta7-p1 make build-server-image ``` Error: ``` #32 22.98 [ 31%] Linking C shared library ../libgit2.so #32 22.98 [ 32%] Generating clar.suite #32 23.04 /usr/lib/gcc-cross/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/bin/ld: /rootfs-amd64/usr/lib/x86_64-linux-gnu/libz.a(zutil.o): warning: relocation against `z_errmsg' in read-only section `.text' #32 23.06 /usr/lib/gcc-cross/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/bin/ld: /rootfs-amd64/usr/lib/x86_64-linux-gnu/libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC #32 23.06 /usr/lib/gcc-cross/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/bin/ld: final link failed: bad value #32 23.06 collect2: error: ld returned 1 exit status #32 23.07 make[2]: *** [src/CMakeFiles/git2.dir/build.make:476: libgit2.so.1.3.2] Error 1 #32 23.07 make[1]: *** [CMakeFiles/Makefile2:201: src/CMakeFiles/git2.dir/all] Error 2 ``` ### Anything else _No response_ ### Version v0.21.0-beta7 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org