[OpenWrt-Devel] [PATCH] toolchain/gcc: switch to version 8 by default

Rosen Penev rosenp at gmail.com
Sat Sep 28 17:44:22 EDT 2019


On Sat, Sep 28, 2019 at 1:44 PM, Paul Spooren <mail at aparcar.org> wrote:
> Main motivation for this commit is the introduction of
> `-ffile-prefix-map=` which alows reproducible build path.
> 
> Compiling tested without errors on the following targets:
> 
> * ath79
> * brcm2708
> * brcm63xx
> * ixp4xx
> * ramips
> * sunxi
> * x86
> 
> Signed-off-by: Paul Spooren <mail at aparcar.org>
> ---
> Please let me know if I should compile more targets.
A small note:

Everything should build just fine with GCC8. All of the major problems 
have been patched away. The remaining compilation failures on ARC 
(which uses GCC8) are mostly uClibc-ng related. See: 
https://downloads.openwrt.org/releases/faillogs-19.07/arc_arc700/packages/

GCC9 still needs work (umdns throws an error for example). I also 
remember with GCC9.1 that LuCI would keep crashing (liblua I think).
> 
> 
>  toolchain/gcc/Config.in      | 3 +--
>  toolchain/gcc/Config.version | 9 ++++-----
>  2 files changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
> index 0977f9b4e7..7d7f34210a 100644
> --- a/toolchain/gcc/Config.in
> +++ b/toolchain/gcc/Config.in
> @@ -2,8 +2,7 @@
> 
>  choice
>  	prompt "GCC compiler Version" if TOOLCHAINOPTS
> -	default GCC_USE_VERSION_8 if arc
> -	default GCC_USE_VERSION_7
> +	default GCC_USE_VERSION_8
>  	help
>  	  Select the version of gcc you wish to use.
> 
> diff --git a/toolchain/gcc/Config.version 
> b/toolchain/gcc/Config.version
> index d9732b3e0d..1a86bcb8a6 100644
> --- a/toolchain/gcc/Config.version
> +++ b/toolchain/gcc/Config.version
> @@ -2,9 +2,8 @@ config GCC_VERSION_5
>  	default y if GCC_USE_VERSION_5
>  	bool
> 
> -config GCC_VERSION_8
> -	default y if GCC_USE_VERSION_8
> -	default y if arc && !GCC_USE_VERSION_9
> +config GCC_VERSION_7
> +	default y if GCC_USE_VERSION_7
>  	bool
> 
>  config GCC_VERSION_9
> @@ -19,6 +18,6 @@ config GCC_USE_EMBEDDED_PATH_REMAP
>  config GCC_VERSION
>  	string
>  	default "5.5.0"		if GCC_VERSION_5
> -	default "8.3.0"		if GCC_VERSION_8
> +	default "7.4.0"		if GCC_VERSION_7
>  	default "9.2.0"		if GCC_VERSION_9
> -	default "7.4.0"
> +	default "8.3.0"
> --
> 2.23.0
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190928/13256f47/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list