Hi Steve, The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0 You are using: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 Have you ever tried to do make clean and make again ? It seems that you upgraded ubuntu before ... ? the version looks different. Thanks! 2022-10-06 8:02 GMT+09:00, Steve French <smfrench@xxxxxxxxx>: > This is actually ubuntu 22.04 which fails building out of tree modules > (as we do for testing) on 6.0-rc7 (last working one was 6.0-rc3) and > later > > On Wed, Oct 5, 2022 at 6:00 PM Steve French <smfrench@xxxxxxxxx> wrote: >> >> I noticed that 6.0-rc7 and later don't build out of tree modules (was >> trying to setup ksmbd for running buildbot tests). Any ideas about >> this "unrecognized command-line option" for gcc error (this is on >> Ubuntu) >> >> smfrench@ubuntu20-ksmbd-target:~/smb3-kernel/fs/ksmbd$ ~/build-stock-cifs >> make: Entering directory '/usr/src/linux-headers-6.0.0-060000-generic' >> warning: the compiler differs from the one used to build the kernel >> The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 12.2.0-3ubuntu1) >> 12.2.0 >> You are using: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 >> CC [M] /home/smfrench/smb3-kernel/fs/ksmbd/unicode.o >> gcc: error: unrecognized command-line option >> ‘-ftrivial-auto-var-init=zero’ >> make[1]: *** [scripts/Makefile.build:249: >> /home/smfrench/smb3-kernel/fs/ksmbd/unicode.o] Error 1 >> make: *** [Makefile:1858: /home/smfrench/smb3-kernel/fs/ksmbd] Error 2 >> make: Leaving directory '/usr/src/linux-headers-6.0.0-060000-generic' >> smfrench@ubuntu20-ksmbd-target:~/smb3-kernel/fs/ksmbd$ uname -a >> Linux ubuntu20-ksmbd-target 6.0.0-060000-generic #202210022231 SMP >> PREEMPT_DYNAMIC Sun Oct 2 22:35:09 UTC 2022 x86_64 x86_64 x86_64 >> GNU/Linux >> >> >> -- >> Thanks, >> >> Steve > > > > -- > Thanks, > > Steve >