toolchain: add common binutils version hidden config options
PATCH v2 1/7 toolchain: add common binutils version hidden config options
This commit adds a number of hidden Config.in options, that will be used to handle dependencies on the binutils version. We mimic the model that was used for the kernel headers dependency mechanism.
These hidden options will be selected by the internal and external toolchain backend logic respectively, in follow-up commits.
These options will be helpful when we need to make packages depend on certain version of binutils. Further patches will do this for gcc and valgrind packages.
---
Changes v1 -> v2:
- Explain in the commit log why we need these options. (Yann)
toolchain/toolchain-common.in | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
toolchain/toolchain-common.in +39 -0
@@ -327,6 +327,45 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20 + bool + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20 + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21 + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22 + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23 + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24 + +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 + bool + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25 + +# This order guarantees that the highest version is set, as kconfig +# stops affecting a value on the first matching default. +config BR2_TOOLCHAIN_BINUTILS_AT_LEAST + string + default "2.26" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 + default "2.25" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25 + default "2.24" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24 + default "2.23" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_23 + default "2.22" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_22 + default "2.21" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_21 + default "2.20" if BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_20 + config BR2_TOOLCHAIN_HAS_SYNC_1 bool default y
Signature · 1 line
2.7.3
PATCH v2 2/7 toolchain-external: add support for binutils version dependency
This commit wires up the binutils version dependency mechanism in the external toolchain backend. To do so, it:
* Changes the definition of all pre-defined external toolchain profiles to select the appropriate BR2_TOOLCHAIN_BINUTILS_AT_LEAST_* option.
* For custom external toolchains, provides a visible Config.in "choice" to select the binutils version used in the external toolchain.
* Adds a new check_binutils_version function, that verifies that the real binutils version found in the external toolchain matches the one declared in the Buildroot configuration.
---
Changes v1 -> v2:
- Nothing.
toolchain/helpers.mk | 30 ++++++++++++ toolchain/toolchain-external/Config.in | 57 ++++++++++++++++++++++ toolchain/toolchain-external/toolchain-external.mk | 2 + 3 files changed, 89 insertions(+)
toolchain/helpers.mk +30 -0
@@ -149,6 +149,36 @@ check_kernel_headers_version = \ fi # +# Check the specific binutils version actually matches the version in +# the toolchain. We use readelf for that purpose. +# +# $1: path to readelf +# $2: expected readelf version +# +# Some details about the sed expression: +# - 1!d +# - delete if not line 1 +# +# - s/^[^)]+\) ([^[:space:]]+).*/\1/ +# - eat all until the first ')' character followed by a space +# - match as many non-space chars as possible +# - eat all the remaining chars on the line +# - replace by the matched expression +# +check_binutils_version = \ + expected_version="$(strip $2)" ; \ + if [ -z "$${expected_version}" ]; then \ + printf "Internal error, binutils version unknown (no BINUTILS_AT_LEAST_X_Y selected)\n"; \ + exit 1 ; \ + fi; \ + real_version=`$(1) --version | sed -r -e '1!d; s/^[^)]+\) ([^[:space:]]+).*/\1/;'` ; \ + if [[ ! "$${real_version}" =~ ^$${expected_version}\. ]] ; then \ + printf "Incorrect selection of binutils version: expected %s.x, got %s\n" \ + "$${expected_version}" "$${real_version}" ; \ + exit 1 ; \ + fi + +# # Check the specific gcc version actually matches the version in the # toolchain #
toolchain/toolchain-external/Config.in +57 -0
183 lines not on this page · raw message
toolchain/toolchain-external/toolchain-external.mk +2 -0
@@ -505,6 +505,8 @@ define TOOLCHAIN_EXTERNAL_CONFIGURE_CMDS $(call check_kernel_headers_version,\ $(call toolchain_find_sysroot,$(TOOLCHAIN_EXTERNAL_CC)),\ $(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST))); \ + $(call check_binutils_version,$(TOOLCHAIN_EXTERNAL_READELF),\ + $(call qstrip,$(BR2_TOOLCHAIN_BINUTILS_AT_LEAST))); \ $(call check_gcc_version,$(TOOLCHAIN_EXTERNAL_CC),\ $(call qstrip,$(BR2_TOOLCHAIN_GCC_AT_LEAST))); \ if test "$(BR2_arm)" = "y" ; then \
Signature · 1 line
2.7.3
PATCH v2 3/7 binutils: handle ARC more atomically
In reply to Vicente Olivert Riera---
Changes v1 -> v2:
- This patch didn't exist in v1.
package/binutils/Config.in.host | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
package/binutils/Config.in.host +11 -2
@@ -2,25 +2,34 @@ comment "Binutils Options" choice prompt "Binutils Version" - depends on !BR2_arc default BR2_BINUTILS_VERSION_2_25_X help Select the version of binutils you wish to use. config BR2_BINUTILS_VERSION_2_24_X + bool "binutils 2.24" + # ARC support is not upstream yet + depends on !BR2_arc # supported, but broken on Nios-II and powerpc64le depends on !BR2_nios2 && !BR2_powerpc64le # Unsupported for MIPS R6 depends on !BR2_mips_32r6 && !BR2_mips_64r6 # Unsupported ARM cores depends on !BR2_cortex_a17 - bool "binutils 2.24" config BR2_BINUTILS_VERSION_2_25_X bool "binutils 2.25.1" + # ARC support is not upstream yet + depends on !BR2_arc config BR2_BINUTILS_VERSION_2_26_X bool "binutils 2.26" + # ARC support is not upstream yet + depends on !BR2_arc + + config BR2_BINUTILS_VERSION_ARC + bool "arc-2016.03" + depends on BR2_arc endchoice
Signature · 1 line
2.7.3
PATCH v2 3/7 binutils: handle ARC more atomically
Vicente, All,
On 2016-05-31 12:11 +0100, Vicente Olivert Riera spake thusly:
Quoted 36 lines
Signed-off-by Vicente Olivert Riera <[email protected]>---
Changes v1 -> v2:
- This patch didn't exist in v1.package/binutils/Config.in.host | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)package/binutils/Config.in.host +4
-2@@ -2,25 +2,34 @@ comment "Binutils Options" choice prompt "Binutils Version" - depends on !BR2_arc default BR2_BINUTILS_VERSION_2_25_X help Select the version of binutils you wish to use. config BR2_BINUTILS_VERSION_2_24_X + bool "binutils 2.24" + # ARC support is not upstream yet + depends on !BR2_arc # supported, but broken on Nios-II and powerpc64le depends on !BR2_nios2 && !BR2_powerpc64le # Unsupported for MIPS R6 depends on !BR2_mips_32r6 && !BR2_mips_64r6 # Unsupported ARM cores depends on !BR2_cortex_a17 - bool "binutils 2.24" config BR2_BINUTILS_VERSION_2_25_X bool "binutils 2.25.1" + # ARC support is not upstream yet
package/binutils/Config.in.host comment "Binutils Options" · line 32
Quoted 10 lines
package/binutils/Config.in.host +7
-0+ depends on !BR2_arc config BR2_BINUTILS_VERSION_2_26_X bool "binutils 2.26" + # ARC support is not upstream yet + depends on !BR2_arc + + config BR2_BINUTILS_VERSION_ARC + bool "arc-2016.03" + depends on BR2_arc
As discussed on IRC, you should also use this new symbol to set the default value (not a patch!):
config BR2_BINUTILS_VERSION
string
- default "arc-2016.03" if BR2_arc
+ default "arc-2016.03" if BR2_BINUTILS_VERSION_ARC
default "2.24" if BR2_BINUTILS_VERSION_2_24_X
default "2.25.1" if BR2_BINUTILS_VERSION_2_25_X
default "2.26" if BR2_BINUTILS_VERSION_2_26_XWith that added, you can add my:
Reviewed-by: "Yann E. MORIN" <[email protected]>
Regards,
Yann E. MORIN.
Quoted 5 lines
package/binutils/Config.in.host +0
-0endchoiceSignature · 1 line
2.7.3
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 v2 4/7 binutils: select the appropriate BR2_TOOLCHAIN_BINUTILS_AT_LEAST_X_Y
In reply to Vicente Olivert Riera---
Changes v1 -> v2:
- Split the patch in two (Yann):
- change the way we handle the ARC stuff (patch 3/7, previous one)
- add the binutils-at-least options (patch 4/7 , this one)
package/binutils/Config.in.host | 4 ++++ 1 file changed, 4 insertions(+)
package/binutils/Config.in.host +4 -0
@@ -16,20 +16,24 @@ choice depends on !BR2_mips_32r6 && !BR2_mips_64r6 # Unsupported ARM cores depends on !BR2_cortex_a17 + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24 config BR2_BINUTILS_VERSION_2_25_X bool "binutils 2.25.1" # ARC support is not upstream yet depends on !BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25 config BR2_BINUTILS_VERSION_2_26_X bool "binutils 2.26" # ARC support is not upstream yet depends on !BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 config BR2_BINUTILS_VERSION_ARC bool "arc-2016.03" depends on BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 endchoice
Signature · 1 line
2.7.3
PATCH v2 4/7 binutils: select the appropriate BR2_TOOLCHAIN_BINUTILS_AT_LEAST_X_Y
Vicente, All,
On 2016-05-31 12:11 +0100, Vicente Olivert Riera spake thusly:
Quoted 1 line
Signed-off-by Vicente Olivert Riera <[email protected]>
On the assumption that you know what you're doing, and that the ARCH binutils is really a 2.26:
Regards,
Yann E. MORIN.
Quoted 41 lines
---
Changes v1 -> v2:
- Split the patch in two (Yann):
- change the way we handle the ARC stuff (patch 3/7, previous one)
- add the binutils-at-least options (patch 4/7 , this one)package/binutils/Config.in.host | 4 ++++ 1 file changed, 4 insertions(+)package/binutils/Config.in.host +4
-0@@ -16,20 +16,24 @@ choice depends on !BR2_mips_32r6 && !BR2_mips_64r6 # Unsupported ARM cores depends on !BR2_cortex_a17 + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_24 config BR2_BINUTILS_VERSION_2_25_X bool "binutils 2.25.1" # ARC support is not upstream yet depends on !BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25 config BR2_BINUTILS_VERSION_2_26_X bool "binutils 2.26" # ARC support is not upstream yet depends on !BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 config BR2_BINUTILS_VERSION_ARC bool "arc-2016.03" depends on BR2_arc + select BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_26 endchoiceSignature · 1 line
2.7.3
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 v2 5/7 docs: add documentation for BR2_TOOLCHAIN_BINUTILS_AT_LEAST
In reply to Vicente Olivert Riera---
Changes v1 -> v2:
- Nothing.
docs/manual/adding-packages-directory.txt | 6 ++++++ 1 file changed, 6 insertions(+)
docs/manual/adding-packages-directory.txt +6 -0
@@ -294,6 +294,12 @@ use in the comment. ** Comment string: +headers >= X.Y+ and/or `headers <= X.Y` (replace +X.Y+ with the proper version) +* Binutils version +** Dependency symbol: +BR2_TOOLCHAIN_BINUTILS_AT_LEAST_X_Y+, (replace + +X_Y+ with the proper version, see +toolchain/toolchain-common.in+) +** Comment string: +binutils >= X.Y+ and/or `binutils <= X.Y` (replace + +X.Y+ with the proper version) + * GCC version ** Dependency symbol: +BR2_TOOLCHAIN_GCC_AT_LEAST_X_Y+, (replace +X_Y+ with the proper version, see +toolchain/toolchain-common.in+)
Signature · 1 line
2.7.3
PATCH v2 1/7 toolchain: add common binutils version hidden config options
In reply to Vicente Olivert RieraHello,
Quoted 7 lines · Vicente Olivert Riera
This commit adds a number of hidden Config.in options, that will be used to handle dependencies on the binutils version. We mimic the model that was used for the kernel headers dependency mechanism.
These hidden options will be selected by the internal and external toolchain backend logic respectively, in follow-up commits.
Quoted 6 lines
These options will be helpful when we need to make packages depend on certain version of binutils. Further patches will do this for gcc and valgrind packages.
Signed-off-by Vicente Olivert Riera <[email protected]>Reviewed-by "Yann E. MORIN" <[email protected]>
I was about to apply this series, but in fact, I'm going to reject it, as I believe the annoyance / benefit ratio is not good.
You are introducing those binutils version selectors to solve two problems:
* The fact that gcc 4.8 does not work on MIPS with binutils >= 2.25. binutils 2.25 is already our default, and as soon as binutils 2.27 is released, 2.26 will be the default, and 2.24 will be removed, leaving in fact no way to select gcc 4.8 on MIPS.
So I would prefer that we simply disallow gcc 4.8 on MIPS completely.
* The fact that Valgrind doesn't work on MIPS soft-float with binutils
Quoted 1 line
= 2.25. Same comment here: just disable Valgrind on MIPS soft-float
and that's it.
Normally, the version option are used to indicate that something *works* only after a certain version (like kernel headers >= 3.10, or gcc >= 4.9).
But here, you're using the options in the opposite way: to say that anything after binutils 2.25 (included) is broken. With 2.24 going away in the near future, I rather prefer the above solutions that to add those additional binutils version options.
So could you instead submit patches that:
1/ Disallow gcc 4.8 on MIPS
2/ Disallow valgrind on MIPS soft-float
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/7 toolchain: add common binutils version hidden config options
Hello Thomas,
Quoted 28 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · Vicente Olivert Riera
This commit adds a number of hidden Config.in options, that will be used to handle dependencies on the binutils version. We mimic the model that was used for the kernel headers dependency mechanism.
These hidden options will be selected by the internal and external toolchain backend logic respectively, in follow-up commits.
Quoted 6 lines
These options will be helpful when we need to make packages depend on certain version of binutils. Further patches will do this for gcc and valgrind packages.
Signed-off-by Vicente Olivert Riera <[email protected]>Reviewed-by "Yann E. MORIN" <[email protected]>I was about to apply this series, but in fact, I'm going to reject it, as I believe the annoyance / benefit ratio is not good.
You are introducing those binutils version selectors to solve two problems:
* The fact that gcc 4.8 does not work on MIPS with binutils >= 2.25. binutils 2.25 is already our default, and as soon as binutils 2.27 is released, 2.26 will be the default, and 2.24 will be removed, leaving in fact no way to select gcc 4.8 on MIPS.
Quoted 5 lines
So I would prefer that we simply disallow gcc 4.8 on MIPS completely.
* The fact that Valgrind doesn't work on MIPS soft-float with binutils
Quoted 1 line
= 2.25. Same comment here: just disable Valgrind on MIPS soft-float
and that's it.
not only that. I think it's useful to know which gcc version a toolchain has. That's why we have GCC_AT_LEAST options.
Also, I think it's useful to know which linux headers a toolchain has. That's why we have HEADERS_AT_LEAST options.
And I also think it would be good to know which binutils version a toolchain has, with BINUTILS_AT_LEAST options. And probably it would be good to know which C library version as well, with GLIBC_AT_LEAST, UCLIBC_AT_LEAST and MUSL_AT_LEAST.
Regards,
Vincent.
Quoted 18 lines
Normally, the version option are used to indicate that something *works* only after a certain version (like kernel headers >= 3.10, or gcc >= 4.9).
But here, you're using the options in the opposite way: to say that anything after binutils 2.25 (included) is broken. With 2.24 going away in the near future, I rather prefer the above solutions that to add those additional binutils version options.
So could you instead submit patches that:
1/ Disallow gcc 4.8 on MIPS
2/ Disallow valgrind on MIPS soft-floatThanks!
Thomas
PATCH v2 6/7 Disable gcc-4.8 + binutils >= 2.25 + MIPS combination
Commit 2fda0dd7d491e6e926ace1cd09ad2fb241356232 disabled the gcc-4.8 + binutils-2.25 + MIPS combination. But now that we have BINUTILS_AT_LEAST options we can use them in order to disable all combinations for future versions of binutils.
--- package/gcc/Config.in.host | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/gcc/Config.in.host +2 -2
@@ -42,8 +42,8 @@ choice depends on !BR2_cortex_a12 && !BR2_cortex_a17 # Broken or unsupported PPC cores depends on !BR2_powerpc_power8 - # gcc-4.8.x + binutils-2.25 is broken for MIPS - depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X) + # gcc-4.8.x + binutils >= 2.25 is broken for MIPS + depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25) # Unsupported for MIPS R6 depends on !BR2_mips_32r6 && !BR2_mips_64r6 select BR2_GCC_NEEDS_MPC
Signature · 1 line
2.7.3
PATCH v2 7/7 valgrind: disable for MIPS soft-float when using binutils >= 2.25
As stated here [1], recent changes on the MIPS binutils sources have made it necessary for GCC to pass the -msoft-float to the assembler. Due to that, valgrind fails to build for MIPS soft-float when using a version of GCC >= 4.9 and binutils >= 2.25 because its using some hard-float instructions. The combination of GCC-4.8.x and binutils >= 2.25 is not possible as its disabled in package/gcc/Config.in.host.
1: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg00905.html
Fixes:
http://autobuild.buildroot.net/results/5f5/5f576c7f8d56058a19ed0e7ff4b1ec620bcafb65/
--- package/valgrind/Config.in | 1 + 1 file changed, 1 insertion(+)
package/valgrind/Config.in +1 -0
@@ -8,6 +8,7 @@ config BR2_PACKAGE_VALGRIND BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_x86_64 depends on !BR2_STATIC_LIBS + depends on !(BR2_MIPS_SOFT_FLOAT && BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25) help Tool for debugging and profiling Linux programs.
Signature · 1 line
2.7.3
PATCH v2 7/7 valgrind: disable for MIPS soft-float when using binutils >= 2.25
Vicente, All,
On 2016-05-31 12:13 +0100, Vicente Olivert Riera spake thusly:
Quoted 22 lines
As stated here [1], recent changes on the MIPS binutils sources have made it necessary for GCC to pass the -msoft-float to the assembler. Due to that, valgrind fails to build for MIPS soft-float when using a version of GCC >= 4.9 and binutils >= 2.25 because its using some hard-float instructions. The combination of GCC-4.8.x and binutils >= 2.25 is not possible as its disabled in package/gcc/Config.in.host.
1: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg00905.html
Fixes:
http://autobuild.buildroot.net/results/5f5/5f576c7f8d56058a19ed0e7ff4b1ec620bcafb65/Signed-off-by Vicente Olivert Riera <[email protected]>--- package/valgrind/Config.in | 1 + 1 file changed, 1 insertion(+)package/valgrind/Config.in +0
-0
package/valgrind/Config.in config BR2_PACKAGE_VALGRIND · line 11
Quoted 4 lines
package/valgrind/Config.in +1
-0@@ -8,6 +8,7 @@ config BR2_PACKAGE_VALGRIND BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_x86_64 depends on !BR2_STATIC_LIBS + depends on !(BR2_MIPS_SOFT_FLOAT && BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25)
Your commit log talks about the combination of gcc >= 4.8 *with* binutils >= 2.25.
However, here, you only hide for binutils >= 2.25.
And we still have gcc-4.7 (albeit deprecated). Is it known broken with the gcc-4.7 and binutils >= 2.25 combination too?
So, except for this deprecated gcc-4.7, what matters is only the binutils version. There is no need to talk about the gcc version in the commit log (except maybe to state taht we don't care about the deprecated gcc-4.7).
Otherwise:
Regards,
Yann E. MORIN.
Quoted 6 lines
package/valgrind/Config.in +0
-0help Tool for debugging and profiling Linux programs.Signature · 1 line
2.7.3
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 v2 6/7 Disable gcc-4.8 + binutils >= 2.25 + MIPS combination
In reply to Vicente Olivert RieraVicente, All,
On 2016-05-31 12:13 +0100, Vicente Olivert Riera spake thusly:
Quoted 15 lines
Commit
2fda0dd7d491e6e926ace1cd09ad2fb241356232disabled the gcc-4.8 + binutils-2.25 + MIPS combination. But now that we haveBINUTILS_AT_LEASToptions we can use them in order to disable all combinations for future versions of binutils.Signed-off-by Vicente Olivert Riera <[email protected]>--- package/gcc/Config.in.host | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/gcc/Config.in.host +0
-0
package/gcc/Config.in.host choice · line 46
Quoted 7 lines
package/gcc/Config.in.host +2
-2@@ -42,8 +42,8 @@ choice depends on !BR2_cortex_a12 && !BR2_cortex_a17 # Broken or unsupported PPC cores depends on !BR2_powerpc_power8 - # gcc-4.8.x + binutils-2.25 is broken for MIPS - depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X) + # gcc-4.8.x + binutils >= 2.25 is broken for MIPS + depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_TOOLCHAIN_BINUTILS_AT_LEAST_2_25)
Hmm, this again does two things:
- use the new biunutils-at-least options,
- also disable binutils 2.26 (which was not disabled previously)
But OK, I guess you know what you're doing, regarding MIPS! ;-)
Regards,
Yann E. MORIN.
Quoted 6 lines
package/gcc/Config.in.host +0
-0# Unsupported for MIPS R6 depends on !BR2_mips_32r6 && !BR2_mips_64r6 select BR2_GCC_NEEDS_MPCSignature · 1 line
2.7.3
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. | '------------------------------^-------^------------------^--------------------'