mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Subject: Re: Build regressions/improvements in v5.8-rc5
Date: Tue, 14 Jul 2020 18:49:53 +1000	[thread overview]
Message-ID: <87d04yv5u6.fsf@mpe.ellerman.id.au> (raw)
In-Reply-To: <CAMuHMdUG9-P_gqCssGQxheTkQKw0PD495eCO-o8xZdbzEsnrrA@mail.gmail.com>

Geert Uytterhoeven <geert@linux-m68k.org> writes:
> On Mon, Jul 13, 2020 at 11:51 AM Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>> JFYI, when comparing v5.8-rc5[1] to v5.8-rc4[3], the summaries are:
>>   - build errors: +3/-0
>
>   + /kisskb/src/include/linux/compiler-gcc.h: error: #error Sorry,
> your compiler is too old - please upgrade it.:  => 15:3
>   + /kisskb/src/include/linux/compiler.h: error: implicit declaration
> of function '_Generic' [-Werror=implicit-function-declaration]:  =>
> 309:2
>   + /kisskb/src/include/linux/compiler_types.h: error: expected
> expression before 'char':  => 265:5
>
> arcompact/axs101_defconfig, which uses a pre-v4.9 gcc:
>
>     Compiler: arcompact (arc-buildroot-linux-uclibc-gcc (Buildroot
> 2015.08.1) 4.8.4 / GNU ld (GNU Binutils) 2.23.2)
>
> While at it, you may also want to upgrade
>
>     Compiler: arcv2 (arc-linux-gcc.br_real (Buildroot
> 2016.11-git-00613-ge98b4dd) 6.2.1 20160824 / GNU ld (GNU Binutils)
> 2.27.51.20160928)
>
> as it has a buggy definition of size_t, and causes bogus warnings like:
>
>>   + /kisskb/src/drivers/gpu/drm/drm_managed.c: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=]:  => 205:23
>>   + /kisskb/src/drivers/gpu/drm/drm_managed.c: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'unsigned int' [-Wformat=]:  => 67:23
>>   + /kisskb/src/include/linux/kern_levels.h: warning: format '%zd' expects argument of type 'signed size_t', but argument 2 has type 'ssize_t {aka int}' [-Wformat=]:  => 5:18
>>   + /kisskb/src/kernel/dma/pool.c: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'unsigned int' [-Wformat=]:  => 249:16

Thanks.

It seems the kernel.org 10.1.0 toolchain can build both arcv2 and
arcompact, so I've added an arc-gcc10 and moved both defconfigs to that
toolchain. Hopefully that will work.

cheers

      reply	other threads:[~2020-07-14  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-13  9:50 Geert Uytterhoeven
2020-07-13  9:57 ` Geert Uytterhoeven
2020-07-14  8:49   ` Michael Ellerman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d04yv5u6.fsf@mpe.ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=arnd@arndb.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®