Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-29 Thread Sam Kidman
>Are you using any nondefault make options? Are you invoking our Makefile from some make script of your own? This all came about because we use asdf as a version manager which compiles the versions of various programs you want to use. There's potentially a problem with the asdf plugin for postgres

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-29 Thread Sam Kidman
Actually I made some progress with this. I found if I: cd src/backend make generated-headers cd ../.. make it works. So for some reason that submake-generated-headers target isn't getting called for us. On Wed, Apr 27, 2022 at 11:38 PM Tom Lane wrote: > Laurenz Albe writes: > > On Wed, 2022-

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-29 Thread Sam Kidman
Ok, so apparently it's something wrong with our environments? Is it possible something is failing silently? Any tips for how to troubleshoot? BTW I'm not doing anything special when compiling, just git checkout REL_13_6, ./configure, ./make (unless I am doing something wrong there?) Also the READ

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-28 Thread Tom Lane
Sam Kidman writes: >> Are you using any nondefault make options? Are you invoking our Makefile >> from some make script of your own? > This all came about because we use asdf as a version manager which compiles > the versions of various programs you want to use. There's potentially a > problem w

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-28 Thread Tom Lane
Sam Kidman writes: > So for some reason that submake-generated-headers target isn't getting > called for us. Hmph. What "make" version are you using exactly? Are you using any nondefault make options? Are you invoking our Makefile from some make script of your own? (There are some hacks invol

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-28 Thread Tom Lane
Sam Kidman writes: > Ok, so apparently it's something wrong with our environments? Is it > possible something is failing silently? Any tips for how to troubleshoot? Apparently so, but it's not very clear what. You didn't answer as to what your build environment is, eg do you have any MacPorts or

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-27 Thread Tom Lane
Laurenz Albe writes: > On Wed, 2022-04-27 at 10:05 +1000, Sam Kidman wrote: >> I recently upgraded one of our applications to use postgres 13.6. When I try >> to compile >> from a source checkout or by running asdf install (our version manager which >> also compiles 13.6) >> I get the same error

Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-27 Thread Laurenz Albe
On Wed, 2022-04-27 at 10:05 +1000, Sam Kidman wrote: > I recently upgraded one of our applications to use postgres 13.6. When I try > to compile > from a source checkout or by running asdf install (our version manager which > also compiles 13.6) > I get the same error message: > > ../../src/incl

errcodes.h and others not generated when compiling 13.6 on M1 Mac

2022-04-27 Thread Sam Kidman
Hello I recently upgraded one of our applications to use postgres 13.6. When I try to compile from a source checkout or by running asdf install (our version manager which also compiles 13.6) I get the same error message: ../../src/include/utils/elog.h:71:10: fatal error: 'utils/errcodes.h' file n