Hi @antirez Could you kindly to check the redis version 6.0.0 or 6.0.1, which look build the source happen error, below is my execute steps, thanks.

Note: but the version 5.0.7 build is OK.

  1. enviroment OS : CentOS 7.4 x64

Software: root >> yum -y install ruby && \ yum -y install rubygems

root >> yum -y install cpp && \ yum -y install binutils && \ yum -y install glibc-kernheaders && \ yum -y install glibc-common && \ yum -y install glibc-devel && \ yum -y install gcc && \ yum -y install gcc-c++ && \ yum -y install make

  1. use redis source: // 6.0.1.tar.gz root >> wget -O /opt/soft/redis/redis-6.0.1.tar.gz -c \ https://github.com/antirez/redis/archive/6.0.1.tar.gz // or 6.0.0.tar.gz root >> wget -O /opt/soft/redis/redis-6.0.0.tar.gz -c \ https://github.com/antirez/redis/archive/6.0.0.tar.gz

  2. build comand // such as 6.0.1 or 6.0.0 root >> tar -zxvf /opt/soft/redis/redis-6.0.0.tar.gz -C /opt/install/redis-cluster/ root >> cd /opt/install/redis-cluster/redis-6.0.0/src root >> make test // or make & make install root >> make & make install

  3. build error as below: root >> make test 图片

root >> make & make install 图片

Comment From: tiandong19860806

but build the redis-5.0.7, there has no error

root >> cd /opt/install/redis-cluster/redis-5.0.7 root >> make test 图片

root >> make & make install 图片

Comment From: gen2brain

@tiandong19860806 Redis now requires C11 atomics, the first GCC version that supports that is 4.9 I think and centos 7 is stuck with 4.8.5. To compile Redis 6 for Centos 7 you can use scl with devtoolset-7.

Comment From: tiandong19860806

Hi @gen2brain , Thanks your, I will follow your suggest to try it again.

Comment From: vunhan

Using @gen2brain guide, I can build Redis-6.0.1 successfully on CentOS 7. I think this issue can be closed as well as update the dependencies on README to specify gcc version.

Comment From: oranagra

dup of #6286 closing.

Comment From: oranagra

Update: The core team have decided to step back from the C11 requirement. We see it causes pain to many, and we feel that the value (in code clarity) is not worth the pain, and that it was too early for Redis to depend on it. We'll reconsider it again in the future. The task will be tracked in #7509.

Comment From: hongquan

@vunhan How about CentOS 6, any luck 😥 ?