glibc: needs kernel headers >= 4.5 on mips(64)
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Since glibc 2.23 [1]:
sysdeps/unix/sysv/linux/mips/configure.ac
[...]
if test -z "$arch_minimum_kernel"; then
if test x$libc_cv_mips_nan2008 = xyes; then
arch_minimum_kernel=4.5.0
fi
fi
This mean that if nan2008 support is requested (i.e BR2_MIPS_NAN_2008 in Buildroot) the minimum kernel headers version is 4.5.0 (not 3.2.0).
To simplify the dependancy handling in Buildroot we add this dependency for all mips(64), even if BR2_MIPS_NAN_2008 is not selected.
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=d5f2798a0ac9d5ad8ad7a506a2f840035135e2d2
---
This is for master.
I tried to use BR2_MIPS_NAN_2008 but it trigger a circular dependency in Kconfig.
toolchain/toolchain-buildroot/Config.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
toolchain/toolchain-buildroot/Config.in +8 -2
@@ -43,8 +43,9 @@ config BR2_TOOLCHAIN_BUILDROOT_UCLIBC config BR2_TOOLCHAIN_BUILDROOT_GLIBC bool "glibc" depends on BR2_arm || BR2_armeb || BR2_aarch64 || \ - BR2_aarch64_be || BR2_i386 || BR2_mips || \ - BR2_mipsel || BR2_mips64 || BR2_mips64el|| \ + BR2_aarch64_be || BR2_i386 || \ + ((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && \ + BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5) || \ BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_sh || BR2_sparc64 || BR2_x86_64 || \ BR2_microblaze || BR2_nios2
@@ -65,6 +66,11 @@ comment "glibc needs a toolchain w/ dynamic library, kernel headers >= 3.2" depends on BR2_USE_MMU depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 +# glibc require kernel headers >= 4.5 if nan2008 support is selected. +comment "glibc on mips(64) needs a toolchain w/ headers >= 4.5" + depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 + config BR2_TOOLCHAIN_BUILDROOT_MUSL bool "musl" depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
Signature · 1 line
2.9.5
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Hello,
+Vicente, since the discussion is MIPS related.
Quoted 1 line · Romain Naour
I tried to use
BR2_MIPS_NAN_2008but it trigger a circular dependency inKconfig.
I indeed tried:
toolchain/toolchain-buildroot/Config.in +8 -1
@@ -50,7 +50,8 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC BR2_microblaze || BR2_nios2 depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS - depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 + depends on (BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 && !BR2_MIPS_NAN_2008) || \ + (BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 && BR2_MIPS_NAN_2008) depends on !BR2_powerpc_SPE select BR2_TOOLCHAIN_USES_GLIBC # our glibc.mk enables RPC support
@@ -63,8 +64,14 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC comment "glibc needs a toolchain w/ dynamic library, kernel headers >= 3.2" depends on BR2_USE_MMU + depends on !BR2_MIPS_NAN_2008 depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 +comment "glibc needs a toolchain w/ dynamic library, kernel headers >= 4.5" + depends on BR2_USE_MMU + depends on BR2_MIPS_NAN_2008 + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 + config BR2_TOOLCHAIN_BUILDROOT_MUSL bool "musl" depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
And Kconfig yells with:
toolchain/toolchain-buildroot/Config.in:23:error: recursive dependency detected!
toolchain/toolchain-buildroot/Config.in:23: choice <choice> contains symbol BR2_TOOLCHAIN_BUILDROOT_GLIBC
toolchain/toolchain-buildroot/Config.in:43: symbol BR2_TOOLCHAIN_BUILDROOT_GLIBC depends on BR2_MIPS_NAN_2008arch/Config.in.mips:168: symbol BR2_MIPS_NAN_2008 is selected by BR2_MIPS_ENABLE_NAN_2008arch/Config.in.mips:185: symbol BR2_MIPS_ENABLE_NAN_2008 is part of choice <choice>arch/Config.in.mips:171: choice <choice> contains symbol <choice>arch/Config.in.mips:171: choice <choice> contains symbol BR2_TOOLCHAIN_HAS_MNAN_OPTION
toolchain/toolchain-common.in:347: symbol BR2_TOOLCHAIN_HAS_MNAN_OPTION depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
toolchain/toolchain-common.in:314: symbol BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 is selected by BR2_TOOLCHAIN_GCC_AT_LEAST_5
toolchain/toolchain-common.in:318: symbol BR2_TOOLCHAIN_GCC_AT_LEAST_5 is selected by BR2_TOOLCHAIN_GCC_AT_LEAST_6
toolchain/toolchain-common.in:322: symbol BR2_TOOLCHAIN_GCC_AT_LEAST_6 is selected by BR2_TOOLCHAIN_GCC_AT_LEAST_7
toolchain/toolchain-common.in:326: symbol BR2_TOOLCHAIN_GCC_AT_LEAST_7 is selected by BR2_GCC_VERSION_7_X
package/gcc/Config.in.host:68: symbol BR2_GCC_VERSION_7_X is part of choice <choice>
package/gcc/Config.in.host:3: choice <choice> contains symbol BR2_GCC_VERSION_4_9_X
package/gcc/Config.in.host:23: symbol BR2_GCC_VERSION_4_9_X depends on BR2_TOOLCHAIN_USES_MUSL
toolchain/Config.in:25: symbol BR2_TOOLCHAIN_USES_MUSL is selected by BR2_TOOLCHAIN_BUILDROOT_MUSL
toolchain/toolchain-buildroot/Config.in:75: symbol BR2_TOOLCHAIN_BUILDROOT_MUSL is part of choice <choice>
And I believe he is right to yell about this. I think the addition of the BR2_TOOLCHAIN_HAS_<xyz>_OPTION dependencies in arch/Config.in.mips is what causes the problem. Indeed, it's the first time we have a dependency on an architecture option to a toolchain option. This is not logical, because in Buildroot, you first select the architecture, and then you select the toolchain details. For example, we disallow selecting a given gcc version if it is not supported on a given architecture. But here, those BR2_TOOLCHAIN_HAS_MFPXX_OPTION / BR2_TOOLCHAIN_HAS_MNAN_OPTION are doing the opposite: they prevent you from selecting a given architecture variant if the gcc version is not sufficient.
I believe we need to invert those dependencies, and instead have a mechanism where selecting a too old gcc version is not possible when -mnan/-mfp are used on MIPS.
Yann is specifically working on a mechanism to allow architectures to describe what minimum gcc version they need. Perhaps we should use that to express this dependency as well. Adding Yann in Cc :)
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Thomas, Romain, Vicente, All,
On 2017-08-20 22:26 +0200, Thomas Petazzoni spake thusly:
Quoted 3 lines · Romain Naour
Quoted 1 line
I tried to use
BR2_MIPS_NAN_2008but it trigger a circular dependency inKconfig.I indeed tried:
[--SNIP--]
Quoted 11 lines
And
Kconfigyells with:toolchain/toolchain-buildroot/Config.in:23:error: recursive dependency detected!
toolchain/toolchain-buildroot/Config.in:23: choice <choice> contains symbolBR2_TOOLCHAIN_BUILDROOT_GLIBC
toolchain/toolchain-buildroot/Config.in:43: symbolBR2_TOOLCHAIN_BUILDROOT_GLIBCdepends onBR2_MIPS_NAN_2008arch/Config.in.mips:168: symbolBR2_MIPS_NAN_2008is selected byBR2_MIPS_ENABLE_NAN_2008arch/Config.in.mips:185: symbolBR2_MIPS_ENABLE_NAN_2008is part of choice <choice>arch/Config.in.mips:171: choice <choice> contains symbol <choice>arch/Config.in.mips:171: choice <choice> contains symbolBR2_TOOLCHAIN_HAS_MNAN_OPTION
toolchain/toolchain-common.in:347: symbolBR2_TOOLCHAIN_HAS_MNAN_OPTIONdepends onBR2_TOOLCHAIN_GCC_AT_LEAST_4_9
toolchain/toolchain-common.in:314: symbolBR2_TOOLCHAIN_GCC_AT_LEAST_4_9is selected byBR2_TOOLCHAIN_GCC_AT_LEAST_5
Quoted 8 lines
toolchain/toolchain-common.in:318: symbol
BR2_TOOLCHAIN_GCC_AT_LEAST_5is selected byBR2_TOOLCHAIN_GCC_AT_LEAST_6
toolchain/toolchain-common.in:322: symbolBR2_TOOLCHAIN_GCC_AT_LEAST_6is selected byBR2_TOOLCHAIN_GCC_AT_LEAST_7
toolchain/toolchain-common.in:326: symbolBR2_TOOLCHAIN_GCC_AT_LEAST_7is selected byBR2_GCC_VERSION_7_X
package/gcc/Config.in.host:68: symbolBR2_GCC_VERSION_7_Xis part of choice <choice>
package/gcc/Config.in.host:3: choice <choice> contains symbolBR2_GCC_VERSION_4_9_X
package/gcc/Config.in.host:23: symbolBR2_GCC_VERSION_4_9_Xdepends onBR2_TOOLCHAIN_USES_MUSL
toolchain/Config.in:25: symbolBR2_TOOLCHAIN_USES_MUSLis selected byBR2_TOOLCHAIN_BUILDROOT_MUSL
toolchain/toolchain-buildroot/Config.in:75: symbolBR2_TOOLCHAIN_BUILDROOT_MUSLis part of choice <choice>
[--SNIP--]
Quoted 12 lines
And I believe he is right to yell about this. I think the addition of the BR2_TOOLCHAIN_HAS_<xyz>_OPTION dependencies in
arch/Config.in.mipsis what causes the problem. Indeed, it's the first time we have a dependency on an architecture option to a toolchain option. This is not logical, because in Buildroot, you first select the architecture, and then you select the toolchain details. For example, we disallow selecting a given gcc version if it is not supported on a given architecture. But here, thoseBR2_TOOLCHAIN_HAS_MFPXX_OPTION/BR2_TOOLCHAIN_HAS_MNAN_OPTIONare doing the opposite: they prevent you from selecting a given architecture variant if the gcc version is not sufficient.
Quoted 3 lines
I believe we need to invert those dependencies, and instead have a mechanism where selecting a too old gcc version is not possible when -mnan/-mfp are used on MIPS.
Agreed.
Quoted 3 lines
Yann is specifically working on a mechanism to allow architectures to describe what minimum gcc version they need. Perhaps we should use that to express this dependency as well. Adding Yann in Cc :)
And indeed, it was pretty trivial to do so with my changes:
https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=96c77a38f423fd1745ea5601b71d3ac63c7ea11e which allowed for: https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=81fb80dc8fc8b93754cc068552a1eae917f14842
Also, I think we should rename BR2_TOOLCHAIN_HAS_MNAN_OPTION to include the fact that it is mips, like: BR2_TOOLCHAIN_HAS_MIPS_MNAN_OPTION.
Ditto BR2_TOOLCHAIN_HAS_MFPXX_OPTION, BR2_TOOLCHAIN_HAS_MIPS_MFPXX_OPTION.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Hello,
Quoted 6 lines · Yann E. MORIN
Quoted 3 lines
Yann is specifically working on a mechanism to allow architectures to describe what minimum gcc version they need. Perhaps we should use that to express this dependency as well. Adding Yann in Cc :)
And indeed, it was pretty trivial to do so with my changes:
https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=96c77a38f423fd1745ea5601b71d3ac63c7ea11e
I am not sure this patch is correct. Indeed, in the choice you have two
options: NaN 2008 and NaN legacy. With your patch, it's only when NaN 2008 is chosen that you indicate the architecture needs at least gcc 4.9.
But in fact, even if NaN legacy is chosen, you need gcc 4.9, because -mnan=legacy also only works with gcc 4.9: the -mnan option didn't exist at all before gcc 4.9 (at least that's my understanding).
However, I believe the current code is already bogus. Indeed, BR2_MIPS_CPU_MIPS32 selects BR2_MIPS_NAN_LEGACY, which means BR2_GCC_TARGET_NAN is set to legacy, so -mnan=legacy will be passed... which will break the build for gcc < 4.9.
There is definitely something to double check here.
Quoted 2 lines
Also, I think we should rename
BR2_TOOLCHAIN_HAS_MNAN_OPTIONto include the fact that it is mips, like:BR2_TOOLCHAIN_HAS_MIPS_MNAN_OPTION.
Also what I thought when reviewing Vicente patches, but then I decided to not do it, because the gcc option is really named -mnan and not -mmips-nan or something like that.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Thomas, All,
On 2017-08-21 23:10 +0200, Thomas Petazzoni spake thusly:
Quoted 9 lines · Yann E. MORIN
Quoted 7 lines
Quoted 4 lines
Yann is specifically working on a mechanism to allow architectures to describe what minimum gcc version they need. Perhaps we should use that to express this dependency as well. Adding Yann in Cc :)
And indeed, it was pretty trivial to do so with my changes:
https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=96c77a38f423fd1745ea5601b71d3ac63c7ea11e
Quoted 8 lines
I am not sure this patch is correct. Indeed, in the choice you have two
options: NaN 2008 and NaN legacy. With your patch, it's only when NaN 2008 is chosen that you indicate the architecture needs at least gcc 4.9.But in fact, even if NaN legacy is chosen, you need gcc 4.9, because -mnan=legacy also only works with gcc 4.9: the -mnan option didn't exist at all before gcc 4.9 (at least that's my understanding).
So, gcc before 4.9 do not have the -mnan option, so the symbol BR2_TOOLCHAIN_HAS_MNAN_OPTION is not set. And the code that adds -mnan is now conditioanl to that symbol.
So it does work:
1- if the user selects NaN legacy, he is not restricted in the gcc
version he may use;
1a- if gcc is older than 4.9, no -mnan option is passed, 1b- if gcc if 4.9 or later, -mnan=legacy is passed (although that is
the default in gcc, we force it);
2- the user select NaN-2008, he is restricted in using a gcc 4.9 or
later, and we always pass -mnan=2008.
Isn't what we want?
Of course, I may have left a bug somewhere... ;-)
Quoted 4 lines
However, I believe the current code is already bogus. Indeed,
BR2_MIPS_CPU_MIPS32selectsBR2_MIPS_NAN_LEGACY, which meansBR2_GCC_TARGET_NANis set to legacy, so -mnan=legacy will be passed... which will break the build for gcc < 4.9.
Not really, because when gcc is older than 4.9, BR2_GCC_TARGET_NAN is not set, so this condition is not met (line ~210):
package/gcc/gcc.mk:ifneq ($(call qstrip,$(BR2_GCC_TARGET_NAN)),)
package/gcc/gcc.mk:HOST_GCC_COMMON_CONF_OPTS += --with-nan=$(BR2_GCC_TARGET_NAN)
package/gcc/gcc.mk:endifSo there is no -mnan option pased in this case.
But with my patch, BR2_GCC_TARGET_NAN is always set now, so the condition above is now enclosed with:
package/gcc/gcc.mk:ifeq ($(BR2_TOOLCHAIN_MIPS_HAS_MNAN_OPTION),y) [the code above]
package/gcc/gcc.mk:endif
Quoted 8 lines
There is definitely something to double check here.
Quoted 2 lines
Also, I think we should rename
BR2_TOOLCHAIN_HAS_MNAN_OPTIONto include the fact that it is mips, like:BR2_TOOLCHAIN_HAS_MIPS_MNAN_OPTION.Also what I thought when reviewing Vicente patches, but then I decided to not do it, because the gcc option is really named -mnan and not -mmips-nan or something like that.
Hence I renamed it BR2_TOOLCHAIN_MIPS_HAS_MNAN_OPTION because we already have symbols named as such:
https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=b8950fddae941f427ce7b4cc64d6388573a93101
(We're not doing a review of a series I haven't yet posted, are we? ;-] )
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
Yann, Thomas, All
Le 22/08/2017 ? 18:34, Yann E. MORIN a ?crit :
Quoted 71 lines
Thomas, All,
On 2017-08-21 23:10 +0200, Thomas Petazzoni spake thusly:
Quoted 9 lines · Yann E. MORIN
Quoted 7 lines
Quoted 4 lines
Yann is specifically working on a mechanism to allow architectures to describe what minimum gcc version they need. Perhaps we should use that to express this dependency as well. Adding Yann in Cc :)
And indeed, it was pretty trivial to do so with my changes:
https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=96c77a38f423fd1745ea5601b71d3ac63c7ea11eQuoted 8 lines
I am not sure this patch is correct. Indeed, in the choice you have two
options: NaN 2008 and NaN legacy. With your patch, it's only when NaN 2008 is chosen that you indicate the architecture needs at least gcc 4.9.But in fact, even if NaN legacy is chosen, you need gcc 4.9, because -mnan=legacy also only works with gcc 4.9: the -mnan option didn't exist at all before gcc 4.9 (at least that's my understanding).
So, gcc before 4.9 do not have the -mnan option, so the symbol
BR2_TOOLCHAIN_HAS_MNAN_OPTIONis not set. And the code that adds -mnan is now conditioanl to that symbol.So it does work:
1- if the user selects NaN legacy, he is not restricted in the gcc
version he may use;1a- if gcc is older than 4.9, no -mnan option is passed, 1b- if gcc if 4.9 or later, -mnan=legacy is passed (although that is
the default in gcc, we force it);2- the user select NaN-2008, he is restricted in using a gcc 4.9 or
later, and we always pass -mnan=2008.Isn't what we want?
Of course, I may have left a bug somewhere... ;-)
Quoted 4 lines
However, I believe the current code is already bogus. Indeed,
BR2_MIPS_CPU_MIPS32selectsBR2_MIPS_NAN_LEGACY, which meansBR2_GCC_TARGET_NANis set to legacy, so -mnan=legacy will be passed... which will break the build for gcc < 4.9.Not really, because when gcc is older than 4.9,
BR2_GCC_TARGET_NANis not set, so this condition is not met (line ~210):package/gcc/gcc.mk:ifneq ($(call qstrip,$(BR2_GCC_TARGET_NAN)),) package/gcc/gcc.mk:HOST_GCC_COMMON_CONF_OPTS += --with-nan=$(BR2_GCC_TARGET_NAN) package/gcc/gcc.mk:endifSo there is no -mnan option pased in this case.
But with my patch,
BR2_GCC_TARGET_NANis always set now, so the condition above is now enclosed with:package/gcc/gcc.mk:ifeq ($(BR2_TOOLCHAIN_MIPS_HAS_MNAN_OPTION),y) [the code above]
package/gcc/gcc.mk:endifQuoted 8 lines
There is definitely something to double check here.
Quoted 2 lines
Also, I think we should rename
BR2_TOOLCHAIN_HAS_MNAN_OPTIONto include the fact that it is mips, like:BR2_TOOLCHAIN_HAS_MIPS_MNAN_OPTION.Also what I thought when reviewing Vicente patches, but then I decided to not do it, because the gcc option is really named -mnan and not -mmips-nan or something like that.
Quoted 6 lines
Hence I renamed it
BR2_TOOLCHAIN_MIPS_HAS_MNAN_OPTIONbecause we already have symbols named as such:https://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/aarch64-cpus-2&id=b8950fddae941f427ce7b4cc64d6388573a93101(We're not doing a review of a series I haven't yet posted, are we? ;-] )
I'm glad to see you're already working on a fix.
I'm still working on glibc 2.26 bump (hence this patch) but I'm facing to a build issue on x86_64 with mesa3d package.
I'll take a look at your series as soon as it'll be on the list :)
Best regards,
Romain
Quoted 4 lines
Regards,
Yann E. MORIN.
PATCH 1/1 glibc: needs kernel headers >= 4.5 on mips(64)
In reply to Romain NaourRomain, All,
On 2017-08-20 16:41 +0200, Romain Naour spake thusly:
Quoted 17 lines
Since glibc 2.23 [1]:
sysdeps/unix/sysv/linux/mips/configure.ac
[...]
if test -z "$arch_minimum_kernel"; then
if test x$libc_cv_mips_nan2008 = xyes; thenarch_minimum_kernel=4.5.0fi
fiThis mean that if nan2008 support is requested (i.e
BR2_MIPS_NAN_2008in Buildroot) the minimum kernel headers version is 4.5.0 (not 3.2.0).To simplify the dependancy handling in Buildroot we add this dependency for all mips(64), even if
BR2_MIPS_NAN_2008is not selected.[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=d5f2798a0ac9d5ad8ad7a506a2f840035135e2d2
Quoted 8 lines
Signed-off-by Romain Naour <[email protected]>Cc Thomas Petazzoni <[email protected]>Cc Vicente Olivert Riera <[email protected]>---
This is for master.
I tried to use
BR2_MIPS_NAN_2008but it trigger a circular dependency inKconfig.
After the discussion in this thread and on IRC, I've marked this patch as "Changes Requested".
Now I just have to polish my own series that has a fix for that issue...
Thanks! ;-)
Regards,
Yann E. MORIN.
Quoted 38 lines
toolchain/toolchain-buildroot/Config.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)toolchain/toolchain-buildroot/Config.in +8
-2@@ -43,8 +43,9 @@ config BR2_TOOLCHAIN_BUILDROOT_UCLIBC config BR2_TOOLCHAIN_BUILDROOT_GLIBC bool "glibc" depends on BR2_arm || BR2_armeb || BR2_aarch64 || \ - BR2_aarch64_be || BR2_i386 || BR2_mips || \ - BR2_mipsel || BR2_mips64 || BR2_mips64el|| \ + BR2_aarch64_be || BR2_i386 || \ + ((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && \ + BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5) || \ BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_sh || BR2_sparc64 || BR2_x86_64 || \ BR2_microblaze || BR2_nios2@@ -65,6 +66,11 @@ comment "glibc needs a toolchain w/ dynamic library, kernel headers >= 3.2" depends on BR2_USE_MMU depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 +# glibc require kernel headers >= 4.5 if nan2008 support is selected. +comment "glibc on mips(64) needs a toolchain w/ headers >= 4.5" + depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 + config BR2_TOOLCHAIN_BUILDROOT_MUSL bool "musl" depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \Signature · 6 lines
2.9.5 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'