Foundationdb docker build

I pull docker image and code from github, when build foundation ,I got some issues like bellow :

[root@node160 build]# docker run -it foundationdb/build:centos7-latest /bin/bash
[root@633221c2beed tmp]# 


source /opt/rh/devtoolset-11/enable
source /opt/rh/rh-python38/enable
source /opt/rh/rh-ruby27/enable

git clone https://github.com/apple/foundationdb.git src/foundationdb/
cmake -S src/foundationdb -B build -G Ninja
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeTestCXXCompiler.cmake:62 (message):
  The C++ compiler

    "/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /root/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_aaf15 && [1/2] Building CXX object CMakeFiles/cmTC_aaf15.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_aaf15
    FAILED: cmTC_aaf15 
    : && /usr/bin/clang++   CMakeFiles/cmTC_aaf15.dir/testCXXCompiler.cxx.o -o cmTC_aaf15   && :
    /usr/bin/ld: cannot find -lstdc++
    clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

I solve by

ln -s /usr/lib64/libstdc++.so.6  /usr/lib64/libstdc++.so

then I got

-- Looking for stdatomic.h
-- Looking for stdatomic.h - not found
CMake Error at cmake/ConfigureCompiler.cmake:103 (message):
  C compiler does not support c11 atomics
Call Stack (most recent call first):
  CMakeLists.txt:69 (include)

is anything wrong ?