[Buildroot] Fwd: Less Restrictive attribute error on init_module and cleanup_module

Romain Naour romain.naour at smile.fr
Thu Dec 17 13:18:58 UTC 2020


Hello,

Le 17/12/2020 à 13:32, manu f a écrit :
> Hello all, I am Manu from France.
> 
> Actually I try to compile buidroot 2020.8 on ubuntu 20.04LTS for imx6
> target with internal toolchain arm 2019.12
> 
> I got these errrors:
> 
> error: 'init_module' specifies less restrictive attribute than its target
> 'gpu_init': 'cold' [-Werror=missing-attributes]
> 
> I googled and found this problem come from new gcc get new warning but
> warning are treat as error cause -Werror flag on buildroot make files.
> 
> some answer told to force CONFIG_PPC_DISABLE_WERROR in kconfig option

This option is only for powerpc and should be already set by Buildroot since:
https://git.buildroot.net/buildroot/commit/?id=1713c3c344be26ec3bcb02a0a0068f21907ab881

But you are on ARM imx6.

Can you test with KCFLAGS=-Wno-error ?

Best regards,
Romain

> 
> I am sorry I an newby on linux compile and I don"t know how to do that.
> 
> Could somebody could help me on this problem ?
> 
> Regards.
> 
> Manu
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 



More information about the buildroot mailing list