In fortran include files, ADD_VALUES is not in <include/finclude/petscsys.h>, but rather defined in <include/finclude/petscvec.h> which eventually leads to attribute name conflict when compiling.
But as it is said in the manual, <include/petscsys.h> has ADD_VALUES. Is it intended?
