All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Yegor Yefremov <yegorslists@googlemail.com>
Cc: buildroot@buildroot.org, Brandon Maier <brandon.maier@collins.com>
Subject: Re: [Buildroot] [PATCH] package/mtd: UBIFS utils need a toolchain w/ threads
Date: Sat, 28 Nov 2026 19:31:22 +0100	[thread overview]
Message-ID: <awsd9kNUyVy8FzIx@windsurf> (raw)
In-Reply-To: <20261127115548.2130705-1-yegorslists@googlemail.com>

On Fri, Nov 27, 2026 at 12:55:48PM +0100, Yegor Yefremov via buildroot wrote:
> In mtd-utils 2.3.x, the UBIFS utils (mkfs.ubifs and the new
> fsck.ubifs) share the UBIFS code imported from the kernel, which
> implements spinlocks, mutexes and rw semaphores with pthread and is
> linked with -lpthread. The build therefore fails with toolchains
> without threads support:
> 
>   ./ubifs-utils/common/spinlock.h:5:10: fatal error: pthread.h: No such file or directory
> 
> Add a dependency on BR2_TOOLCHAIN_HAS_THREADS to mkfs.ubifs,
> fsck.ubifs and the hidden option they select.
> 
> This issue has been present since commit 1124bc4b836a ("package/mtd:
> bump to version 2.3.1"), as 2.2.1 did not use pthread in the UBIFS
> utils. It therefore affects 2026.05 and later, and the 2026.05.x and
> 2026.08.x branches.
> 
> Fixes:
> https://autobuild.buildroot.org/results/f88b2b560b9a19b0f369dcd5fba034814dd79bde
> 
> Fixes: 1124bc4b836a0f16ce46088f0dd7e595a4d1b2ab ("package/mtd: bump to version 2.3.1")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Applied to master, thanks!

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2026-11-28 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 11:55 [Buildroot] [PATCH] package/mtd: UBIFS utils need a toolchain w/ threads Yegor Yefremov via buildroot
2026-11-28 18:31 ` 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=awsd9kNUyVy8FzIx@windsurf \
    --to=buildroot@buildroot.org \
    --cc=brandon.maier@collins.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=yegorslists@googlemail.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 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.