The problem I encountered is that during the build, some system include conflicts with the system headers and the compiler complains redefinition of enum like fsconfig_command.
I tried to set -nostdinc into CXXFLAGS and it caused the build failed at the bootstrap step, and the output says cannot find an c++ compiler but I can confirm that the CXX environment variable is set.
Can anyone tell me what to do?