X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C6B163858D28
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=message-id:date:mime-version:user-agent:subject:content-language:to
 :references:from:in-reply-to:content-transfer-encoding;
 bh=aY23Ps6FGEUM1qWQOKgeZAVIgAcZcJvvEr4CVbMdAdc=;
 b=HgMtu/QMhAwLOs0Q863oiHH+7lDOgc8+SpZrMFF/DbmgUvQaAKB+o+fNQ0H1ez8Wr8
 SSbfqHrUHtEPQDlB6eWWLVF8fd3lPFap/cnj83oDnXAI4mlQrqkA/ziQTmYOgDJkqCZV
 ptUX5i1xNsG6LVt5coH7p0+fbzkY27l7xB/SMdhCPlmIHa7h0CTzb82BpW7nUJQQrewN
 bwt/YgqCQrlDMXtPEcTTA8jV/e5X4R0L97MGU3i0F3nHfjaXnHJcYSUlxEh6kZayKYjE
 pXUVi+nVd9bY5rLqNRF4nixgKMJ7kc6jOLSRAko5x0CKf9VPN6NQusn2o3oUKjL6CKTr
 KeHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
 :content-language:to:references:from:in-reply-to
 :content-transfer-encoding;
 bh=aY23Ps6FGEUM1qWQOKgeZAVIgAcZcJvvEr4CVbMdAdc=;
 b=DUMkKCb4+TKQmRL9zKnM1l6E18YGMwvAgfvnep3dXZTtIWV7ZS/L3fSuRwrA2Nkbqy
 XOpe2wcHPrUWHvepLlCxbadhj4+jYudjDeQFdumhiCqtoxuh/ER35rwALGF917CWTyWW
 nF+UpWxbRPisJFGwV7daB49SUrAG8hiYHGyEcfJX9J/CW3JjwznIf5s5uC/OIvMeOhx+
 Apt7VN0XbwIgGp7qUSMm4pEdLKdd0QfLHjmCNPx2Qu8l2585WpuW4Z+CtoNZBfAJQM96
 iQrjrroAxMIm86MFReh6ZFYFyBjiWpaxAide+0VpsystGtiyzCPGGeasv1AjaSvlCZCs
 vAuQ==
X-Gm-Message-State: AOAM5323oyiSFsH9VROy3Gh+in4+4NIsrOkYjzPSDTzTku2UTCoRAv6h
 e2Vs8Akgovk1whKCAZaUG8J7nEJHQQc=
X-Google-Smtp-Source: ABdhPJzLY/2tTR5KzOP0T9P3t6fdDRRchtgmE4F6YYqwllEVEaoY36To9mR5+0Cwuw0DOrW5eFxccw==
X-Received: by 2002:a5d:64e7:: with SMTP id g7mr3012198wri.350.1639547338767; 
 Tue, 14 Dec 2021 21:48:58 -0800 (PST)
Message-ID: <f332f25a-024d-c839-23a0-2571ed7afa78@gmail.com>
Date: Wed, 15 Dec 2021 06:48:54 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.4.0
Subject: Re: cygport qt5-base.cygport compile fails
Content-Language: it
To: cygwin@cygwin.com
References: <606341812.7272.1639540130720.JavaMail.yahoo.ref@mail.yahoo.co.jp>
 <606341812.7272.1639540130720.JavaMail.yahoo@mail.yahoo.co.jp>
From: Marco Atzeri <marco.atzeri@gmail.com>
In-Reply-To: <606341812.7272.1639540130720.JavaMail.yahoo@mail.yahoo.co.jp>
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1BF5nHht030220

On 15.12.2021 04:48, Tatsuro MATSUOKA wrote:
>   cygport qt5-base.cygport compile fails
> 
> $ cygport qt5-base.cygport compile
>>>> Compiling qt5-base-5.9.4-2.x86_64
> Preparing build tree...
> Creating qmake...
> In file included from /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/src/qtbase-opensource-src-5.9.4/src/corelib/tools/qbytearray.cpp:42:
> /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/src/qtbase-opensource-src-5.9.4/src/corelib/tools/qbytearraymatcher.h: In static member function ‘static QStaticByteArrayMatcherBase::Skiptable QStaticByteArrayMatcherBase::generate(const char*, uint)’:
> /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/src/qtbase-opensource-src-5.9.4/src/corelib/tools/qbytearraymatcher.h:103:38: error: ‘numeric_limits’ is not a member of ‘std’
>    103 |         const auto uchar_max = (std::numeric_limits<uchar>::max)();
>        |                                      ^~~~~~~~~~~~~~
> /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/src/qtbase-opensource-src-5.9.4/src/corelib/tools/qbytearraymatcher.h:103:58: error: expected primary-expression before ‘>’ token
>    103 |         const auto uchar_max = (std::numeric_limits<uchar>::max)();
>        |                                                          ^
> /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/src/qtbase-opensource-src-5.9.4/src/corelib/tools/qbytearraymatcher.h:103:61: error: ‘::max’ has not been declared; did you mean ‘std::max’?
>    103 |         const auto uchar_max = (std::numeric_limits<uchar>::max)();
>        |                                                             ^~~
>        |                                                             std::max

Hi Tatsuro,

no idea, but I saw the same trying to build 5.12.12 recently.
However I have not see it in February when I was trying some patches
from Achim


I guess something is changed on handling
    std::numeric_limits<uchar>::max
on our C++ compiler.

The documentation
https://www.cplusplus.com/reference/limits/numeric_limits/

just reported only an expansion on C++11, but maybe something
in Cygwin is triggering a fault

Marco



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

