/usr/bin/ld -r -o SUBSYS.o motion/SUBSYS.o dispatcher/SUBSYS.o cdbappendonlystorage.o cdbappendonlystorageformat.o cdbappendonlystorageread.o cdbappendonlystoragewrite.o cdbbackup.o cdbbufferedappend.o cdbbufferedread.o cdbcat.o cdbcopy.o cdbdatabaseinfo.o cdbdirectopen.o cdbdistributedsnapshot.o cdbdistributedxid.o cdbdistributedxacts.o cdbdoublylinked.o cdbdtxcontextinfo.o cdbexplain.o cdbfilerep.o cdbfilerepservice.o cdbfilerepprimaryrecovery.o cdbfilerepprimary.o cdbfilerepmirror.o cdbfilerepprimaryack.o cdbfilerepmirrorack.o cdbfilerepconnclient.o cdbfilerepconnserver.o cdbfilerepresyncmanager.o cdbfilerepresyncworker.o cdbfilerepresetpeerprocess.o cdbfts.o cdbglobalsequence.o cdbgroup.o cdbhash.o cdbheap.o cdbllize.o cdblocaldistribxact.o cdbmirroredbufferpool.o cdbmirroredfilesysobj.o cdbmirroredflatfile.o cdbmirroredappendonly.o cdbmutate.o cdboidsync.o cdbpartindex.o cdbpartition.o cdbpath.o cdbpathlocus.o cdbpathtoplan.o cdbpersistentbuild.o cdbpersistentfilespace.o cdbpersistentrelation.o cdbpersistentdatabase.o cdbpersistenttablespace.o cdbpersistentfilesysobj.o cdbpersistentrecovery.o cdbpersistentstore.o cdbpgdatabase.o cdbplan.o cdbpullup.o cdbrelsize.o cdbresynchronizechangetracking.o cdbshareddoublylinked.o cdbsharedoidsearch.o cdbsetop.o cdbsreh.o cdbsrlz.o cdbsubplan.o cdbsubselect.o cdbtargeteddispatch.o cdbthreadlog.o cdbtimer.o cdbtm.o cdbtmutils.o cdbutil.o cdbvars.o cdbvarblock.o cdbpersistentcheck.o partitionselection.o
make[3]: Leaving directory '/bigtop/build/gpdb/rpm/BUILD/gpdb-5.28.5/src/backend/cdb'
g++ -O3 -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fno-aggressive-loop-optimizations -Wno-unused-but-set-variable -Wno-address -Wno-format-truncation -Wno-stringop-truncation -L../../src/port -L../../src/port -Wl,--as-needed -Wl,-rpath,'/usr/lib/gpdb/lib',--enable-new-dtags -Wl,-E access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o fts/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o replication/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o tsearch/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o cdb/SUBSYS.o ../../src/port/libpgport_srv.a -lbz2 -lrt -lz -lcrypt -ldl -lm -lcurl -lpthread -o postgres
/usr/bin/ld: cdb/SUBSYS.o:(.data+0x3bac): multiple definition of `gp_encoding_check_locale_compatibility'; utils/SUBSYS.o:(.bss+0x4915c): first defined here
/usr/bin/ld: cdb/SUBSYS.o:(.bss+0x1207f): multiple definition of `Debug_resource_group'; utils/SUBSYS.o:(.bss+0x491dd): first defined here
collect2: error: ld returned 1 exit status
make[2]: Leaving directory '/bigtop/build/gpdb/rpm/BUILD/gpdb-5.28.5/src/backend'
make[1]: Leaving directory '/bigtop/build/gpdb/rpm/BUILD/gpdb-5.28.5/src'
make[2]: *** [Makefile:70: postgres] Error 1
make[1]: *** [Makefile:19: all] Error 2
make: *** [GNUmakefile:14: all] Error 2
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.OPF9s3 (%build)
Bad exit status from /var/tmp/rpm-tmp.OPF9s3 (%build)
> Task :gpdb-rpm FAILED
:gpdb-rpm (Thread[Daemon worker,5,main]) completed. Took 8 mins 21.311 secs.