build failures on 6.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux