linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* build failures on 6.0
@ 2022-10-05 23:00 Steve French
  2022-10-05 23:02 ` Steve French
  0 siblings, 1 reply; 4+ messages in thread
From: Steve French @ 2022-10-05 23:00 UTC (permalink / raw)
  To: CIFS, Namjae Jeon

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build failures on 6.0
  2022-10-05 23:00 build failures on 6.0 Steve French
@ 2022-10-05 23:02 ` Steve French
  2022-10-05 23:37   ` Namjae Jeon
  0 siblings, 1 reply; 4+ messages in thread
From: Steve French @ 2022-10-05 23:02 UTC (permalink / raw)
  To: CIFS, Namjae Jeon

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@gmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build failures on 6.0
  2022-10-05 23:02 ` Steve French
@ 2022-10-05 23:37   ` Namjae Jeon
       [not found]     ` <CAH2r5mtuUJ7pQ4XcmXSOPvq26MSim=p_x_SOy7ympOVKgb-CLA@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Namjae Jeon @ 2022-10-05 23:37 UTC (permalink / raw)
  To: Steve French; +Cc: CIFS

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@gmail.com>:
> 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@gmail.com> 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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: build failures on 6.0
       [not found]     ` <CAH2r5mtuUJ7pQ4XcmXSOPvq26MSim=p_x_SOy7ympOVKgb-CLA@mail.gmail.com>
@ 2022-10-06  2:53       ` Steve French
  0 siblings, 0 replies; 4+ messages in thread
From: Steve French @ 2022-10-06  2:53 UTC (permalink / raw)
  To: CIFS; +Cc: Namjae Jeon, Paulo Alcantara

---------- Forwarded message ---------
From: Steve French <smfrench@gmail.com>
Date: Wed, Oct 5, 2022 at 9:41 PM
Subject: Re: build failures on 6.0
To: Namjae Jeon <linkinjeon@kernel.org>
Cc: CIFS <linux-cifs@vger.kernel.org>


I worked around it by installing gcc-12

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get install gcc-12

cd /usr/bin

sudo rm gcc

sudo ln gcc-12 gcc


On Wed, Oct 5, 2022 at 6:37 PM Namjae Jeon <linkinjeon@kernel.org> wrote:
>
> 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@gmail.com>:
> > 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@gmail.com> 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
> >



-- 
Thanks,

Steve


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-06  2:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 23:00 build failures on 6.0 Steve French
2022-10-05 23:02 ` Steve French
2022-10-05 23:37   ` Namjae Jeon
     [not found]     ` <CAH2r5mtuUJ7pQ4XcmXSOPvq26MSim=p_x_SOy7ympOVKgb-CLA@mail.gmail.com>
2022-10-06  2:53       ` Fwd: " Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).