GNU bug report logs - #53256
Compiling 3.8 with nvhpc 22.1 : malloca.c 64 bits operations with signed and unsigned operands are currently unsupported by __builtin_add_overflow

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: diffutils; Reported by: Olivier Cessenat <cessenat@HIDDEN>; Done: Paul Eggert <eggert@HIDDEN>; Maintainer for diffutils is bug-diffutils@HIDDEN.

Message received at 53256-done <at> debbugs.gnu.org:


Received: (at 53256-done) by debbugs.gnu.org; 15 Jan 2022 12:24:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 07:24:59 2022
Received: from localhost ([127.0.0.1]:39309 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8i79-0007Jp-24
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 07:24:59 -0500
Received: from mail-pj1-f47.google.com ([209.85.216.47]:39866)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <noloader@HIDDEN>) id 1n8i76-0007JV-2L
 for 53256-done <at> debbugs.gnu.org; Sat, 15 Jan 2022 07:24:57 -0500
Received: by mail-pj1-f47.google.com with SMTP id
 c14-20020a17090a674e00b001b31e16749cso24850699pjm.4
 for <53256-done <at> debbugs.gnu.org>; Sat, 15 Jan 2022 04:24:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:reply-to:from:date:message-id
 :subject:to:cc;
 bh=9yY1h6H8rKuI0xeTBpRT8OloPE6qLAillMa/2WfXS5s=;
 b=Uh3JcOaXVNNb0BRsG2gLk0FpldfikcyJ1YLRbDTvN5slT+lP5CSpyY9UdKlh+dQAPt
 pUH6jIOk3bdk1QLk1n8WxmbV0TNwHoGOht/nQeaEGF33MdsryPx2sJRxjpvTCE65Uz1D
 z/hTW3/q5gmVXMxFFrzYePi6KGJne5gCEBVuzO+FVOw0HwSw8AtDGhhZ06WWm9XVjZDi
 fOZpL7tVbIxf9MMI342TbSzaPxEUAetOO7iy5sHBJLT/5s3J8DDlherXNwHzsqMsuIKQ
 WbzwvnBdhvAGVA+/vB75Je+5aN48aVLRV+QIp72OlGtJtQ8Z/l6z+SC1JQcREOidtFrt
 N3PA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:reply-to
 :from:date:message-id:subject:to:cc;
 bh=9yY1h6H8rKuI0xeTBpRT8OloPE6qLAillMa/2WfXS5s=;
 b=w4C9EK88vq2zE1jPrXOOoZoiUV1oVas3Raj3T96igswIZJIlqs+A1poIJwRgecYZ6L
 0gYv/CJPeeZMcYDsf8FJiU6ZRPEKO6W9yAbj13TcRxr92nKf+wXoaFUOhEoy971WuhxT
 PnmXsQBHjTzeG3A/i9W3+SABblKU71yziCH5ID8ZC2QcQaTGGMm8e/hroyqqP6m7gSNy
 GRT6aHqn5pTTwKRkvajDo/a6eKWs6wz8OF9/t5v/z26hfKjBGZUMKmLQv+vxqx6H49Iv
 hpNxOWpAdTMK3KK8WrOwDCLsHxAOOOpinpzjToLcOMUPjJwSugRgbwGkTafdnJcBykUs
 Oxsg==
X-Gm-Message-State: AOAM5311wagwSgfpQqdY8XFaVh/bXwS0ii9muo43luyA6KV2EapYKg0u
 ZIOa7SuEr0D36iCYcOVEMBKUANIdLZ7lVUPVSJvXO0izwRI=
X-Google-Smtp-Source: ABdhPJzjVPIvbN87WyIEd9ZWIwhfTzPLwF71myl3zs0tX6ankXOhlkAMmCoGS4QMR9Hy+UuCmbOSd+ANUX3JWwpv6Go=
X-Received: by 2002:a17:902:dac9:b0:14a:52d1:a266 with SMTP id
 q9-20020a170902dac900b0014a52d1a266mr13650474plx.161.1642249489835; Sat, 15
 Jan 2022 04:24:49 -0800 (PST)
MIME-Version: 1.0
References: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
 <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
