All of lore.kernel.org
 help / color / mirror / Atom feed
* x86_64 build failure of next-20220715 and next-20220718 with clang
@ 2022-07-18 12:18 Sudip Mukherjee (Codethink)
  2022-07-18 15:08 ` Nathan Chancellor
  0 siblings, 1 reply; 3+ messages in thread
From: Sudip Mukherjee (Codethink) @ 2022-07-18 12:18 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: llvm

Hi All,

Not sure if its reported, builds of x86_64 allmodconfig of next-20220715
and next-20220718 with clang are showing lots of new warnings like:

warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build


--
Regards
Sudip

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

* Re: x86_64 build failure of next-20220715 and next-20220718 with clang
  2022-07-18 12:18 x86_64 build failure of next-20220715 and next-20220718 with clang Sudip Mukherjee (Codethink)
@ 2022-07-18 15:08 ` Nathan Chancellor
  2022-07-18 16:13   ` Sudip Mukherjee
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Chancellor @ 2022-07-18 15:08 UTC (permalink / raw)
  To: Sudip Mukherjee (Codethink); +Cc: llvm

Hi Sudip,

On Mon, Jul 18, 2022 at 01:18:45PM +0100, Sudip Mukherjee (Codethink) wrote:
> Hi All,
> 
> Not sure if its reported, builds of x86_64 allmodconfig of next-20220715
> and next-20220718 with clang are showing lots of new warnings like:
> 
> warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build

Thanks for the report! Nick fixed this in LLVM, it was a problem with
compiler generated functions like the ones that are generated with
KASAN, KCSAN, and GCOV having 'ret' instead of 'jmp __x86_return_thunk':

https://github.com/llvm/llvm-project/commit/140bfdca60ae8b1b2ad115846379e3c9ca914bfb

With that change, you should see no warnings of that nature with
allmodconfig anymore. Thanks for the continuous testing!

Cheers,
Nathan

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

* Re: x86_64 build failure of next-20220715 and next-20220718 with clang
  2022-07-18 15:08 ` Nathan Chancellor
@ 2022-07-18 16:13   ` Sudip Mukherjee
  0 siblings, 0 replies; 3+ messages in thread
From: Sudip Mukherjee @ 2022-07-18 16:13 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: clang-built-linux

On Mon, Jul 18, 2022 at 4:08 PM Nathan Chancellor <nathan@kernel.org> wrote:
>
> Hi Sudip,
>
> On Mon, Jul 18, 2022 at 01:18:45PM +0100, Sudip Mukherjee (Codethink) wrote:
> > Hi All,
> >
> > Not sure if its reported, builds of x86_64 allmodconfig of next-20220715
> > and next-20220718 with clang are showing lots of new warnings like:
> >
> > warning: objtool: asan.module_dtor+0x15: 'naked' return found in RETHUNK build
>
> Thanks for the report! Nick fixed this in LLVM, it was a problem with
> compiler generated functions like the ones that are generated with
> KASAN, KCSAN, and GCOV having 'ret' instead of 'jmp __x86_return_thunk':
>
> https://github.com/llvm/llvm-project/commit/140bfdca60ae8b1b2ad115846379e3c9ca914bfb
>
> With that change, you should see no warnings of that nature with
> allmodconfig anymore. Thanks for the continuous testing!

Thanks Nathan. Built again and confirmed that has indeed fixed the warnings.


-- 
Regards
Sudip

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

end of thread, other threads:[~2022-07-18 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18 12:18 x86_64 build failure of next-20220715 and next-20220718 with clang Sudip Mukherjee (Codethink)
2022-07-18 15:08 ` Nathan Chancellor
2022-07-18 16:13   ` Sudip Mukherjee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.