[Buildroot] csky 8xx toolchain issue
Romain Naour
romain.naour at gmail.com
Sat Oct 2 20:44:37 UTC 2021
Hello Yann,
Le 02/10/2021 à 22:34, Yann E. MORIN a écrit :
> Romain, All,
>
> On 2021-10-02 22:21 +0200, Romain Naour spake thusly:
>> Le 02/10/2021 à 20:25, Thomas Petazzoni a écrit :
>>> On Sat, 2 Oct 2021 17:58:24 +0200
>>> Romain Naour <romain.naour at gmail.com> wrote:
>>>> The csky toolchain is still broken with recent host compiler and our CI will
>>>> switch to Debian bullseye soon.
> [--SNIP--]
>>> Considering these issues and the fact that there has been no updates in
>>> terms of C-SKY support for a long time, I think we should consider
>>> dropping support for the C-SKY CPU architecture.
>> csky860 will be supported by gcc 12:
>> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=db92bd223e3957ee58b5a0c0fffd8b7766f1def3
>
> In the meantime, what about just:
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 1853e26bb4..ab40294ddc 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -77,6 +77,7 @@ config BR2_aarch64_be
>
> config BR2_csky
> bool "csky"
> + select BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT
> select BR2_ARCH_HAS_MMU_MANDATORY
> # Most variants are supported by gcc-9+, except one that is
> # handled as a special exception in package/gcc/Config.in.host
>
> When we introduce gcc 12, we can move that down to the individual
> variants if need be...
At least I can build the csky610 toolchain using binutils and gcc csky fork but
building the 5.0.12 kernel requires a small patch to build with host gcc >= 10
(https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=35b34d264cb347909ec89d9fa895900035d5438c)
https://gitlab.com/kubu93/buildroot/-/jobs/1635588173
But with the same toolchain, the build fail with an internal compiler error:
https://gitlab.com/kubu93/buildroot/-/jobs/1635588174
https://gitlab.com/kubu93/buildroot/-/jobs/1635588175
https://gitlab.com/kubu93/buildroot/-/jobs/1635588176
But even with BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT, we have to remove some
qemu_csky* defconfig to not trigger a build job in gitlab.
Best regards,
Romain
>
> Regards,
> Yann E. MORIN.
>
More information about the buildroot
mailing list