In-Reply-To: <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
From: Jeffrey Walton <noloader@HIDDEN>
Date: Sat, 15 Jan 2022 07:24:38 -0500
Message-ID: <CAH8yC8=7ptQkARR1fX90mFxKvF0FCFUvVXLqH3YbSybf4rMPng@HIDDEN>
Subject: Re: [bug-diffutils] bug#53256: Compiling 3.8 with nvhpc 22.1 :
 malloca.c 64 bits operations with signed and unsigned operands are currently
 unsupported by __builtin_add_overflow
To: 53256-done <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 53256-done
Cc: Gnulib bugs <bug-gnulib@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: noloader@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, Jan 14, 2022 at 10:53 PM Paul Eggert <eggert@HIDDEN> wrote:
> ...
> Thanks for the bug report. Although nvc 22.1 defines __GNUC__ to be 11
> which means it supports GNU C as of GCC 11, that's obviously untrue for
> __builtin_add_overflow. That's unfortunate. Perhaps you could report
> this as a bug to NVIDIA, as their compiler shouldn't claim to support
> GNU C features that it lacks. nvc can set __GNUC__ to be the version of
> GNU C that it actually does support.

The GCC folks don't approve of other compilers setting __GNUC__. It's
a GCC define, and other compilers should not be defining it. The GCC
folks recommend filing a bug with the other compiler for defining
__GNUC__. [1]

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61146#c2

Jeff




Information forwarded to bug-diffutils@HIDDEN:
bug#53256; Package diffutils. Full text available.

Message received at 53256-done <at> debbugs.gnu.org:


