From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: Buildroot Development <buildroot@buildroot.org>,
Edgar Bonet <bonet@grenoble.cnrs.fr>,
Brandon Maier <brandon.maier@collins.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Ben Wolsieffer <Ben.Wolsieffer@hefring.com>
Subject: Re: [Buildroot] [PATCH v2] package/git: fix wchar-less uclibc build
Date: Thu, 31 Oct 2024 19:07:15 +0100 [thread overview]
Message-ID: <20241031190715.795e9189@windsurf> (raw)
In-Reply-To: <20241030100404.43847-3-bagasdotme@gmail.com>
On Wed, 30 Oct 2024 17:04:03 +0700
Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> The package fails to build on wchar-less uClibc-ng configuration
> (i.e. without BR2_TOOLCHAIN_BUILDROOT_WCHAR selected):
>
> ```
> CC t/unit-tests/unit-test.o
> t/unit-tests/clar/clar.c: In function 'clar__assert_equal':
> t/unit-tests/clar/clar.c:767:23: error: unknown type name 'wchar_t'
> 767 | const wchar_t *wcs1 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> In file included from t/unit-tests/clar/clar.c:13:
> t/unit-tests/clar/clar.c:767:58: error: unknown type name 'wchar_t'
> 767 | const wchar_t *wcs1 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:768:23: error: unknown type name 'wchar_t'
> 768 | const wchar_t *wcs2 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:768:58: error: unknown type name 'wchar_t'
> 768 | const wchar_t *wcs2 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:769:65: warning: implicit declaration of function 'wcscmp' [-Wimplicit-function-declaration]
> 769 | is_equal = (!wcs1 || !wcs2) ? (wcs1 == wcs2) : !wcscmp(wcs1, wcs2);
> | ^~~~~~
> t/unit-tests/clar/clar.c:784:23: error: unknown type name 'wchar_t'
> 784 | const wchar_t *wcs1 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:784:58: error: unknown type name 'wchar_t'
> 784 | const wchar_t *wcs1 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:785:23: error: unknown type name 'wchar_t'
> 785 | const wchar_t *wcs2 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:785:58: error: unknown type name 'wchar_t'
> 785 | const wchar_t *wcs2 = va_arg(args, const wchar_t *);
> | ^~~~~~~
> t/unit-tests/clar/clar.c:787:65: warning: implicit declaration of function 'wcsncmp' [-Wimplicit-function-declaration]
> 787 | is_equal = (!wcs1 || !wcs2) ? (wcs1 == wcs2) : !wcsncmp(wcs1, wcs2, len);
> | ^~~~~~~
> make[1]: *** [Makefile:2795: t/unit-tests/clar/clar.o] Error 1
> ```
>
> This is because since version 2.47.0, Git imports clar unit testing
> framework, which uses wchar_t. On wchar-less uClibc-ng configuration,
> however, the installed <wchar.h> header is a stub (that is, wchar_t
> is undefined).
>
> Apply upstream patchset from Patrick Steinhardt [1], which includes
> upstreamed clar build fix.
>
> Fixes: https://autobuild.buildroot.org/results/85dbf87451156fce7c2a12d8882622ea75e0d0db
> Link: https://lore.kernel.org/git/cover.1729506329.git.ps@pks.im/ [1]
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2024-10-31 18:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 10:04 [Buildroot] [PATCH v2] package/git: fix wchar-less uclibc build Bagas Sanjaya
2024-10-31 18:07 ` Thomas Petazzoni via buildroot [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=20241031190715.795e9189@windsurf \
--to=buildroot@buildroot.org \
--cc=Ben.Wolsieffer@hefring.com \
--cc=bagasdotme@gmail.com \
--cc=bonet@grenoble.cnrs.fr \
--cc=brandon.maier@collins.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=thomas.petazzoni@bootlin.com \
/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