Linking libatomic.so is required only for 32-bit ARMR operating systems,but redundant on 64-bit systems. If libatomic.so not provided on 64-bit systems, it will lead to compilie failure.

Crash report LINK redis-server /usr/bin/ld: cannot find -latomic collect2: error: ld returned 1 exit status make[1]: *** [Makefile:228: redis-server] Error 1 make[1]: Leaving directory '/usr1/jenkins/workspace/FenixMainService/ipsec/open_source/redis/redis-5.0.8/src' make: *** [Makefile:6: all] Error 2

Aditional information 1. OS distribution and version Linux 7.222.103.233 4.19.90-vhulk2009.2.0.h269.eulerosv2r9.aarch64 #1 SMP Sun Sep 27 12:47:01 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

Redis Compile failed because of linking to libatomic.so on aarch64

Comment From: oranagra

@LockLi do you mind trying a newer redis (6.2)? i see that we do have successful build for arm64 https://launchpad.net/~redislabs/+archive/ubuntu/redis/+build/21431153

although i do see that the makefile for 5.0.8 and 6.2 is similar in that respect. @yossigo FYI.

Comment From: LockLi

@LockLi do you mind trying a newer redis (6.2)? i see that we do have successful build for arm64 https://launchpad.net/~redislabs/+archive/ubuntu/redis/+build/21431153

although i do see that the makefile for 5.0.8 and 6.2 is similar in that respect. @yossigo FYI.

Same result while compiling redis-6.2.0, because libatomic.so is not existed in my machine.

Comment From: yossigo

Can empirically confirm that it's indeed not needed on an aarch64 board I got here, apparently only needed for atomic ops implementation on arm32.