`aarch64` surely does not need `libatomic`. Same for `armv7` and even possibly not required if building for `armv6k` target.    It does not seem to fix anything or am I missing something? Or are you cross-compiling `redis` on `aarch64` host for `armv6` in which case you should not depend on `uname -m` and just override it for target arch `make uname_M=armv6l`.