* Re: Re: cygport compile command fails
[not found] <847991255.172700.1639801259500.JavaMail.yahoo.ref@mail.yahoo.co.jp>
@ 2021-12-18 4:20 ` Tatsuro MATSUOKA
0 siblings, 0 replies; 4+ messages in thread
From: Tatsuro MATSUOKA @ 2021-12-18 4:20 UTC (permalink / raw)
To: ASSI, cygwin
> ----- Original Message -----
>
> 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<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
>
> 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.
Dear Achim
Downgrading gcc-11 from gcc-10, the above error disappeared.
I met another errors. But those are not related to g++.
I will tell cygwin-ML by another thread.
Tatsuro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: cygport compile command fails
[not found] <422903428.208666.1639871496886.JavaMail.yahoo.ref@mail.yahoo.co.jp>
@ 2021-12-18 23:51 ` Tatsuro MATSUOKA
0 siblings, 0 replies; 4+ messages in thread
From: Tatsuro MATSUOKA @ 2021-12-18 23:51 UTC (permalink / raw)
To: Achim Gratz, cygwin
> ----- Original Message -----
>
> Tatsuro MATSUOKA writes:
> > I tried both CXXFLAGS="-std=gnu++11" and CXXFLAGS="-std=gnu++14" to the configure but the results are the same.
>
> It turns out this is a latent bug in Qt5 sources. It was relying on an
> implicit include chain that is no longer present in gcc-11 header files.
>
> https://github.com/MultiMC/Launcher/issues/3574
>
>
> Regards,
> Achim.
Thank you for your information.
I use gcc-10 for the moment.
Tatsuro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: cygport compile command fails
[not found] <42772227.153689.1639737354375.JavaMail.yahoo.ref@mail.yahoo.co.jp>
@ 2021-12-17 10:35 ` Tatsuro MATSUOKA
0 siblings, 0 replies; 4+ messages in thread
From: Tatsuro MATSUOKA @ 2021-12-17 10:35 UTC (permalink / raw)
To: ASSI, cygwin
> ----- Original Message -----
> 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<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
>
> 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.
I tried both CXXFLAGS="-std=gnu++11" and CXXFLAGS="-std=gnu++14" to the configure but the results are the same.
Tatsuro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: cygport compile command fails
[not found] <757101979.2744475.1639521408865.JavaMail.yahoo.ref@mail.yahoo.co.jp>
@ 2021-12-14 22:36 ` Tatsuro MATSUOKA
0 siblings, 0 replies; 4+ messages in thread
From: Tatsuro MATSUOKA @ 2021-12-14 22:36 UTC (permalink / raw)
To: Marco Atzeri, cygwin
> ----- Original Message -----
>
> From: "Marco Atzeri"
> To: "cygwin
> Date: 2021/12/15 水 06:14
> Subject: Re: cygport compile command fails
>
>
>
>
> On 14.12.2021 22:04, Tatsuro MATSUOKA wrote:
> > Hello
> >
> > In order attach patch to QT tried to use the cygport.
> > Download qt5-base-5.9.4-2.src
> > and go to directory qt5-base-5.9.4-2.src
> >
> > $ cygport qt5-base.cygport compile
> >>>> Compiling qt5-base-5.9.4-2.x86_64
> > /usr/share/cygport/lib/syntax.cygpart: line 156: /usr/src/qt5-base-5.9.4-2.src/qt5-base-5.9.4-2.x86_64/log/qt5-base-5.9.4-2-compile.log: No such file or directory
> >
> > What is wrong?
> >
> > Tatsuro
> >
>
> the sequence is:
>
> cygport qt5-base.cygport prep compile install package check
>
> or
>
> cygport qt5-base.cygport all check
>
Thanks!
Tatsuro
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-18 23:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <847991255.172700.1639801259500.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2021-12-18 4:20 ` Re: cygport compile command fails Tatsuro MATSUOKA
[not found] <422903428.208666.1639871496886.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2021-12-18 23:51 ` Tatsuro MATSUOKA
[not found] <42772227.153689.1639737354375.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2021-12-17 10:35 ` Tatsuro MATSUOKA
[not found] <757101979.2744475.1639521408865.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2021-12-14 22:36 ` Tatsuro MATSUOKA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).