iwasakims opened a new pull request, #1271: URL: https://github.com/apache/bigtop/pull/1271
https://issues.apache.org/jira/browse/BIGTOP-4111 ``` gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-but-set-variable -fcommon -Wno-implicit-fallthrough -Werror=uninitialized -Werror=implicit-function-declaration -I. -I. -I../../../../src/interfaces/libpq -I../../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o timestamp.o timestamp.c timestamp.c: In function 'interval_div_internal': timestamp.c:2753:21: error: incompatible types when initializing type 'TimeOffset' using type 'INT128' TimeOffset span1 = interval_cmp_value(interval1); ^ timestamp.c:2754:21: error: incompatible types when initializing type 'TimeOffset' using type 'INT128' TimeOffset span2 = interval_cmp_value(interval2); ^ timestamp.c: At top level: cc1: warning: unrecognized command line option "-Wno-implicit-fallthrough" [enabled by default] make: *** [timestamp.o] Error 1 make: *** [adt-recursive] Error 2 make: *** [utils-recursive] Error 2 make: *** [all-backend-recurse] Error 2 make: *** [all-src-recurse] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.rsGOoz (%build) ``` The cause [seems to be GCC bug on aarch64|https://www.postgresql.org/message-id/5487.1516294381%40sss.pgh.pa.us]. While passing ` -Wmaybe-uninitialized -O1` as CFLAGS fixes this, using new gcc is better solution since [our toolchain already has GCC 9 of devtoolset on CentOS 7 aarch6](https://github.com/apache/bigtop/blob/e63d43512b7ad1da3e5467e2e00a35db6e23783e/bigtop_toolchain/manifests/packages.pp#L331-L339) -- 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]
