intel-gpu / intel-gpu-i915-backports

Other
94 stars 63 forks source link

gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ #106

Closed kukuyok closed 8 months ago

kukuyok commented 1 year ago
Ubuntu 22.04.2
gcc 11.3.0

while upgrading kernel to last major 5.19.17

option is supported under gcc-12

ayazahma commented 1 year ago

Thanks @kukuyok , we will try to reproduce and revert back

eero-t commented 1 year ago

@ayazahma any update on this?

smuqthya commented 1 year ago

@kukuyok I see that this option is not set in the backport code flags. Can I know how you arrived to this error. Are you building backport against above kernel? At which stage you are getting this error. Can you share full logs.

kukuyok commented 1 year ago

@smuqthya sorry, I've already reinstalled OS on my laptop. It is Acer Swift 3 with i7-10510U.

As I can remember, I've been try to downgrade my kernel and to build graphics kernel modules, as the major Ubuntu kernel version has been failed to boot.

eero-t commented 8 months ago

@smuqthya sorry, I've already reinstalled OS on my laptop. It is Acer Swift 3 with i7-10510U.

As I can remember, I've been try to downgrade my kernel and to build graphics kernel modules, as the major Ubuntu kernel version has been failed to boot.

@kukuyok if this is not relevant any more, please close this (I cannot).

smuqthya commented 8 months ago

This seems related to CLANG version. Please refer the change in kernel to warn. https://lore.kernel.org/all/20221010070333.780586109@linuxfoundation.org/

upgrade to latest.