On Fri, Jul 5, 2019 at 7:11 AM PG Bug reporting form
<noreply@postgresql.org> wrote:
> storage/lmgr/lwlock.o: In function `CreateLWLocks':
> lwlock.c:(.text+0x62e): undefined reference to `MainLWLockNames'
> collect2: error: ld returned 1 exit status
MainLWLockNames is defined in a generated .c file - see
generate-lwlocknames.pl. This error seems to indicate that this file
either wasn't compiled or didn't have the right contents. I can't
guess why that happened based on the information provided, but if I
were you, I'd try again after making sure that you have a completely
clean source tree with no leftovers in it from previous build
attempts. If using 'git', try 'git clean -dfx'.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company