Subject: Compiling 3.8 with nvhpc 22.1 : malloca.c 64 bits operations with signed and unsigned operands are currently unsupported by __builtin_add_overflow

From: Olivier Cessenat <[email-masked]>
Date: Fri, 14 Jan 2022 12:33:40 +0100

Hello,

I'm trying to compile diffutils 3.8 with nvc 22.1.

I get an error:

<<

"diffutils-3.8/lib/malloca.c", line 52: error: 64 bits operations with 
signed and unsigned operands are currently unsupported by 
__builtin_add_overflow
     if (!INT_ADD_WRAPV (n, plus, &nplus) && !xalloc_oversized (nplus, 1))
          ^

1 error detected in the compilation of "diffutils-3.8/lib/malloca.c".

It was fine with 3.7.

Thanks for your help.

Olivier Cessenat

Ubuntu 20.04 - compilation still fine with gcc 9.3.0