Closed remicollet closed 1 year ago
On Fedora 34, with GCC 11
/builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.c:92:44: error: argument 1 of type 'int16_t[256]' {aka 'short int[256]'} with mismatched bound [-Werror=array-parameter=] 92 | void PQCLEAN_KYBER51290S_CLEAN_ntt(int16_t poly[256]) { | ~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.c:1: /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.h:9:45: note: previously declared as 'int16_t *' {aka 'short int *'} 9 | void PQCLEAN_KYBER51290S_CLEAN_ntt(int16_t *poly); | ~~~~~~~~~^~~~ /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.c:116:47: error: argument 1 of type 'int16_t[256]' {aka 'short int[256]'} with mismatched bound [-Werror=array-parameter=] 116 | void PQCLEAN_KYBER51290S_CLEAN_invntt(int16_t poly[256]) { | ~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.c:1: /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_90s_r2/ntt.h:10:48: note: previously declared as 'int16_t *' {aka 'short int *'} 10 | void PQCLEAN_KYBER51290S_CLEAN_invntt(int16_t *poly); | ~~~~~~~~~^~~~ cc1: all warnings being treated as errors [ 37%] Building C object crt/aws-c-cal/CMakeFiles/aws-c-cal.dir/source/unix/opensslcrypto_hmac.c.o gmake[3]: *** [crt/s2n/CMakeFiles/s2n.dir/build.make:1182: crt/s2n/CMakeFiles/s2n.dir/pq-crypto/kyber_90s_r2/ntt.c.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.c:92:41: error: argument 1 of type 'int16_t[256]' {aka 'short int[256]'} with mismatched bound [-Werror=array-parameter=] 92 | void PQCLEAN_KYBER512_CLEAN_ntt(int16_t poly[256]) { | ~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.c:1: /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.h:9:42: note: previously declared as 'int16_t *' {aka 'short int *'} 9 | void PQCLEAN_KYBER512_CLEAN_ntt(int16_t *poly); | ~~~~~~~~~^~~~ /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.c:116:44: error: argument 1 of type 'int16_t[256]' {aka 'short int[256]'} with mismatched bound [-Werror=array-parameter=] 116 | void PQCLEAN_KYBER512_CLEAN_invntt(int16_t poly[256]) { | ~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.c:1: /builddir/build/BUILD/php-pecl-awscrt-1.0.7/NTS/crt/aws-crt-ffi/crt/s2n/pq-crypto/kyber_r2/ntt.h:10:45: note: previously declared as 'int16_t *' {aka 'short int *'} 10 | void PQCLEAN_KYBER512_CLEAN_invntt(int16_t *poly); | ~~~~~~~~~^~~~ cc1: all warnings being treated as errors gmake[3]: *** [crt/s2n/CMakeFiles/s2n.dir/build.make:1322: crt/s2n/CMakeFiles/s2n.dir/pq-crypto/kyber_r2/ntt.c.o] Error 1
Fixed in recent versions
On Fedora 34, with GCC 11