Thanks for the feedback. I couldn't find anywhere that suggested that I had set the CPPFLAGS or CFLAGS environment variables, so I removed the following lines from my profile:
Ben Madin <ben@ausvet.com.au> writes: > we are quite excited about the parallelisation enhancements, and keen to > try, but trying to build (using the same configure as we have used for 9.6) > is giving some warnings and errors.
Some of the discrepancies (e.g. -Werror on the buildfarm machine) are explainable as different configuration choices, but the references to /usr/local/pgsql965 in your build sure look like trouble. > Is this looking for an existing environment variable (which > seems unlikely for a build process) or is something else unusual?
I believe the configure script *does* pay attention to environment variables, particularly CPPFLAGS and CFLAGS. Most likely you had version-specific values in those when you ran configure, and they got absorbed into src/Makefile.global.