X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 723693858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nexgo.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1639576604; bh=V8DPj/iEgi4l0oknifGLHfTFKm1UFbwXXHg7kgmm8RE=; h=From:To:Subject:References:Date:In-Reply-To; b=ZbFiQNwVcx8oJhPOPcXb7DClE6QgpNB+X5U6mdrVeGc+XfQ8aw+hubPE6OTxcatID nwQd7xRsnQVc2TCOdqUvKML7xf0xVlO8MeAL+qYBZYF8ST1rVh4su+guhQb0VpR4t2 GOSJ/ZvcLlMWihwfqk4JK8UIWpjKhmXCpnL//1tA= From: ASSI To: cygwin AT cygwin DOT com Subject: Re: cygport compile command fails References: <1385850692 DOT 28506 DOT 1639561032910 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp> <1385850692 DOT 28506 DOT 1639561032910 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> Date: Wed, 15 Dec 2021 14:56:36 +0100 In-Reply-To: <1385850692.28506.1639561032910.JavaMail.yahoo@mail.yahoo.co.jp> (Tatsuro MATSUOKA's message of "Wed, 15 Dec 2021 18:37:12 +0900 (JST)") Message-ID: <87k0g6dl9n.fsf@Otto.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 2169 X-purgate-ID: 149169::1639576603-000004AE-A0DE18B9/0/0 X-Spam-Status: No, score=-3030.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1BFDvOun030911 Tatsuro MATSUOKA writes: >> > 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::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::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::max)(); >> > | ^~~ >> > | std::max The default C++ standard targeted by gcc-11 is gnu++17. Given how old Qt5 is and that the upstream packages were compiled w/ gcc-7 mostly, I'd guess you should either add -std=gnu++11 or -std=gnu++14 to the CXXFLAGS. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- 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