mips: nan2008 require kernel headers 4.5.x
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Vincent,
Le 17/08/2017 ? 23:20, Vincent Olivert Riera a ?crit :
Quoted 3 lines
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
Quoted 35 lines
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.xHi Vincente,
There is a dependency issue on mips with glibc based toolchains when
BR2_MIPS_NAN_2008is 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_FLOATis 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=yI tied to add a new dependency on
BR2_MIPS_NAN_2008toBR2_TOOLCHAIN_BUILDROOT_GLIBCbut I got a recursive dependency.Can you have a look?
Best regards,
Romain
Hello,
Quoted 7 lines · Romain Naour
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
Quoted 7 lines
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.2aarch64: 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 ?
Quoted 14 lines
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.0nios2: 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)])
Quoted 7 lines
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
Quoted 2 lines
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Am Fri, 18 Aug 2017 14:18:58 +0200 schrieb Thomas Petazzoni:
Quoted 4 lines
Quoted 2 lines
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