Received: (at 53256-done) by debbugs.gnu.org; 15 Jan 2022 10:00:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 05:00:35 2022
Received: from localhost ([127.0.0.1]:39087 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8frO-00039u-Sb
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 05:00:35 -0500
Received: from mail-wm1-f52.google.com ([209.85.128.52]:53872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cessenat@HIDDEN>) id 1n8frM-00030n-GL
 for 53256-done <at> debbugs.gnu.org; Sat, 15 Jan 2022 05:00:33 -0500
Received: by mail-wm1-f52.google.com with SMTP id k5so1482934wmj.3
 for <53256-done <at> debbugs.gnu.org>; Sat, 15 Jan 2022 02:00:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=subject:from:to:cc:references:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding:content-language;
 bh=eAJjpZQQDj5tVuAx9R2vyN3gCV7MmZQ9dpdo36+qkuQ=;
 b=NFD5MQJoabPenxW73aYpZUWDTuxgjHM7YqNuD3TJdN4ZKEP/CvCASsfm1yJWQbXsr/
 dMONbkBTEZ4937PzvQgRviu4zJhu2WQo0Tm4517H/geXEhla/LjpJJSSywxo8uR2vVax
 ab1BRTAEMd+iIAhs51EP5MWvh/CH+3b7YBoQyEd08MNLJ0HFDKCGACTh2nVwUhuytqeQ
 k1foNh6MUnWz6ZKC/bTlpOhpgh8I2ZChlfi0CgUzZoUv5yH+5kI+Mi8MbztwoYJXPLRw
 zdC2dQblbAPsqjeeyI4H/0ug0vQUQMICAHxlyinADGu+PjmOb1lLwgXlFjMtBK0SuRYC
 9xZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:subject:from:to:cc:references:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding
 :content-language;
 bh=eAJjpZQQDj5tVuAx9R2vyN3gCV7MmZQ9dpdo36+qkuQ=;
 b=2Ep0JfXtAMj+q37WTuI4SkBXl0gzLt9ULJO3m6BaRdZV7Pzy+wVgdhys2jbzzJK/EY
 4EJ3pzRj2sTSq2R5Qzg1NCX2IcB/XQA/zxBk2S7og7utZdfW8i3xLOsKgWB8Hd/E57jo
 zZ7LRdfugN3BHy9jIRa6mdzT5AUbccrB3MbaHKkvKsrI2Jhp/lFLMZ4TnRujtF0NgWPw
 umjW3hmomDTuIQ5fJVIsTNCtsLrL9IW4VwJeMbg09kXASJ7PqnI0BoLQ8rislNKdMUUO
 /fp3Fu0Be+GM1P4HouL6j7/K1b86KVP4IczkSV2p33IGaEP+gysa79tADjutZE1R7Cnp
 fgMA==
X-Gm-Message-State: AOAM530UF+N0xq80R3BO++FnqybDwaB7qOVgGz+GzouOuSEiMcqC+o2F
 QzREYsnh+DDIKbZV45yquNA=
X-Google-Smtp-Source: ABdhPJzBC1EW6Ah7LpzueKBKc5MyXt79dEHhz6R3ep/lhKB78ANtyoPjEeeUWCpgJ+VV3ClZbYIUow==
X-Received: by 2002:a05:6000:128b:: with SMTP id
 f11mr11972807wrx.326.1642240826526; 
 Sat, 15 Jan 2022 02:00:26 -0800 (PST)
Received: from ?IPv6:2a01:cb19:a05:8b00:b859:4526:19c6:b563?
 ([2a01:cb19:a05:8b00:b859:4526:19c6:b563])
 by smtp.gmail.com with ESMTPSA id d2sm8772903wri.91.2022.01.15.02.00.25
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 15 Jan 2022 02:00:25 -0800 (PST)
Subject: Re: [bug-diffutils] bug#53256: 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 <cessenat@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
References: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
 <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
 <e5b3f16a-6a29-dea1-e73f-96a709c69f4c@HIDDEN>
Message-ID: <feaebf16-6dc1-e25f-8ede-ffc4aad1309e@HIDDEN>
Date: Sat, 15 Jan 2022 11:00:25 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <e5b3f16a-6a29-dea1-e73f-96a709c69f4c@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: fr-FR
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 53256-done
Cc: Gnulib bugs <bug-gnulib@HIDDEN>, 53256-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Hello again,

Sorry for the noise but I failed to apply the patch to 3.8 both for 
ChangeLog and lib/intprops.h

Could you make sure it works for 3.8 ?

Thanks

Le 15/01/2022 à 09:35, Olivier Cessenat a écrit :
> Thanks so much ! It's great.
>
> I will try to report the bug to NVIDIA, but that will be with my 
> words, I do not have the full understanding of the problem.
>
> Olivier Cessenat
>
> Le 15/01/2022 à 04:53, Paul Eggert a écrit :
>> On 1/14/22 03:33, Olivier Cessenat wrote:
>>> "diffutils-3.8/lib/malloca.c", line 52: error: 64 bits operations 
>>> with signed and unsigned operands are currently unsupported by 
>>> __builtin_add_overflow
>>
>> Thanks for the bug report. Although nvc 22.1 defines __GNUC__ to be 
>> 11 which means it supports GNU C as of GCC 11, that's obviously 
>> untrue for __builtin_add_overflow. That's unfortunate. Perhaps you 
>> could report this as a bug to NVIDIA, as their compiler shouldn't 
>> claim to support GNU C features that it lacks. nvc can set __GNUC__ 
>> to be the version of GNU C that it actually does support.
>>
>> To work around the bug I installed the attached into Gnulib and this 
>> should appear in the next diffutils release. In the meantime you can 
>> compile with gcc.




Information forwarded to bug-diffutils@HIDDEN:
bug#53256; Package diffutils. Full text available.

Message received at 53256-done <at> debbugs.gnu.org:


Received: (at 53256-done) by debbugs.gnu.org; 15 Jan 2022 08:36:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 03:35:59 2022
Received: from localhost ([127.0.0.1]:38932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8eXX-0008BS-Mh
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 03:35:59 -0500
Received: from mail-wm1-f51.google.com ([209.85.128.51]:35517)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cessenat@HIDDEN>) id 1n8eXU-0008BB-0z
 for 53256-done <at> debbugs.gnu.org; Sat, 15 Jan 2022 03:35:58 -0500
Received: by mail-wm1-f51.google.com with SMTP id
 q9-20020a7bce89000000b00349e697f2fbso11115122wmj.0
 for <53256-done <at> debbugs.gnu.org>; Sat, 15 Jan 2022 00:35:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding:content-language;
 bh=NZ9e1yrIO/OpFyRWGqv9fMESu2w444KEREilJ4SQwrE=;
 b=BNCRrw9ymaJfDeJe/ZDSViEfikG0Dyr0PIks2SI7rknCaxF1xqQrdLDwRU367af7Pn
 El2P+QttG6HpvjnWxBYu6wdGOAkMzYUAetNSP6LLKCkQxpFjwY/j+J2otwEn3jgqpibT
 6RuDjgrb0ezA8tUW1KRh2BqZJc++K4juNkCvYQb4dHE19GWC0R8pJ3ISSh8mLx02WsDl
 ygtLjkykhIkHIWBNN+35lthzUso8ImmDUQhb9z1yqoALpO0BOZgjI4JQZh3Ak4Z7CR+K
 F+vcO0qDQKhZ+TtuXcNnpJWaGnjQBrLQaMFxwgqHiLqmoBChPVndN2VxmKg64cUZYVsZ
 EbeQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding
 :content-language;
 bh=NZ9e1yrIO/OpFyRWGqv9fMESu2w444KEREilJ4SQwrE=;
 b=z1kcBFsJJEJFy/NvfxKh+DCU+bJogyPLsCRu1P2qlxs90zMKSm6AX3pmUnScGIfYHC
 yVqjaOn/T2YL8ScD252eZSNxer2xD1iJCb46Gx5VASst7FsxlslvkTMNxiHQ4DdhRIzH
 qgvfygID3cw1Xi7nJrlMdDbOy/+LeaZy915yYVrrfSBfrMz0TTK6Dc/uz+KkZ/W5H4J/
 XEz0ug5FfnsBcSmKJowIlrX8h/Z+n2D+lgOQvjtmndgfQqC8ja6nZpo7jP2Rkn87RTFg
 dGC3o0VAwNW5D6DGBlBb2Bnh6gJgUKhTOzHYjvIxjbMzWBWDlyYFwE58p0QhF+IzXc4N
 tjYw==
X-Gm-Message-State: AOAM531F7nCXKLpxVUPTJq/8AiDofdxd377EDzSU49fJ3p/QmYKXqKwW
 Trvkec9B+dF0mW79kQDTWZk=
X-Google-Smtp-Source: ABdhPJyQcmRKqcJrPdKZc0d0g4LYXr2k0pt2xtoymh1RlO2TKdgVbujl7nQrxlJGyuH7rDfjTINCkg==
X-Received: by 2002:a7b:c762:: with SMTP id x2mr18148397wmk.70.1642235750204; 
 Sat, 15 Jan 2022 00:35:50 -0800 (PST)
Received: from ?IPv6:2a01:cb19:a05:8b00:b859:4526:19c6:b563?
 ([2a01:cb19:a05:8b00:b859:4526:19c6:b563])
 by smtp.gmail.com with ESMTPSA id bk2sm7354446wrb.65.2022.01.15.00.35.49
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 15 Jan 2022 00:35:49 -0800 (PST)
Subject: Re: [bug-diffutils] bug#53256: Compiling 3.8 with nvhpc 22.1 :
 malloca.c 64 bits operations with signed and unsigned operands are currently
 unsupported by __builtin_add_overflow
To: Paul Eggert <eggert@HIDDEN>
References: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
 <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
From: Olivier Cessenat <cessenat@HIDDEN>
Message-ID: <e5b3f16a-6a29-dea1-e73f-96a709c69f4c@HIDDEN>
Date: Sat, 15 Jan 2022 09:35:48 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: fr-FR
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 53256-done
Cc: Gnulib bugs <bug-gnulib@HIDDEN>, 53256-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Thanks so much ! It's great.

I will try to report the bug to NVIDIA, but that will be with my words, 
I do not have the full understanding of the problem.

Olivier Cessenat

Le 15/01/2022 à 04:53, Paul Eggert a écrit :
> On 1/14/22 03:33, Olivier Cessenat wrote:
>> "diffutils-3.8/lib/malloca.c", line 52: error: 64 bits operations 
>> with signed and unsigned operands are currently unsupported by 
>> __builtin_add_overflow
>
> Thanks for the bug report. Although nvc 22.1 defines __GNUC__ to be 11 
> which means it supports GNU C as of GCC 11, that's obviously untrue 
> for __builtin_add_overflow. That's unfortunate. Perhaps you could 
> report this as a bug to NVIDIA, as their compiler shouldn't claim to 
> support GNU C features that it lacks. nvc can set __GNUC__ to be the 
> version of GNU C that it actually does support.
>
> To work around the bug I installed the attached into Gnulib and this 
> should appear in the next diffutils release. In the meantime you can 
> compile with gcc.




Information forwarded to bug-diffutils@HIDDEN:
bug#53256; Package diffutils. Full text available.

Message received at 53256-done <at> debbugs.gnu.org:


Received: (at 53256-done) by debbugs.gnu.org; 15 Jan 2022 03:53:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 22:53:51 2022
Received: from localhost ([127.0.0.1]:38680 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8a8V-0004MP-5o
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 22:53:51 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1n8a8R-0004M9-DF
 for 53256-done <at> debbugs.gnu.org; Fri, 14 Jan 2022 22:53:50 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id AE5A916016B;
 Fri, 14 Jan 2022 19:53:41 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id Kay4uek10oEA; Fri, 14 Jan 2022 19:53:40 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9829E16016C;
 Fri, 14 Jan 2022 19:53:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Mu0wHWIKsrJl; Fri, 14 Jan 2022 19:53:40 -0800 (PST)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 677DD16016B;
 Fri, 14 Jan 2022 19:53:40 -0800 (PST)
Content-Type: multipart/mixed; boundary="------------PvqPWAJEVtSP0TXzGiKj97Pj"
Message-ID: <9e2ba2f6-99bd-5620-76fe-b70e00d6d95c@HIDDEN>
Date: Fri, 14 Jan 2022 19:53:39 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.3.1
Content-Language: en-US
To: Olivier Cessenat <cessenat@HIDDEN>
References: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Subject: Re: [bug-diffutils] bug#53256: Compiling 3.8 with nvhpc 22.1 :
 malloca.c 64 bits operations with signed and unsigned operands are currently
 unsupported by __builtin_add_overflow
In-Reply-To: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: 53256-done
Cc: Gnulib bugs <bug-gnulib@HIDDEN>, 53256-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

This is a multi-part message in MIME format.
--------------PvqPWAJEVtSP0TXzGiKj97Pj
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 1/14/22 03:33, Olivier Cessenat wrote:
> "diffutils-3.8/lib/malloca.c", line 52: error: 64 bits operations with 
> signed and unsigned operands are currently unsupported by 
> __builtin_add_overflow

Thanks for the bug report. Although nvc 22.1 defines __GNUC__ to be 11 
which means it supports GNU C as of GCC 11, that's obviously untrue for 
__builtin_add_overflow. That's unfortunate. Perhaps you could report 
this as a bug to NVIDIA, as their compiler shouldn't claim to support 
GNU C features that it lacks. nvc can set __GNUC__ to be the version of 
GNU C that it actually does support.

To work around the bug I installed the attached into Gnulib and this 
should appear in the next diffutils release. In the meantime you can 
compile with gcc.
--------------PvqPWAJEVtSP0TXzGiKj97Pj
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-intprops-work-around-nvc-22.1-bug.patch"
Content-Disposition: attachment;
 filename="0001-intprops-work-around-nvc-22.1-bug.patch"
Content-Transfer-Encoding: base64

RnJvbSBmMGI1Y2RmOWExZmRiNWM5OTFjZjNlMWJkZmZiNTVlMzExMjZkZmZjIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1
PgpEYXRlOiBGcmksIDE0IEphbiAyMDIyIDE4OjUwOjQ4IC0wODAwClN1YmplY3Q6IFtQQVRD
SF0gaW50cHJvcHM6IHdvcmsgYXJvdW5kIG52YyAyMi4xIGJ1ZwpNSU1FLVZlcnNpb246IDEu
MApDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9VVRGLTgKQ29udGVudC1UcmFu
c2Zlci1FbmNvZGluZzogOGJpdAoKUHJvYmxlbSByZXBvcnRlZCBieSBPbGl2aWVyIENlc3Nl
bmF0IChCdWcjNTMyNTYpLgoqIGxpYi9pbnRwcm9wcy5oIChfR0xfSEFTX0JVSU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lIF9HTF9IQVNfQlVJ
TFRJTl9BRERfT1ZFUkZMT1cgMAotLSAKMi4zMi4wCgo=
--------------PvqPWAJEVtSP0TXzGiKj97Pj--





Notification sent to Olivier Cessenat <cessenat@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Paul Eggert <eggert@HIDDEN>:
You have taken responsibility. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 13:59:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 08:59:55 2022
Received: from localhost ([127.0.0.1]:35954 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8N7S-00078Y-E8
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 08:59:55 -0500
Received: from lists.gnu.org ([209.51.188.17]:58398)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cessenat@HIDDEN>) id 1n8Kq3-0000dy-E5
 for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 06:33:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:44318)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <cessenat@HIDDEN>)
 id 1n8Kq2-0006Dk-SA
 for bug-diffutils@HIDDEN; Fri, 14 Jan 2022 06:33:47 -0500
Received: from [2a00:1450:4864:20::434] (port=40648
 helo=mail-wr1-x434.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <cessenat@HIDDEN>)
 id 1n8Kq0-0008Ed-91
 for bug-diffutils@HIDDEN; Fri, 14 Jan 2022 06:33:46 -0500
Received: by mail-wr1-x434.google.com with SMTP id x4so15103511wru.7
 for <bug-diffutils@HIDDEN>; Fri, 14 Jan 2022 03:33:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=BEhUjjc+nUGODFalm0tiOaAA8PZ4QluGbUibTF1nWNs=;
 b=mfJcNRnMgO6TpoP1U82p61om6mTdl0wJ8eg9dqBx7H5+ucz27XVzFJhn88Oqm6VGSL
 3oXuhfw92u4gjexBUD5kfY2CBq386Sv051NUxURB0ZkEy24bC2Gy5U2qR/20tjZgRM8T
 7O60a86C/gH/xYub93RopO1NT6UQnVc2M5xGG9tQ7bfy3wlcRbShBpgc+f+lsI/vTjUk
 jnjKC8fFPE6VvULgWnAsKIkt0VZDNU+91nP2cDmM4SuVnNNAEs6AZ/SaYfn/W7uaAb0Z
 BhOnbPnxZ3XQN0VLqE6PmxcOoQLZF7i4BdpLgVQl7XAIfzUitOBKJcu3CouyJP9d2uS1
 v2mA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding:content-language;
 bh=BEhUjjc+nUGODFalm0tiOaAA8PZ4QluGbUibTF1nWNs=;
 b=jTRlR9Vq2KzEZLtfF39brzu5fPYP72W7WNelF23XetCNSEivLNpU7GIKWbCVyebuEB
 uZF39zgXw5gejY1fGr9cf4E0/dH+5L/A1kC6MRtaKhIWPygzfH/l/Mn5eOdm7wRtrBQP
 BI3nyNcuJE6SKPQY1OEPzn6O6snu2BWzWzAPUlyyzr+Vqi1NVCkQT7DWlF4IauR7f+aH
 Phk3xpzbZvK3psXhOrpHbOGpAVv3bqExHm+r6plALxDkZisgNPUcF8qG42W/zSQDhO9T
 6+h0Wlbn3WOCtA5K4w45kDuxwWxAPGMAD2KW/0mnd2BUztCZMdcF5/PiEouVj6gfIgwq
 ELjw==
X-Gm-Message-State: AOAM533QPuwHpuoyCvbG7xDJy95LxP+xuiZWALgGtxuuITuDvj9KbYOX
 RqrclK4XZqGJBSdlkNQH+W9I2Z6rmp68wg==
X-Google-Smtp-Source: ABdhPJwWDvNo6zzQRimjwfwfHFHlsXwQAJlv97MAq7tdCONj1/ytvoZAX6zfeMY42k/eb/vpdns7fw==
X-Received: by 2002:a05:6000:1885:: with SMTP id
 a5mr7827055wri.588.1642160022140; 
 Fri, 14 Jan 2022 03:33:42 -0800 (PST)
Received: from ?IPv6:2a01:cb19:a05:8b00:ea85:d65d:519f:fc7b?
 ([2a01:cb19:a05:8b00:ea85:d65d:519f:fc7b])
 by smtp.gmail.com with ESMTPSA id l4sm5098690wrm.62.2022.01.14.03.33.40
 for <bug-diffutils@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 14 Jan 2022 03:33:41 -0800 (PST)
To: bug-diffutils@HIDDEN
From: Olivier Cessenat <cessenat@HIDDEN>
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
Message-ID: <d3412996-b421-d92e-c985-95d21bbffc00@HIDDEN>
Date: Fri, 14 Jan 2022 12:33:40 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.14.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: fr-FR
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::434
 (failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::434;
 envelope-from=cessenat@HIDDEN; helo=mail-wr1-x434.google.com
X-Spam_score_int: -12
X-Spam_score: -1.3
X-Spam_bar: -
X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 14 Jan 2022 08:59:53 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

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






Acknowledgement sent to Olivier Cessenat <cessenat@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#53256; Package diffutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Jan 2022 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.