* [Buildroot] mips: nan2008 require kernel headers 4.5.x [not found] ` <38121FAB319C3344930C920E7B518313888D0F57@hhmail02.hh.imgtec.org> @ 2017-08-18 10:54 ` Romain Naour 2017-08-18 12:18 ` Thomas Petazzoni 0 siblings, 1 reply; 3+ messages in thread From: Romain Naour @ 2017-08-18 10:54 UTC (permalink / raw) To: buildroot Hi Vincent, Le 17/08/2017 ? 23:20, Vincent Olivert Riera a ?crit : > Hi Romain, > > I'm currently on holidays in Japan until the 23rd. I can have a look when I get back. Ok, thanks! Have a good time :) Thomas replied on IRC: (23:16:16) kos_tom: Kubu: I know about this dependency (23:16:54) kos_tom: Kubu: we build our stable toolchains with 3.10 (23:17:08) kos_tom: Kubu: except the mips32r5 toolchain that we build with kernel headers 4.9, see https://github.com/free-electrons/toolchains-builder/blob/master/configs/optionals/mips32r5el-glibc-stable.config There is the same issue for mips32r5el and mips64r6el. Actually it's not only mips, if you search "arch_minimum_kernel" in the glibc source code, you'll find few arch that require kernel header > 3.2 aarch64: kernel headers >= 3.7 (already handled in Buildroot) sysdeps/unix/sysv/linux/aarch64/configure.ac:arch_minimum_kernel=3.7.0 ia64: kernel headers >= 3.2.18 (not supported in Buildroot) sysdeps/unix/sysv/linux/ia64/configure.ac:arch_minimum_kernel=3.2.18 mips with nan2008 sysdeps/unix/sysv/linux/mips/configure.ac:if test -z "$arch_minimum_kernel"; then sysdeps/unix/sysv/linux/mips/configure.ac: arch_minimum_kernel=4.5.0 nios2: kernel headers >= 3.19 (already handled in Buildroot) sysdeps/unix/sysv/linux/nios2/configure.ac:arch_minimum_kernel=3.19.0 powerpc64el: kernel headers >= 3.10 since glibc 2.26 sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: ], arch_minimum_kernel=3.10.0, libc_cv_ppc64_le=no)]) https://sourceware.org/git/?p=glibc.git;a=commit;h=c2ff5ec13fca1bdd1cd646a0260808386d7bd7ff ia64: kernel headers >= 3.4.0 (not supported in Buildroot) sysdeps/unix/sysv/linux/x86_64/x32/configure.ac:arch_minimum_kernel=3.4.0 How to handle mips and powerpc64el kernel header dependency for glibc toolchains properly? Maybe we can just don't allow building a mips toolchain with kernel headers < 4.5.0 and do the same for powerpc64el toolchains with kernel headers < 3.10.0 ? Start dropping too old kernel headers choice for internal toolchains ? Best regards, Romain > > Regards, > > Vincent > ________________________________________ > From: Romain Naour [romain.naour at gmail.com] > Sent: 17 August 2017 20:12 > To: Vincent Olivert Riera > Cc: Thomas Petazzoni; Arnout Vandecappelle; Peter Korsgaard > Subject: mips: nan2008 require kernel headers 4.5.x > > Hi Vincente, > > There is a dependency issue on mips with glibc based toolchains when > BR2_MIPS_NAN_2008 is enabled, glibc require kernel headers 4.5.x not 3.2.x. > > defconfig: > BR2_mips64el=y > BR2_mips_64r5=y > BR2_MIPS_NABI64=y > # BR2_MIPS_SOFT_FLOAT is not set > BR2_TOOLCHAIN_BUILDROOT_GLIBC=y > BR2_KERNEL_HEADERS_3_10=y > BR2_BINUTILS_VERSION_2_27_X=y > BR2_GCC_VERSION_5_X=y > BR2_TOOLCHAIN_BUILDROOT_CXX=y > > I tied to add a new dependency on BR2_MIPS_NAN_2008 to > BR2_TOOLCHAIN_BUILDROOT_GLIBC but I got a recursive dependency. > > Can you have a look? > > Best regards, > Romain > ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] mips: nan2008 require kernel headers 4.5.x 2017-08-18 10:54 ` [Buildroot] mips: nan2008 require kernel headers 4.5.x Romain Naour @ 2017-08-18 12:18 ` Thomas Petazzoni 2017-08-18 14:50 ` Bernd Kuhls 0 siblings, 1 reply; 3+ messages in thread From: Thomas Petazzoni @ 2017-08-18 12:18 UTC (permalink / raw) To: buildroot Hello, On Fri, 18 Aug 2017 12:54:19 +0200, Romain Naour wrote: > Thomas replied on IRC: > (23:16:16) kos_tom: Kubu: I know about this dependency > (23:16:54) kos_tom: Kubu: we build our stable toolchains with 3.10 > (23:17:08) kos_tom: Kubu: except the mips32r5 toolchain that we build with > kernel headers 4.9, see > https://github.com/free-electrons/toolchains-builder/blob/master/configs/optionals/mips32r5el-glibc-stable.config > > There is the same issue for mips32r5el and mips64r6el. > > Actually it's not only mips, if you search "arch_minimum_kernel" in the glibc > source code, you'll find few arch that require kernel header > 3.2 > > aarch64: kernel headers >= 3.7 (already handled in Buildroot) > sysdeps/unix/sysv/linux/aarch64/configure.ac:arch_minimum_kernel=3.7.0 Where do you see that this is already handled in Buildroot ? > ia64: kernel headers >= 3.2.18 (not supported in Buildroot) > sysdeps/unix/sysv/linux/ia64/configure.ac:arch_minimum_kernel=3.2.18 > > mips with nan2008 > sysdeps/unix/sysv/linux/mips/configure.ac:if test -z "$arch_minimum_kernel"; then > sysdeps/unix/sysv/linux/mips/configure.ac: arch_minimum_kernel=4.5.0 > > nios2: kernel headers >= 3.19 (already handled in Buildroot) > sysdeps/unix/sysv/linux/nios2/configure.ac:arch_minimum_kernel=3.19.0 > > powerpc64el: kernel headers >= 3.10 since glibc 2.26 > sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: ], > arch_minimum_kernel=3.10.0, libc_cv_ppc64_le=no)]) > > https://sourceware.org/git/?p=glibc.git;a=commit;h=c2ff5ec13fca1bdd1cd646a0260808386d7bd7ff > > ia64: kernel headers >= 3.4.0 (not supported in Buildroot) > sysdeps/unix/sysv/linux/x86_64/x32/configure.ac:arch_minimum_kernel=3.4.0 > > How to handle mips and powerpc64el kernel header dependency for glibc toolchains > properly? Well, just add more dependencies to BR2_TOOLCHAIN_BUILDROOT_GLIBC. What is the problem with that ? For example: depends on BR2_arm || BR2_armeb || \ (BR2_aarch64 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7) || \ ... and then: comment "glibc on aarch64 needs a toolchain w/ headers >= 3.7" depends on BR2_aarch64 depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 > Maybe we can just don't allow building a mips toolchain with kernel headers < > 4.5.0 and do the same for powerpc64el toolchains with kernel headers < 3.10.0 ? Yes, see above. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] mips: nan2008 require kernel headers 4.5.x 2017-08-18 12:18 ` Thomas Petazzoni @ 2017-08-18 14:50 ` Bernd Kuhls 0 siblings, 0 replies; 3+ messages in thread From: Bernd Kuhls @ 2017-08-18 14:50 UTC (permalink / raw) To: buildroot Am Fri, 18 Aug 2017 14:18:58 +0200 schrieb Thomas Petazzoni: >> aarch64: kernel headers >= 3.7 (already handled in Buildroot) >> sysdeps/unix/sysv/linux/aarch64/configure.ac:arch_minimum_kernel=3.7.0 > > Where do you see that this is already handled in Buildroot ? Hi Thomas, https://git.buildroot.net/buildroot/commit/package/linux-headers? id=1291528bde602120ab4b60d23d1a362d44cc5e04 Regards, Bernd ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-18 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2f4c0a2a-ffeb-9a1c-ebe4-d5eaf50f3154@gmail.com>
[not found] ` <38121FAB319C3344930C920E7B518313888D0F57@hhmail02.hh.imgtec.org>
2017-08-18 10:54 ` [Buildroot] mips: nan2008 require kernel headers 4.5.x Romain Naour
2017-08-18 12:18 ` Thomas Petazzoni
2017-08-18 14:50 ` Bernd Kuhls
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox