编译Python 2.7.1:Include/pyport.h:243:13: error: #error “This platform’s pyconfig.h needs to define PY_FORMAT_LONG_LONG”

编译Python 2.7.1:Include/pyport.h:243:13: error: #error “This platform’s pyconfig.h needs to define PY_FORMAT_LONG_LONG”

加上

export CFLAGS="-g3 -fsanitize=undefined -DPY_FORMAT_LONG_LONG=1"
export CXXFLAGS="-g3 -fsanitize=undefined -fno-sanitize=vptr -DPY_FORMAT_LONG_LONG=1"

然后

./configure