* [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+
@ 2017-05-19 4:20 Baruch Siach
2017-05-19 4:23 ` [Buildroot] Xorg.conf question ? Riko Ho
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Baruch Siach @ 2017-05-19 4:20 UTC (permalink / raw)
To: buildroot
The libc-compat.h first appeared in kernel version 3.12. Trying to build a
musl toolchain using earlier headers leads to the following failure:
/bin/sed: can't read .../output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/include/linux/libc-compat.h: No such file or directory
package/pkg-generic.mk:266: recipe for target '.../output/build/toolchain/.stamp_staging_installed' failed
Don't apply the sed patch to older headers.
Reported-by: Florent Jacquet <florent.jacquet@free-electrons.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
toolchain/toolchain/toolchain.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/toolchain/toolchain/toolchain.mk b/toolchain/toolchain/toolchain.mk
index e29837357a27..e15ceeb426fa 100644
--- a/toolchain/toolchain/toolchain.mk
+++ b/toolchain/toolchain/toolchain.mk
@@ -21,8 +21,10 @@ TOOLCHAIN_ADD_TOOLCHAIN_DEPENDENCY = NO
# IFF_DORMANT and IFF_ECHO, add another macro to suppress them in the
# kernel header, and avoid macro/enum conflict.
#
+# Kernel version 3.12 introduced the libc-compat.h header.
+#
# [1] http://www.openwall.com/lists/musl/2015/10/08/2
-ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12),yy)
define TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
$(SED) 's/^#if defined(__GLIBC__)$$/#if 1/' \
$(STAGING_DIR)/usr/include/linux/libc-compat.h
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] Xorg.conf question ?
2017-05-19 4:20 [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Baruch Siach
@ 2017-05-19 4:23 ` Riko Ho
2017-05-19 10:40 ` [Buildroot] qemu_x86_64_defconfig ==> X11 ? Riko Ho
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Riko Ho @ 2017-05-19 4:23 UTC (permalink / raw)
To: buildroot
Hello everyone,
I tried to startx from newly compiled buildroot,
but
I got "no screens found" error on Qemu.
How can I fix it ?
Regards,
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] qemu_x86_64_defconfig ==> X11 ?
2017-05-19 4:20 [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Baruch Siach
2017-05-19 4:23 ` [Buildroot] Xorg.conf question ? Riko Ho
@ 2017-05-19 10:40 ` Riko Ho
2017-05-19 13:29 ` [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Peter Korsgaard
2017-06-01 14:01 ` Peter Korsgaard
3 siblings, 0 replies; 5+ messages in thread
From: Riko Ho @ 2017-05-19 10:40 UTC (permalink / raw)
To: buildroot
Hi Everyone,
How can I make X11 server / X windows run based from qemu_x86_64_defconfig ?
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+
2017-05-19 4:20 [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Baruch Siach
2017-05-19 4:23 ` [Buildroot] Xorg.conf question ? Riko Ho
2017-05-19 10:40 ` [Buildroot] qemu_x86_64_defconfig ==> X11 ? Riko Ho
@ 2017-05-19 13:29 ` Peter Korsgaard
2017-06-01 14:01 ` Peter Korsgaard
3 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2017-05-19 13:29 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> The libc-compat.h first appeared in kernel version 3.12. Trying to build a
> musl toolchain using earlier headers leads to the following failure:
> /bin/sed: can't read .../output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/include/linux/libc-compat.h: No such file or directory
> package/pkg-generic.mk:266: recipe for target '.../output/build/toolchain/.stamp_staging_installed' failed
> Don't apply the sed patch to older headers.
> Reported-by: Florent Jacquet <florent.jacquet@free-electrons.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+
2017-05-19 4:20 [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Baruch Siach
` (2 preceding siblings ...)
2017-05-19 13:29 ` [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Peter Korsgaard
@ 2017-06-01 14:01 ` Peter Korsgaard
3 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2017-06-01 14:01 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> The libc-compat.h first appeared in kernel version 3.12. Trying to build a
> musl toolchain using earlier headers leads to the following failure:
> /bin/sed: can't read .../output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/include/linux/libc-compat.h: No such file or directory
> package/pkg-generic.mk:266: recipe for target '.../output/build/toolchain/.stamp_staging_installed' failed
> Don't apply the sed patch to older headers.
> Reported-by: Florent Jacquet <florent.jacquet@free-electrons.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-01 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-19 4:20 [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Baruch Siach
2017-05-19 4:23 ` [Buildroot] Xorg.conf question ? Riko Ho
2017-05-19 10:40 ` [Buildroot] qemu_x86_64_defconfig ==> X11 ? Riko Ho
2017-05-19 13:29 ` [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+ Peter Korsgaard
2017-06-01 14:01 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox