Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Peter Seiderer <ps.report@gmx.net>
Cc: Julien Corjon <corjon.j@ecagroup.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v1] package/qt5declarative: fix gcc-11 compile failure
Date: Sun, 25 Jul 2021 23:29:40 +0200	[thread overview]
Message-ID: <20210725232940.139f23f5@windsurf> (raw)
In-Reply-To: <20210722212434.20346-1-ps.report@gmx.net>

On Thu, 22 Jul 2021 23:24:34 +0200
Peter Seiderer <ps.report@gmx.net> wrote:

> - add patch for qv4regexp_p to include c++ limits include (instead of plain
>   c limit.h)
> 
> Fixes:
> 
>   In file included from jsruntime/qv4regexp_p.h:62,
>                    from jsruntime/qv4regexp.cpp:40:
>   ../3rdparty/masm/yarr/Yarr.h:46:44: error: ‘numeric_limits’ is not a member of ‘std’
>      46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max();
>         |                                            ^~~~~~~~~~~~~~
>   ../3rdparty/masm/yarr/Yarr.h:46:59: error: expected primary-expression before ‘unsigned’
>      46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max();
>         |                                                           ^~~~~~~~
> 
> - add patch for qqmlprofilerevent_p to include c++ limits include
> 
> Fixes:
> 
>   In file included from qqmlprofilertypedevent_p.h:43,
>                    from qqmlprofilertypedevent.cpp:40:
>   qqmlprofilerevent_p.h: In member function ‘void QQmlProfilerEvent::assignNumbers(const Container&)’:
>   qqmlprofilerevent_p.h:314:65: error: ‘numeric_limits’ is not a member of ‘std’
>     314 |                     static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max();
>         |                                                                 ^~~~~~~~~~~~~~
>   qqmlprofilerevent_p.h:314:87: error: expected primary-expression before ‘>’ token
>     314 |                     static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max();
>         |                                                                                       ^
>   qqmlprofilerevent_p.h:314:90: error: ‘::max’ has not been declared; did you mean ‘std::max’?
>     314 |                     static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max();
>         |                                                                                          ^~~
>         |                                                                                          std::max
> 
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
>  ...s-c-limits-include-instead-of-plain-.patch | 41 +++++++++++++++++
>  ...t_p-needs-c-limits-inlcude-fixes-gcc.patch | 45 +++++++++++++++++++
>  2 files changed, 86 insertions(+)
>  create mode 100644 package/qt5/qt5declarative/0002-qv4regexp_p-needs-c-limits-include-instead-of-plain-.patch
>  create mode 100644 package/qt5/qt5declarative/0003-qqmlprofilerevent_p-needs-c-limits-inlcude-fixes-gcc.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

      reply	other threads:[~2021-07-25 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 21:24 [Buildroot] [PATCH v1] package/qt5declarative: fix gcc-11 compile failure Peter Seiderer
2021-07-25 21:29 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210725232940.139f23f5@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@buildroot.org \
    --cc=corjon.j@ecagroup.com \
    --cc=ps.report@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox