tuhaihe opened a new issue, #1480:
URL: https://github.com/apache/cloudberry/issues/1480

   ### Apache Cloudberry version
   
   `cbdb-postgres-merge`
   
   ### What happened
   
   Command:
   
   ```
    make -j$(nproc) -C ~/cloudberry
   ```
   
   Error:
   
   ```
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonlyam_handler.o appendonlyam_handler.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o appendonlyam.o 
appendonlyam.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o aosegfiles.o 
aosegfiles.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o aomd.o aomd.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o appendonlywriter.o 
appendonlywriter.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o appendonlytid.o 
appendonlytid.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonlyblockdirectory.o appendonlyblockdirectory.c
   ( echo src/backend/access/transam/clog.o 
src/backend/access/transam/commit_ts.o 
src/backend/access/transam/generic_xlog.o 
src/backend/access/transam/multixact.o src/backend/access/transam/parallel.o 
src/backend/access/transam/rmgr.o src/backend/access/transam/slru.o 
src/backend/access/transam/subtrans.o src/backend/access/transam/timeline.o 
src/backend/access/transam/transam.o src/backend/access/transam/twophase.o 
src/backend/access/transam/twophase_rmgr.o src/backend/access/transam/varsup.o 
src/backend/access/transam/xact.o src/backend/access/transam/xlog.o 
src/backend/access/transam/xlogarchive.o 
src/backend/access/transam/xlogbackup.o src/backend/access/transam/xlogfuncs.o 
src/backend/access/transam/xloginsert.o 
src/backend/access/transam/xlogprefetcher.o 
src/backend/access/transam/xlogreader.o 
src/backend/access/transam/xlogrecovery.o 
src/backend/access/transam/xlogstats.o src/backend/access/transam/xlogutils.o 
src/backend/access/transam/distributedlog.o src/backend/access/tra
 nsam/gp_transaction_log.o src/backend/access/transam/gp_distributed_log.o 
src/backend/access/transam/xlogfuncs_gp.o ) >objfiles.txt
   make[4]: Leaving directory 
'/home/gpadmin/cloudberry/src/backend/access/transam'
   make -C aocs all
   make[4]: Entering directory 
'/home/gpadmin/cloudberry/src/backend/access/aocs'
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror -I../../../../src/include   
-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
aocsam_handler.o aocsam_handler.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_visimap.o appendonly_visimap.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_visimap_entry.o appendonly_visimap_entry.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_visimap_store.o appendonly_visimap_store.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_compaction.o appendonly_compaction.c
   ( echo src/backend/access/bitmap/bitmaputil.o 
src/backend/access/bitmap/bitmapattutil.o 
src/backend/access/bitmap/bitmappages.o 
src/backend/access/bitmap/bitmapinsert.o 
src/backend/access/bitmap/bitmapsearch.o src/backend/access/bitmap/bitmap.o 
src/backend/access/bitmap/bitmapxlog.o ) >objfiles.txt
   make[4]: Leaving directory 
'/home/gpadmin/cloudberry/src/backend/access/bitmap'
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_visimap_udf.o appendonly_visimap_udf.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
appendonly_blkdir_udf.o appendonly_blkdir_udf.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror 
-I../../../../src/interfaces/libpq -I../../../../src/include   -D_GNU_SOURCE 
-I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o aomd_filehandler.o 
aomd_filehandler.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror -I../../../../src/include   
-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
aocsam.o aocsam.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror -I../../../../src/include   
-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
aocssegfiles.o aocssegfiles.c
   gcc -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels 
-Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type 
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard 
-Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 
-Wno-format-truncation -Wno-stringop-truncation -g -O3 -fPIC  
-DUSE_INTERNAL_FTS=1  -Werror=uninitialized 
-Werror=implicit-function-declaration -Werror -I../../../../src/include   
-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/local/xerces-c/include  -c -o 
aocs_compaction.o aocs_compaction.c
   ( echo src/backend/access/appendonly/appendonlyam_handler.o 
src/backend/access/appendonly/appendonlyam.o 
src/backend/access/appendonly/aosegfiles.o src/backend/access/appendonly/aomd.o 
src/backend/access/appendonly/appendonlywriter.o 
src/backend/access/appendonly/appendonlytid.o 
src/backend/access/appendonly/appendonlyblockdirectory.o 
src/backend/access/appendonly/appendonly_visimap.o 
src/backend/access/appendonly/appendonly_visimap_entry.o 
src/backend/access/appendonly/appendonly_visimap_store.o 
src/backend/access/appendonly/appendonly_compaction.o 
src/backend/access/appendonly/appendonly_visimap_udf.o 
src/backend/access/appendonly/appendonly_blkdir_udf.o 
src/backend/access/appendonly/aomd_filehandler.o ) >objfiles.txt
   make[4]: Leaving directory 
'/home/gpadmin/cloudberry/src/backend/access/appendonly'
   ( echo src/backend/access/aocs/aocsam_handler.o 
src/backend/access/aocs/aocsam.o src/backend/access/aocs/aocssegfiles.o 
src/backend/access/aocs/aocs_compaction.o ) >objfiles.txt
   make[4]: Leaving directory '/home/gpadmin/cloudberry/src/backend/access/aocs'
   ( cat brin/objfiles.txt common/objfiles.txt gin/objfiles.txt 
gist/objfiles.txt hash/objfiles.txt heap/objfiles.txt index/objfiles.txt 
nbtree/objfiles.txt rmgrdesc/objfiles.txt spgist/objfiles.txt 
table/objfiles.txt tablesample/objfiles.txt transam/objfiles.txt 
external/objfiles.txt bitmap/objfiles.txt appendonly/objfiles.txt 
aocs/objfiles.txt; echo  ) >objfiles.txt
   make[3]: Leaving directory '/home/gpadmin/cloudberry/src/backend/access'
   make[2]: Leaving directory '/home/gpadmin/cloudberry/src/backend'
   make[1]: *** [Makefile:60: all-backend-recurse] Error 2
   make[1]: Leaving directory '/home/gpadmin/cloudberry/src'
   make: *** [GNUmakefile:11: all-src-recurse] Error 2
   make: Leaving directory '/home/gpadmin/cloudberry'
   ```
   
   gcc/g++ version:
   ```
   [gpadmin@cdw cloudberry]$ gcc --version
   gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11)
   Copyright (C) 2021 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   [gpadmin@cdw cloudberry]$ g++ --version
   g++ (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11)
   Copyright (C) 2021 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   ```
   
   OS:
   ```
   [gpadmin@cdw cloudberry]$ cat /etc/os-release
   NAME="Rocky Linux"
   VERSION="9.6 (Blue Onyx)"
   ID="rocky"
   ID_LIKE="rhel centos fedora"
   VERSION_ID="9.6"
   PLATFORM_ID="platform:el9"
   PRETTY_NAME="Rocky Linux 9.6 (Blue Onyx)"
   ANSI_COLOR="0;32"
   LOGO="fedora-logo-icon"
   CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
   HOME_URL="https://rockylinux.org/";
   VENDOR_NAME="RESF"
   VENDOR_URL="https://resf.org/";
   BUG_REPORT_URL="https://bugs.rockylinux.org/";
   SUPPORT_END="2032-05-31"
   ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
   ROCKY_SUPPORT_PRODUCT_VERSION="9.6"
   REDHAT_SUPPORT_PRODUCT="Rocky Linux"
   REDHAT_SUPPORT_PRODUCT_VERSION="9.6"
   ```
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   Following the building docs: 
https://cloudberry.apache.org/docs/deployment/quick-build
   
   ### Operating System
   
   Rocky Linux 9
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to