[2021-03-25 20:02:15] [root@SZV1000373838 redis-6.0.11]# make [2021-03-25 20:02:16] cd src && make all [2021-03-25 20:02:16] make[1]: Entering directory `/usr1/w00347323/redis-6.0.11/src' [2021-03-25 20:02:16] CC server.o [2021-03-25 20:02:16] In file included from server.c:30:0: [2021-03-25 20:02:16] server.h:1083:5: error: expected specifier-qualifier-list before ‘_Atomic’ [2021-03-25 20:02:16] _Atomic unsigned int lruclock; / Clock for LRU eviction / [2021-03-25 20:02:16] ^ [2021-03-25 20:02:16] server.c: In function ‘serverLogRaw’: [2021-03-25 20:02:16] server.c:1036:31: error: ‘struct redisServer’ has no member named ‘logfile’ [2021-03-25 20:02:16] int log_to_stdout = server.logfile[0] == '\0';

the ssystem is centos 7.2 [root@SZV1000373838 redis-5.0.11]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr1/w00347323/software/install/gcc_7.3.0/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ./configure --prefix=/usr1/w00347323/software/install/gcc_7.3.0 --disable-multilib Thread model: posix gcc version 7.3.0 (GCC) [root@SZV1000373838 redis-5.0.11]#

Comment From: oranagra

This is (was) an issue with Redis 6.0 (requiring C11 and _Atomic). this dependency was removed in Redis 6.2. see #7509

Comment From: wangxieliang007

This is (was) an issue with Redis 6.0 (requiring C11 and _Atomic). this dependency was removed in Redis 6.2. see #7509

if i want use threaded IO in Redis 6.2, do we requiring C11 and _Atomic??

Comment From: oranagra

No, redis 6.2 can work with C99, even if you wanna enable threaded IO.