[Buildroot] [PATCH] git: fix build with with no threads

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 22 21:57:44 UTC 2017


Hello,

On Wed, 22 Mar 2017 05:26:44 +0530, Rahul Bedarkar wrote:
> When building git with toolchain that don't have thread support, we
> get following build errors:
> 
>       CC builtin/hash-object.o
>   builtin/grep.c: In function 'grep_submodule_launch':
>   builtin/grep.c:596:34: error: dereferencing pointer to incomplete type 'struct work_item'
>     status = capture_command(&cp, &w->out, 0);
>                                     ^
>   builtin/grep.c: In function 'grep_submodule':
>   builtin/grep.c:644:20: error: storage size of 'w' isn't known
>      struct work_item w;
>                       ^
>   make[2]: *** [builtin/grep.o] Error 1
>   make[2]: *** Waiting for unfinished jobs....
> 
> Add two upstream patches to fix this issue.
> 
> Fixes:
>   http://autobuild.buildroot.net/results/94b/94bce9a99a5ce9894a6918774ab75e23d12c1394/
> 
> Signed-off-by: Rahul Bedarkar <rahul.bedarkar at imgtec.com>
> ---
>  .../git/0001-grep-set-default-output-method.patch  | 59 +++++++++++++++
>  ...ep-fix-builds-with-with-no-thread-support.patch | 87 ++++++++++++++++++++++
>  2 files changed, 146 insertions(+)
>  create mode 100644 package/git/0001-grep-set-default-output-method.patch
>  create mode 100644 package/git/0002-grep-fix-builds-with-with-no-thread-support.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list