All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Buildroot] [PATCH 1/1] package/qt5/qt5base: fix build on riscv32
       [not found] <20210902162222.2232480-1-fontaine.fabrice@gmail.com>
@ 2021-09-03 18:58 ` Arnout Vandecappelle
  2021-09-10 11:09 ` Peter Korsgaard
  1 sibling, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-09-03 18:58 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Peter Seiderer, Julien Corjon



On 02/09/2021 18:22, Fabrice Fontaine wrote:
> Fix the following build failure on riscv32:
> 
> In file included from thread/qmutex_linux.cpp:45,
>                  from thread/qmutex.cpp:804:
> thread/qfutex_p.h: In function 'int QtLinuxFutex::_q_futex(int*, int, int, quintptr, int*, int)':
> thread/qfutex_p.h:116:30: error: '__NR_futex' was not declared in this scope; did you mean '_q_futex'?
>   116 |         int result = syscall(__NR_futex, addr, op | FUTEX_PRIVATE_FLAG, val, val2, addr2, val3);
>       |                              ^~~~~~~~~~
>       |                              _q_futex
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ffedfc000029072d5d724e98ab4551fe973658ce
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 Regards,
 Arnout

> ---
>  .../qt5base/0009-Fix-build-on-riscv32.patch   | 45 +++++++++++++++++++
>  1 file changed, 45 insertions(+)
>  create mode 100644 package/qt5/qt5base/0009-Fix-build-on-riscv32.patch
> 
> diff --git a/package/qt5/qt5base/0009-Fix-build-on-riscv32.patch b/package/qt5/qt5base/0009-Fix-build-on-riscv32.patch
> new file mode 100644
> index 0000000000..98c7210551
> --- /dev/null
> +++ b/package/qt5/qt5base/0009-Fix-build-on-riscv32.patch
> @@ -0,0 +1,45 @@
> +From 035dc537bee26e3b63a211b2835d8560439e161f Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Fri, 27 Aug 2021 16:28:32 +0200
> +Subject: Fix build on riscv32
> +
> +riscv32 fails to build because __NR_futex is not defined on this
> +architecture:
> +
> +In file included from thread/qmutex_linux.cpp:45,
> +                 from thread/qmutex.cpp:804:
> +thread/qfutex_p.h: In function 'int QtLinuxFutex::_q_futex(int*, int, int, quintptr, int*, int)':
> +thread/qfutex_p.h:116:30: error: '__NR_futex' was not declared in this scope; did you mean '_q_futex'?
> +  116 |         int result = syscall(__NR_futex, addr, op | FUTEX_PRIVATE_FLAG, val, val2, addr2, val3);
> +      |                              ^~~~~~~~~~
> +      |                              _q_futex
> +
> +Pick-to: 6.1 6.2
> +Fixes: QTBUG-96067
> +Change-Id: Ib6a9bcc496f37e69ac39362cb0a021fccaf311f5
> +Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
> +[Retrieved from:
> +https://code.qt.io/cgit/qt/qtbase.git/commit/?id=035dc537bee26e3b63a211b2835d8560439e161f]
> +---
> + src/corelib/thread/qfutex_p.h | 5 +++++
> + 1 file changed, 5 insertions(+)
> +
> +diff --git a/src/corelib/thread/qfutex_p.h b/src/corelib/thread/qfutex_p.h
> +index 40482b6fc1..037207a5c0 100644
> +--- a/src/corelib/thread/qfutex_p.h
> ++++ b/src/corelib/thread/qfutex_p.h
> +@@ -103,6 +103,11 @@ QT_END_NAMESPACE
> + // if not defined in linux/futex.h
> + #  define FUTEX_PRIVATE_FLAG        128         // added in v2.6.22
> + 
> ++// RISC-V does not supply __NR_futex
> ++#  ifndef __NR_futex
> ++#    define __NR_futex __NR_futex_time64
> ++#  endif
> ++
> + QT_BEGIN_NAMESPACE
> + namespace QtLinuxFutex {
> +     constexpr inline bool futexAvailable() { return true; }
> +-- 
> +cgit v1.2.1
> +
> 
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/qt5/qt5base: fix build on riscv32
       [not found] <20210902162222.2232480-1-fontaine.fabrice@gmail.com>
  2021-09-03 18:58 ` [Buildroot] [PATCH 1/1] package/qt5/qt5base: fix build on riscv32 Arnout Vandecappelle
@ 2021-09-10 11:09 ` Peter Korsgaard
  1 sibling, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2021-09-10 11:09 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Peter Seiderer, Julien Corjon, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure on riscv32:
 > In file included from thread/qmutex_linux.cpp:45,
 >                  from thread/qmutex.cpp:804:
 > thread/qfutex_p.h: In function 'int QtLinuxFutex::_q_futex(int*, int, int, quintptr, int*, int)':
 > thread/qfutex_p.h:116:30: error: '__NR_futex' was not declared in this scope; did you mean '_q_futex'?
 >   116 |         int result = syscall(__NR_futex, addr, op | FUTEX_PRIVATE_FLAG, val, val2, addr2, val3);
 >       |                              ^~~~~~~~~~
 >       |                              _q_futex

 > Fixes:
 >  - http://autobuild.buildroot.org/results/ffedfc000029072d5d724e98ab4551fe973658ce

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2021.02.x and 2021.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-10 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210902162222.2232480-1-fontaine.fabrice@gmail.com>
2021-09-03 18:58 ` [Buildroot] [PATCH 1/1] package/qt5/qt5base: fix build on riscv32 Arnout Vandecappelle
2021-09-10 11:09 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.