GCC toolchain downgrade on 19.07 snapshot and RC1

Hello there!

I was so surprised when I downloaded the latest openwrt-sdk toolchain from the 19.07 RC1 release and the previous build commands from the bash history were not working. Later I realized the toolchain was downgraded from GCC 8.3.0 to 7.4.0.
I couldn't find anything on git behind this change, can somebody help me to figure out it?
I filled a bug back in October: FS#2567 - [ATH79] USB speed degradation on WDR4300. I'll have a look with a newer image later, but I assume this bug might be gone.

Regards

Is this bug also present in ar71xx 19.07-rc1?

I think that you have mixed the master and 19.07 branches.

When 19.07 was branched off master in june, GCC 7.x was the default there and has remained the default in 19.07

Meanwhile, the default in master has been changed to 8.xx in October.

But that change has no relevance in the 19.07 branch that had lived a separate life since June.

19.07.0-rc1 was built in November, but it is still based on the 19.07 branch that mainly contains code from June.

GCC in 19.07: https://git.openwrt.org/?p=openwrt/openwrt.git;a=history;f=toolchain/gcc;hb=refs/heads/openwrt-19.07

GCC in master: https://git.openwrt.org/?p=openwrt/openwrt.git;a=history;f=toolchain/gcc;hb=HEAD

2 Likes

I just tested it now, yes.
I'll fill the ticket with latest in formations soon!

This seems to be more complicated.
The SDK for, both snapshot and 19.07-RC1 is based on GCC 7.4.0 in case of ar71xx.
For ath79 it's 7.4.0 for 19.07-RC1 and 8.4.0 for the snapshot. This might be my fault, I was using the snapshot release and I thought it's the 19.07 branch in the background.
But the OpenWrt v19.07.0-rc1 Changelog contains multiple entries for both GCC 7 and 8, like:

Related forum topic: [USB] WDR4300 low speed on external storage

Yes, and so what?
Those commits simply update/adjust the available gcc versions. E.g. upgrade from 7.3.0 to 7.4.0

But the actually used version is selected by config options defined in the Config.version file:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=toolchain/gcc/Config.version;h=bb8dcbbfdaa24527d3bd5f27b107655e3b843273;hb=refs/heads/openwrt-19.07

It currently sets 7.5.0 as the default that will be used.
You can configure it to use 8.3.0 instead, but that is not the default in the 19.07 branch.

There are several kinds of snapshots...

For ath79 it is

3 Likes

Okay, it's pretty clear now.
Thanks for the clarification!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.