Hi,

I'm trying to build the core-image-minimal on zeus branch, device Tegra
Xavier. The compiler has to be GCC 7.* due to some NVidia pre-built
binaries. So I back ported it from Thud if I recall.

The kernel compilation fails with this error:
| cc1: error: -Werror=address-of-packed-member: no option
-Waddress-of-packed-member
| cc1: error: -Werror=missing-attributes: no option -Wmissing-attributes

How to I make the compiler treat these error as warnings?

I've tried adding all these to the kernel recipe:
export KCFLAGS = " -Wno-error=address-of-packed-member
-Wno-error=missing-attributes "
export KCPPFLAGS = " -Wno-error=address-of-packed-member
-Wno-error=missing-attributes "

TARGET_CFLAGS += " -Wno-error=address-of-packed-member
-Wno-error=missing-attributes "
TARGET_CPPFLAGS += " -Wno-error=address-of-packed-member
-Wno-error=missing-attributes "

KBUILD_CFLAGS += " -Wno-error=address-of-packed-member
-Wno-error=missing-attributes "

None of them seems to be applied.

Anything special changed on Zeus? Note I didn't have any issue building the
kernel on Warrior.

Thanks
-Damien
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49248): https://lists.yoctoproject.org/g/yocto/message/49248
Mute This Topic: https://lists.yoctoproject.org/mt/73300050/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/737036229/xyzzy  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to