Re: [Buildroot] [PATCH v4 2/3] package/util-linux: libuuid needs MMU

Julien Olivain via buildroot <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
Hi Dario, all,

On 21/07/2026 14:53, Dario Binacchi wrote:
> When building util-linux with libuuid enabled on noMMU targets
> (e.g., bootlin-armv7m-uclibc or bootlin-m68k-5208-uclibc), the build
> fails with the following error:
> 
> libuuid/src/gen_uuid.c: In function ‘uuid_generate_time_generic’:
> libuuid/src/gen_uuid.c:629:17: error: implicit declaration of function 
> ‘pthread_atfork’; did you mean ‘pthread_join’? 
> [-Wimplicit-function-declaration]
>   629 |                 pthread_atfork(NULL, NULL, reset_uuidd_cache);
>       |                 ^~~~~~~~~~~~~~
>       |                 pthread_join
> 
> This happens because pthread_atfork() is not available on noMMU
> configurations as reported by commit 59fe7547a495 ("package/libcap-ng:
> disable pthread support on nommu").
> 
> Fix this by adding a dependency on BR2_USE_MMU to libuuid. As a
> consequence, also propagate the BR2_USE_MMU dependency to all packages
> selecting BR2_PACKAGE_UTIL_LINUX_LIBUUID to prevent "unmet direct
> dependencies" Kconfig errors.
> 
> Signed-off-by: Dario Binacchi <[email protected]>

I see we fixed this kind of issue in the past, in commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/8489cb0932b6ca00104dab3bd54e76d1bcf6c65c

But apparently, the failing toolchains include a libpthread which
gets detected by util-linux configure script. I'm not sure when this
broke again.

There was this proposal too:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

But I'd prefer to not include this patch and try to make libuuid
work on noMMU, since upstream is supposed to support it. We can fix
util-linux this in another patch.

The rest of the series looks good, so I might just remove the
BR2_USE_MMU dependency when applying.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.